From d60decb6a46adccd317b65d07c31ef0b9232abad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Solbj=C3=B8rg?= Date: Tue, 4 Apr 2023 19:18:50 +0200 Subject: fix(netbox2gondul): Always pick opposite end of cable, not always a side --- tools/netbox/scripts/netbox2gondul/netbox2gondul.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/netbox/scripts/netbox2gondul/netbox2gondul.py') 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(). -- cgit v1.2.3