Fix ios_vlan to correctly identify unmodified config when having long interface names (#40145)

Change the command to get the interface in a vlan "show vlan" => "show vlan brief"
Change the parsing of the return command of the switch.
The return of the ios command is fixed so i cut with fix number of carracter.
Adding looking for the next line to add the forgeted interfaces.
This commit is contained in:
pierremahot
2018-05-23 16:15:54 +02:00
committed by Nathaniel Case
parent d028a0257a
commit 3903ca5c8e
4 changed files with 204 additions and 50 deletions

View File

@@ -0,0 +1,8 @@
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi1/0/4, Gi1/0/5
Gi1/0/52
Gi1/0/54
2 vlan2 active Gi1/0/6, Gi1/0/7
1002 fddi-default act/unsup
1003 fddo-default act/unsup