Merge pull request #4 from ChessCom/pynetbox72

updated pynetbox to 7.2, fixed network.py
This commit is contained in:
tze089 2024-01-16 13:23:48 +01:00 committed by GitHub
commit 7710b8a60f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -544,7 +544,7 @@ class ServerNetwork(Network):
switch_interface = self.lldp.get_switch_port(nb_server_interface.name) switch_interface = self.lldp.get_switch_port(nb_server_interface.name)
nb_switch_interface = nb.dcim.interfaces.get( nb_switch_interface = nb.dcim.interfaces.get(
device=nb_switch, device=nb_switch.name,
name=switch_interface, name=switch_interface,
) )
if nb_switch_interface is None: if nb_switch_interface is None:

View file

@ -6,7 +6,7 @@ jsonargparse==4.23.1
netaddr==0.8.0 netaddr==0.8.0
netifaces2==0.0.18 netifaces2==0.0.18
packaging==23.1 packaging==23.1
pynetbox==7.0.1 pynetbox==7.2.0
python-slugify==8.0.1 python-slugify==8.0.1
PyYAML==6.0.1 PyYAML==6.0.1
requests==2.31.0 requests==2.31.0