diff options
author | Håkon Solbjørg <hakon@solbj.org> | 2023-04-04 19:18:50 +0200 |
---|---|---|
committer | Håkon Solbjørg <hakon@solbj.org> | 2023-04-04 19:18:50 +0200 |
commit | d60decb6a46adccd317b65d07c31ef0b9232abad (patch) | |
tree | 491807dcdce2f640c15aa668c2a9e31437c064a0 /tools | |
parent | bbf790fc8b8f0abba59898cd177d26088f175335 (diff) |
fix(netbox2gondul): Always pick opposite end of cable, not always a side
Diffstat (limited to 'tools')
-rw-r--r-- | tools/netbox/scripts/netbox2gondul/netbox2gondul.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py index fd11869..cf124a7 100644 --- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py +++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py @@ -155,7 +155,7 @@ class Netbox2Gondul(Script): cable: Cable = first_ae_interface.cable # Assuming we only have one entry in the cable termination list. distro_interface: Interface = cable.a_terminations[0] - distro = distro_interface.device + distro = distro_interface.device if distro_interface.device != device else cable.b_terminations[0].device # This is the same way as we fetch mgmt vlan in the main run() function. # We could pass it in directly to device_to_gondul(). |