diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/netbox/scripts/netbox2gondul/netbox2gondul.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py index cf124a7..2a08268 100644 --- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py +++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py @@ -154,8 +154,8 @@ class Netbox2Gondul(Script):          first_ae_interface: Interface = uplink_ae.member_interfaces.first()          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 if distro_interface.device != device else cable.b_terminations[0].device +        distro_interface: Interface = cable.a_terminations[0] if cable.a_terminations[0].device != device else cable.b_terminations[0] +        distro = distro_interface.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().  | 
