Oct-06-2023, 11:54 AM
Hi Buran,
thanks for the prompt reply. I had tried something like that before. I would need to go through the config file and redact a lot of information, before I could post it.
If I print the len of config I can see 196
If I print config index 111 for example I can see an entry for 'GigabitEthernet'
However as you said when I iterate over config it returns a length of 0 and the list is empty.
196
(111, '\ninterface GigabitEthernet1/0/2\n description VM Trunk\n switchport trunk encapsulation dot1q\n switchport trunk allowed vlan 97,163\n switchport mode trunk\n switchport nonegotiate\n speed 1000\n duplex full\n no cdp enable\n')
0
[]
thanks for the prompt reply. I had tried something like that before. I would need to go through the config file and redact a lot of information, before I could post it.
If I print the len of config I can see 196
If I print config index 111 for example I can see an entry for 'GigabitEthernet'
However as you said when I iterate over config it returns a length of 0 and the list is empty.
196
(111, '\ninterface GigabitEthernet1/0/2\n description VM Trunk\n switchport trunk encapsulation dot1q\n switchport trunk allowed vlan 97,163\n switchport mode trunk\n switchport nonegotiate\n speed 1000\n duplex full\n no cdp enable\n')
0
[]