aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSjur Fredriksen <sjurtf@ifi.uio.no>2025-02-16 20:45:54 +0100
committerSjur Fredriksen <sjurtf@ifi.uio.no>2025-02-16 20:45:54 +0100
commit7f77a3dd6b394d7145bbcb946afd95fcb80c4330 (patch)
tree2bbf1cc9087cce18446c21e042832a87ab0763d5 /tools
parent0ed4e5d7d9ee41e4cdc08f39475ea0dd5e3c90a0 (diff)
unneeded validation check, regex ensures input is valid
Diffstat (limited to 'tools')
-rw-r--r--tools/netbox/scripts/create-switch/create-switch-tg25.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/netbox/scripts/create-switch/create-switch-tg25.py b/tools/netbox/scripts/create-switch/create-switch-tg25.py
index 0703b3d..f932bf4 100644
--- a/tools/netbox/scripts/create-switch/create-switch-tg25.py
+++ b/tools/netbox/scripts/create-switch/create-switch-tg25.py
@@ -140,9 +140,6 @@ class CreateSwitch(Script):
)
def run(self, data, commit):
- if not data['switch_name'].startswith("e") and not data['switch_name'].startswith("d"):
- raise ValidationError("Switch name must start whit e or d")
-
switch = self.create_switch(data)
vlan = self.create_vlan(switch)