Improves error detection
This commit is contained in:
parent
3d44530f39
commit
0c795a53dd
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class LLDP():
|
|||
|
||||
def get_switch_vlan(self, interface):
|
||||
# lldp.eth0.vlan.vlan-id=296
|
||||
if self.data['lldp'] is None:
|
||||
if self.data is None:
|
||||
return None
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue