fix(network): retrieve switch interface using id instead of name
This commit is contained in:
parent
1429fedb9d
commit
e44fd2fe78
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ class ServerNetwork(Network):
|
|||
|
||||
switch_interface = self.lldp.get_switch_port(nb_server_interface.name)
|
||||
nb_switch_interface = nb.dcim.interfaces.get(
|
||||
device=nb_switch,
|
||||
device_id=nb_switch.id,
|
||||
name=switch_interface,
|
||||
)
|
||||
if nb_switch_interface is None:
|
||||
|
|
Loading…
Reference in a new issue