Python ciscoconfparse to find shutdown interfaces and the whole interface block?
问题 The following examples will use this configuration which is taken from http://pennington.net/tutorial/ciscoconfparse/ccp_tutorial.html#slide3 ! filename:exampleswitch.conf ! hostname ExampleSwitch ! interface GigabitEthernet 1/1 switchport mode trunk shutdown ! interface GigabitEthernet 1/2 switchport mode access switchport access vlan 20 switchport nonegotiate no cdp enable ! interface GigabitEthernet 1/3 no switchport ip address 192.0.2.1 255.255.255.0 This is the code which is also taken