aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-03-22 20:34:45 +0100
committerHåkon Solbjørg <hakon@solbj.org>2023-03-22 20:34:45 +0100
commite49cdda4d5664f6c53bcb41a11dea620eab239f5 (patch)
tree83b5f09b2fc04caa5658a00b0f124ad9c3fb0d1b
parentd2ab05b259ea7fb3de9786d8e324898c1251c303 (diff)
fix(create-switch): Mark interfaces as LAG members
-rw-r--r--tools/netbox/scripts/create-switch/create-switch.py4
1 files 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()