Improves error detection
This commit is contained in:
parent
8476bd3c73
commit
c4a5a1ac7e
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ class LLDP():
|
|||
|
||||
def get_switch_port(self, interface):
|
||||
# lldp.eth0.port.descr=GigabitEthernet1/0/1
|
||||
return None
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
if self.data['lldp'][interface]['port'].get('ifname'):
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue