summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrishna Guha <trishnaguha17@gmail.com>2018-11-08 10:45:25 +0530
committerMatt Clay <matt@mystile.com>2018-12-10 12:14:32 -0800
commit303bf53eeced160cf1524489ed87eed7af40f287 (patch)
tree4a93818d304daf4bd1288747cc68698b5877026e
parent67fba987bd37515323ee1a3656cb47e1567ae364 (diff)
downloadansible-303bf53eeced160cf1524489ed87eed7af40f287.tar.gz
do not override lldp neighbors nxos_facts (#48087)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 27075ab7dd58c4b463ee5c4d08262c8fe74943c5)
-rw-r--r--lib/ansible/modules/network/nxos/nxos_facts.py2
1 files changed, 2 insertions, 0 deletions
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']: