From 303bf53eeced160cf1524489ed87eed7af40f287 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Thu, 8 Nov 2018 10:45:25 +0530 Subject: [PATCH] do not override lldp neighbors nxos_facts (#48087) Signed-off-by: Trishna Guha (cherry picked from commit 27075ab7dd58c4b463ee5c4d08262c8fe74943c5) --- lib/ansible/modules/network/nxos/nxos_facts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/network/nxos/nxos_facts.py b/lib/ansible/modules/network/nxos/nxos_facts.py index b010664ee0a..e8f85444631 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']: