Fix for missing mgmt-ip in LLDP output (#225)
This commit is contained in:
parent
6181800cb3
commit
be770a947a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class LLDP():
|
|||
# lldp.eth0.chassis.mgmt-ip=100.66.7.222
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
return self.data['lldp'][interface]['chassis']['mgmt-ip']
|
||||
return self.data['lldp'][interface]['chassis'].get('mgmt-ip')
|
||||
|
||||
def get_switch_port(self, interface):
|
||||
# lldp.eth0.port.descr=GigabitEthernet1/0/1
|
||||
|
|
Loading…
Reference in a new issue