-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign VLANs also to Regions not only Sites or Global #936
Comments
How would you modify the existing data model to accomplish this? |
You can create VLAN groups that are not restricted by site. This is probably even more flexible than assigning VLANs to regions, and it doesn't require any changes to the data model. I'm going to close this out as this seems like a workable solution but please comment if you disagree. |
@jeremystretch the VLAN group would belong to the global context then right? I think the bigger issue here is being able to assign a vlan/group to a subset of sites. In terms of a source of truth, if I am looking at a particular device, how would I make the association that a vlan/group should be applied to that device? Because I don't want my vlan/group to be applied to all devices, just a subset? Does that make sense? |
@lampwins I don't follow. A VLAN being assigned to a site does not necessarily mean that it should exist on a particular device within that site. Some external knowledge about the network design is needed to make that call. |
@jeremystretch You are correct, however it is an interpretation based on the current ambiguity of model in this case. Take this scenario for example; my config management system is building out a new device and looks to netbox for data. The closest a vlan can be to a device currently is at the site level. So that is only interpretation that my config management system can make, as I only want it looking at netbox for data as it is the source of truth. Thinking about it more, the real solution to that particular problem would be vlan port assignment #150 So I get where you are coming from, it is just a different way of looking at it. |
We would like to request this feature too. In the moment I have no idea how to maintain uniqueness of vlans within region and sites. With a vlan group you have no direct relation from a vlan to a region, because vlan groups can only be assigned to sites. |
@teutonet Again, you can easily create VLANGroups to establish this hierarchy. |
@jeremystretch VLAN 1 (ungrouped) has a prefix (1.2.3.4/24) Regions:
So i thought about using site as global instance, but later, if you need to split alpha, beta, you could use rack groups, but theese cannot be used to assign vlans either. You will have no filters available to get a satisfying result. I hope you can understand, why it would be very nice to assign VLANs, or at least VLANGroups per region, to configure failover scenarios for example. |
@vibe-x Create a global VLANGroup named "Region A" and assign the desired VLANs to it. Create another one for "Region B." Problem solved. There's no need to strictly couple the groups to Region objects. |
I would like i would like to be able to assign a vlan or vlan group also to an region not only global or to an site.
Now with region #164 and global vlan #235 support in Version 1.9 #933 i use two regions, one for our factory premises with 20 sites (every building as its own site) and a second region with only one site for the remote datacenter.
Now i can set all vlans that i want to use at the whole factory premises to global instead of an site.
But then all this vlan are even available at the secound region which is undesired.
The text was updated successfully, but these errors were encountered: