aboutsummaryrefslogtreecommitdiffstats
path: root/tools/netbox/scripts/create-switch
diff options
context:
space:
mode:
authorSjur Fredriksen <sjurtf@ifi.uio.no>2025-03-25 21:36:44 +0100
committerSjur Fredriksen <sjurtf@ifi.uio.no>2025-03-25 21:36:44 +0100
commit31362fce46b010e73e8e6ebbf7b046ba03323543 (patch)
tree7425391ba49d434a8313015046e07121909fdca3 /tools/netbox/scripts/create-switch
parentf99294935b2d487afc4c3abebc4e423ddd46f071 (diff)
fix: vlan interface should be access on vid
Diffstat (limited to 'tools/netbox/scripts/create-switch')
-rw-r--r--tools/netbox/scripts/create-switch/create-switch-tg25.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/netbox/scripts/create-switch/create-switch-tg25.py b/tools/netbox/scripts/create-switch/create-switch-tg25.py
index c241571..2d3b457 100644
--- a/tools/netbox/scripts/create-switch/create-switch-tg25.py
+++ b/tools/netbox/scripts/create-switch/create-switch-tg25.py
@@ -330,7 +330,8 @@ class CreateSwitch(Script):
name=f"{mgmt_interface_name}.{FABRIC_V4_JUNIPER_MGMT_PREFIX.vlan.vid}",
description=f'X: Mgmt',
type=InterfaceTypeChoices.TYPE_VIRTUAL,
- mode=InterfaceModeChoices.MODE_TAGGED,
+ mode=InterfaceModeChoices.MODE_ACCESS,
+ vid=FABRIC_V4_JUNIPER_MGMT_PREFIX.vlan.vid,
)
v4_mgmt_addr = IPAddress.objects.create(
address=FABRIC_V4_JUNIPER_MGMT_PREFIX.get_first_available_ip(),