Open Solvik opened 1 year ago
Any progress? Please?
Hi, I have used this PR on my setup with 2 more changes (see bellow) and it worked:
--- a/netbox_agent/network.py
+++ b/netbox_agent/network.py
@@ -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=nb_switch.name,
name=switch_interface,
)
if nb_switch_interface is None:
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-pynetbox==6.1.2
+pynetbox==7.2.0
netaddr==0.8.0
netifaces==0.11.0
pyyaml==6.0.1
Netbox version: v3.6.4
Any progress on this? I'm using net box 3.6.x and it looks like pynetbox 7.2 (released yesterday) is needed... Just looking to see if it's expected soon, or if I should dive in and see if I can figure it out myself :)