Skip to content

Commit

Permalink
updated pynetbox to 7.2, fixed network.py, based on Solvik#277 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
tze089 committed Jan 16, 2024
1 parent 15a36ff commit e327011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netbox_agent/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def connect_interface_to_switch(self, switch_ip, switch_interface, nb_server_int

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:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jsonargparse==4.23.1
netaddr==0.8.0
netifaces2==0.0.18
packaging==23.1
pynetbox==7.0.1
pynetbox==7.2.0
python-slugify==8.0.1
PyYAML==6.0.1
requests==2.31.0
Expand Down

0 comments on commit e327011

Please sign in to comment.