From e49cdda4d5664f6c53bcb41a11dea620eab239f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Solbj=C3=B8rg?= Date: Wed, 22 Mar 2023 20:34:45 +0100 Subject: fix(create-switch): Mark interfaces as LAG members --- tools/netbox/scripts/create-switch/create-switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/netbox/scripts/create-switch/create-switch.py b/tools/netbox/scripts/create-switch/create-switch.py index 0067200..6c442e1 100644 --- a/tools/netbox/scripts/create-switch/create-switch.py +++ b/tools/netbox/scripts/create-switch/create-switch.py @@ -177,11 +177,11 @@ class CreateSwitch(Script): b_interface = interfaces[(uplink_num * -1) -1] # Configure uplink as AE0 - b_interface.parent = uplink_ae + b_interface.lag = uplink_ae b_interface.save() # Configure downlink on destination - a_interface.parent = destination_ae + a_interface.lag = destination_ae a_interface.save() cable = Cable.objects.create() -- cgit v1.2.3