From 31362fce46b010e73e8e6ebbf7b046ba03323543 Mon Sep 17 00:00:00 2001 From: Sjur Fredriksen Date: Tue, 25 Mar 2025 21:36:44 +0100 Subject: fix: vlan interface should be access on vid --- tools/netbox/scripts/create-switch/create-switch-tg25.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(), -- cgit v1.2.3