diff --git a/lib/ansible/modules/network/nxos/nxos_facts.py b/lib/ansible/modules/network/nxos/nxos_facts.py index b010664ee0..e8f8544463 100644 --- a/lib/ansible/modules/network/nxos/nxos_facts.py +++ b/lib/ansible/modules/network/nxos/nxos_facts.py @@ -377,6 +377,7 @@ class Interfaces(FactsBase): def populate(self): self.facts['all_ipv4_addresses'] = list() self.facts['all_ipv6_addresses'] = list() + self.facts['neighbors'] = {} data = None data = self.run('show interface', output='json') @@ -412,6 +413,7 @@ class Interfaces(FactsBase): self.facts['neighbors'].pop(None, None) # Remove null key + def populate_structured_interfaces(self, data): interfaces = dict() for item in data['TABLE_interface']['ROW_interface']: