Skip to content

Commit

Permalink
Fix LLDP display for peers without port description
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner authored Feb 13, 2024
1 parent 881721a commit 2d45cb3
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 @@ -147,7 +147,7 @@ class Lldpshow(object):
capabs = [capabs]
capab = self.parse_cap(capabs)
self.lldpsum[key]['r_name'] = rmt_name
self.lldpsum[key]['r_portname'] = remote_port['descr']
self.lldpsum[key]['r_portname'] = remote_port.get('descr') or ''
self.lldpsum[key]['capability'] = capab

def sort_sum(self, summary):
Expand Down

0 comments on commit 2d45cb3

Please sign in to comment.