Allow binding vlan/vlan-group/prefixes to Region instead of a specific site. #2080

Closed
opened 2025-12-29 17:22:06 +01:00 by adam · 2 comments
Owner

Originally created by @dxks on GitHub (Oct 31, 2018).

Environment

  • Python version: 2.7.5
  • NetBox version: 2.4.4

Proposed Functionality

Possibility to assign a vlan-group/vlan/prefix to a region instead of a site.

Use Case

At the moment you have only the possibility to assign a vlan/vlan-group to a site. To assign a vlan to an interface the vlan has to be assign to the site or be global. When you have several networks in different regions (like germany, netherlands, usa) where the vlan's can overlap you cannot assign the group or the vlan to this region and so you have all vlans global and need to pick the correct one.

The same issue is if you want to have a vlan on several sites but not in all regions.

Database Changes

External Dependencies

Originally created by @dxks on GitHub (Oct 31, 2018). ### Environment * Python version: 2.7.5 * NetBox version: 2.4.4 ### Proposed Functionality Possibility to assign a vlan-group/vlan/prefix to a region instead of a site. ### Use Case At the moment you have only the possibility to assign a vlan/vlan-group to a site. To assign a vlan to an interface the vlan has to be assign to the site or be global. When you have several networks in different regions (like germany, netherlands, usa) where the vlan's can overlap you cannot assign the group or the vlan to this region and so you have all vlans global and need to pick the correct one. The same issue is if you want to have a vlan on several sites but not in all regions. ### Database Changes ### External Dependencies
adam closed this issue 2025-12-29 17:22:06 +01:00
Author
Owner

@bdlamprecht commented on GitHub (Nov 1, 2018):

I'd like to see if this can be expanded to include binding on device_role as well.
Not sure if the Django ORM supports this relationship, but thought I'd ask.

@bdlamprecht commented on GitHub (Nov 1, 2018): I'd like to see if this can be expanded to include binding on `device_role` as well. Not sure if the Django ORM supports this relationship, but thought I'd ask.
Author
Owner

@jeremystretch commented on GitHub (Nov 1, 2018):

VLAN groups can be used to accomplish this. Simply create a group to represent the desired region(s).

@jeremystretch commented on GitHub (Nov 1, 2018): VLAN groups can be used to accomplish this. Simply create a group to represent the desired region(s).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2080