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
commit 3903ca5c8e
4 changed files with 204 additions and 50 deletions

View file

@ -47,7 +47,6 @@ lib/ansible/modules/network/eos/eos_linkagg.py ansible-format-automatic-specific
lib/ansible/modules/network/eos/eos_logging.py ansible-format-automatic-specification
lib/ansible/modules/network/eos/eos_static_route.py ansible-format-automatic-specification
lib/ansible/modules/network/ios/ios_l3_interface.py ansible-format-automatic-specification
lib/ansible/modules/network/ios/ios_vlan.py ansible-format-automatic-specification
lib/ansible/modules/network/iosxr/iosxr_banner.py ansible-format-automatic-specification
lib/ansible/modules/network/iosxr/iosxr_interface.py ansible-format-automatic-specification
lib/ansible/modules/network/nxos/nxos_logging.py ansible-format-automatic-specification