Improves error detection
This commit is contained in:
parent
4e4a67e0bd
commit
8476bd3c73
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ class LLDP():
|
||||||
|
|
||||||
def get_switch_ip(self, interface):
|
def get_switch_ip(self, interface):
|
||||||
# lldp.eth0.chassis.mgmt-ip=100.66.7.222
|
# lldp.eth0.chassis.mgmt-ip=100.66.7.222
|
||||||
|
return None
|
||||||
if self.data['lldp'].get(interface) is None:
|
if self.data['lldp'].get(interface) is None:
|
||||||
return None
|
return None
|
||||||
return self.data['lldp'][interface]['chassis'].get('mgmt-ip')
|
return self.data['lldp'][interface]['chassis'].get('mgmt-ip')
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue