aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjur Fredriksen <sjurtf@ifi.uio.no>2025-03-25 21:35:27 +0100
committerSjur Fredriksen <sjurtf@ifi.uio.no>2025-03-25 21:35:27 +0100
commitf99294935b2d487afc4c3abebc4e423ddd46f071 (patch)
tree810747bafb01ae24890e6fb53e468d92d7948cf7
parent9c9f0750559ce2dcb904ea36ec87d94c661be2e2 (diff)
fix: vid on mgmt iface
-rw-r--r--tools/netbox/scripts/create-switch/create-switch-tg25.py2
1 files changed, 1 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 cc52ee7..c241571 100644
--- a/tools/netbox/scripts/create-switch/create-switch-tg25.py
+++ b/tools/netbox/scripts/create-switch/create-switch-tg25.py
@@ -327,7 +327,7 @@ class CreateSwitch(Script):
mgmt_vlan_interface = Interface.objects.create(
device=switch,
- name=f"{mgmt_interface_name}.{FABRIC_V4_JUNIPER_MGMT_PREFIX.vlan.id}",
+ name=f"{mgmt_interface_name}.{FABRIC_V4_JUNIPER_MGMT_PREFIX.vlan.vid}",
description=f'X: Mgmt',
type=InterfaceTypeChoices.TYPE_VIRTUAL,
mode=InterfaceModeChoices.MODE_TAGGED,