Skip to content

Commit

Permalink
Update lldp when single entry is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks committed Oct 13, 2019
1 parent 9210a81 commit 6c1cfd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions napalm_panos/panos.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ def get_lldp_neighbors(self):
except AttributeError:
lldp_table = []

if isinstance(lldp_table,dict):
# If only 1 interface is listed, xmltodict returns a dictionary, otherwise
# it returns a list of dictionaries.
lldp_table = [lldp_table]

for lldp_item in lldp_table:

local_int = lldp_item['@name']
Expand Down

0 comments on commit 6c1cfd8

Please sign in to comment.