Revert error detection tests
This commit is contained in:
parent
9fa51c0294
commit
c395c18ee3
1 changed files with 0 additions and 6 deletions
|
|
@ -52,16 +52,12 @@ class LLDP():
|
|||
|
||||
def get_switch_ip(self, interface):
|
||||
# lldp.eth0.chassis.mgmt-ip=100.66.7.222
|
||||
if self.data is None:
|
||||
return None
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
return self.data['lldp'][interface]['chassis'].get('mgmt-ip')
|
||||
|
||||
def get_switch_port(self, interface):
|
||||
# lldp.eth0.port.descr=GigabitEthernet1/0/1
|
||||
if self.data is None:
|
||||
return None
|
||||
if self.data['lldp'].get(interface) is None:
|
||||
return None
|
||||
if self.data['lldp'][interface]['port'].get('ifname'):
|
||||
|
|
@ -70,8 +66,6 @@ class LLDP():
|
|||
|
||||
def get_switch_vlan(self, interface):
|
||||
# lldp.eth0.vlan.vlan-id=296
|
||||
if self.data is None:
|
||||
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