Skip to content

Commit

Permalink
Fix LLDP display for peers without capability
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner authored Feb 13, 2024
1 parent 7b419b3 commit 881721a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lldpshow
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Lldpshow(object):
chassis = chassis[rmt_name]
else:
rmt_name = ''
capabs = chassis['capability']
capabs = chassis.get('capability', [])
if isinstance(capabs, dict):
capabs = [capabs]
capab = self.parse_cap(capabs)
Expand Down

0 comments on commit 881721a

Please sign in to comment.