So it would work on virtual also
We found that this line caused when running it to fetch device interfaces and not virtual interface. By using object reference it is now working
This commit is contained in:
parent
86527af1c0
commit
258f5c531f
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ class Network(object):
|
||||||
lldp_vlan = self.lldp.get_switch_vlan(nic['name']) if config.network.lldp else None
|
lldp_vlan = self.lldp.get_switch_vlan(nic['name']) if config.network.lldp else None
|
||||||
# For strange reason, we need to get the object from scratch
|
# For strange reason, we need to get the object from scratch
|
||||||
# The object returned by pynetbox's save isn't always working (since pynetbox 6)
|
# The object returned by pynetbox's save isn't always working (since pynetbox 6)
|
||||||
interface = nb.dcim.interfaces.get(id=interface.id)
|
interface = self.nb_net.interfaces.get(id=interface.id)
|
||||||
|
|
||||||
# Handle the case were the local interface isn't an interface vlan as reported by Netbox
|
# Handle the case were the local interface isn't an interface vlan as reported by Netbox
|
||||||
# and that LLDP doesn't report a vlan-id
|
# and that LLDP doesn't report a vlan-id
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue