Skip to content

Commit 881721a

Browse files
Fix LLDP display for peers without capability
1 parent 7b419b3 commit 881721a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lldpshow

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class Lldpshow(object):
142142
chassis = chassis[rmt_name]
143143
else:
144144
rmt_name = ''
145-
capabs = chassis['capability']
145+
capabs = chassis.get('capability', [])
146146
if isinstance(capabs, dict):
147147
capabs = [capabs]
148148
capab = self.parse_cap(capabs)

0 commit comments

Comments
 (0)