Improves error detection
This commit is contained in:
parent
100259ae0a
commit
4e4a67e0bd
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
|
||||
logging.info(interface)
|
||||
return None
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
return self.data['lldp'][interface]['vlan']
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue