From 881721a3f5e7e4ccd4f858ab9858ff4bb65c8cbd Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Tue, 13 Feb 2024 21:24:11 +0100 Subject: [PATCH] Fix LLDP display for peers without capability --- scripts/lldpshow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lldpshow b/scripts/lldpshow index 8f6cfb2fe0..b0a145adab 100755 --- a/scripts/lldpshow +++ b/scripts/lldpshow @@ -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)