Bulk create of VLANs #10285

Open
opened 2025-12-29 21:29:26 +01:00 by adam · 3 comments
Owner

Originally created by @Nefti-sama on GitHub (Sep 25, 2024).

NetBox version

v4.1.1

Feature type

New functionality

Proposed functionality

Create multiple VLANs if a range (i.e 3100-3299) is given in "VLAN ID" of "/ipam/vlans/add/"

Use case

If you want to create a VLAN-pool for some orchestrator to use for dynamic VLAN provisioning you could use a VLAN Group for that, but you still have to create the containing VLANs to see in the GUI, that those VLANs are not "free-to-use". These could have the name pattern "Name-VLAN_ID"

Database changes

No response

External dependencies

No response

Originally created by @Nefti-sama on GitHub (Sep 25, 2024). ### NetBox version v4.1.1 ### Feature type New functionality ### Proposed functionality Create multiple VLANs if a range (i.e 3100-3299) is given in "VLAN ID" of "/ipam/vlans/add/" ### Use case If you want to create a VLAN-pool for some orchestrator to use for dynamic VLAN provisioning you could use a VLAN Group for that, but you still have to create the containing VLANs to see in the GUI, that those VLANs are not "free-to-use". These could have the name pattern "Name-VLAN_ID" ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurenetboxstatus: backlogcomplexity: high labels 2025-12-29 21:29:26 +01:00
Author
Owner

@UCCPro commented on GitHub (Oct 1, 2024):

Would be welcome here in a planning project.

@UCCPro commented on GitHub (Oct 1, 2024): Would be welcome here in a planning project.
Author
Owner

@chris240189 commented on GitHub (Oct 21, 2024):

that would be cool.
I have a usecase where I have to import lots of VLANs from another data source and importing them one by one with ansible takes ages.

I am unsure how it should handle things if some VLANs inbetween the range already exists though.

@chris240189 commented on GitHub (Oct 21, 2024): that would be cool. I have a usecase where I have to import lots of VLANs from another data source and importing them one by one with ansible takes ages. I am unsure how it should handle things if some VLANs inbetween the range already exists though.
Author
Owner

@jeremystretch commented on GitHub (Jan 23, 2025):

We have a pattern for this today for creating ranges of IP addresses, however it needs to be reworked and standardized. I'll leave this open for anyone who's up to the task, but please do not merely replicate the existing pattern for VLANs.

@jeremystretch commented on GitHub (Jan 23, 2025): We have a pattern for this today for creating ranges of IP addresses, however it needs to be reworked and standardized. I'll leave this open for anyone who's up to the task, but _please_ do not merely replicate the existing pattern for VLANs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10285