Improves error detection
This commit is contained in:
parent
9e7163a1e5
commit
3d44530f39
2 changed files with 2 additions and 1 deletions
|
|
@ -66,6 +66,8 @@ class LLDP():
|
||||||
|
|
||||||
def get_switch_vlan(self, interface):
|
def get_switch_vlan(self, interface):
|
||||||
# lldp.eth0.vlan.vlan-id=296
|
# lldp.eth0.vlan.vlan-id=296
|
||||||
|
if self.data['lldp'] is None:
|
||||||
|
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]['vlan']
|
return self.data['lldp'][interface]['vlan']
|
||||||
|
|
|
||||||
1
netbox_agent/vendors/supermicro.py
vendored
1
netbox_agent/vendors/supermicro.py
vendored
|
|
@ -25,7 +25,6 @@ class SupermicroHost(ServerBase):
|
||||||
# Blades
|
# Blades
|
||||||
blade = product_name.startswith('SBI')
|
blade = product_name.startswith('SBI')
|
||||||
blade |= product_name.startswith('SBA')
|
blade |= product_name.startswith('SBA')
|
||||||
blade |= product_name.startswith('AS ')
|
|
||||||
# Twin
|
# Twin
|
||||||
blade |= 'TR-' in product_name
|
blade |= 'TR-' in product_name
|
||||||
# TwinPro
|
# TwinPro
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue