* ios_facts: Fix LLDP gathering without neighbors When LLDP is enabled but no neighbors are present, the following structure is generated: ... "ansible_net_neighbors": { "null": [ { "host": null, "port": null } ] }, ... If we are not able to find any relevant LLDP information, bail out early so cases like shown above are handled more gracefully. * ios_facts: Remove trailing space in lineprotocol Some Cisco devices (at least CSR1000V 16.6.4) add a space after the line protocol. This causes the space to be present in the result of fact gathering: "ansible_net_interfaces": { "GigabitEthernet2": { ... "lineprotocol": "up ", Be more clear about scanning the output to avoid this behaviour. |
||
---|---|---|
.. | ||
__init__.py | ||
ios_banner.py | ||
ios_command.py | ||
ios_config.py | ||
ios_facts.py | ||
ios_interface.py | ||
ios_l2_interface.py | ||
ios_l3_interface.py | ||
ios_linkagg.py | ||
ios_lldp.py | ||
ios_logging.py | ||
ios_ping.py | ||
ios_static_route.py | ||
ios_system.py | ||
ios_user.py | ||
ios_vlan.py | ||
ios_vrf.py |