community.general/lib/ansible/modules/network/ios
Paul Neumann 39673dfc37 ios_facts: Fix minor aesthetical glitches (#46577)
* 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.
2018-10-10 08:02:14 -04:00
..
__init__.py
ios_banner.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ios_command.py network command modules cleanup (#45242) 2018-09-13 08:55:35 -04:00
ios_config.py Fix 'macro name' timeout (#44001) 2018-08-30 18:11:51 +05:30
ios_facts.py ios_facts: Fix minor aesthetical glitches (#46577) 2018-10-10 08:02:14 -04:00
ios_interface.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ios_l2_interface.py Reword documentation for IOS L2/L3 interface modules (#44870) 2018-08-30 14:48:43 -05:00
ios_l3_interface.py Generalize config retrieval in ios_l3_interface module (#45270) 2018-09-25 12:28:32 +05:30
ios_linkagg.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ios_lldp.py Add missing extends_documentation_fragment (#35013) 2018-01-17 16:31:53 -05:00
ios_logging.py Fixes to ios_logging (#41029) 2018-06-04 07:32:23 -04:00
ios_ping.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
ios_static_route.py ios_static_route idempotence fix (#35912) 2018-03-05 09:28:37 -05:00
ios_system.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ios_user.py The sshkey option is available in version 2.7 and above (#46103) 2018-09-25 10:41:23 +01:00
ios_vlan.py Fixes ios_l2_interface and ios_vlan not working on certain interface types issue (#43819) 2018-08-14 11:35:09 +05:30
ios_vrf.py ios_vrf speed fix (#43765) 2018-08-27 08:51:33 -04:00