-
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
Global VLAN #235
Comments
Furthermore to add to this this say i create VLAN 100 which is used across SITE A and SITE B with a prefix of 192.168.1.0/24. I cannot assign that same prefix across multiple sites, I have to create a prefix and VLAN per site. Thoughts? |
Linking to #111 given this should be considered with the new discrete VLAN discussion. It's good to know how other tools tackle this, not that I agree, but here goes... Some other tools create VLANs when discovered via SNMP as individual records. They do not assume the VLAN, though having the same number/id, name, and description are all apart of the same L2 domain. As such these tools allow you to merge VLAN records after the fact as long as the numbers/ids match. That way you can associate VLANs on devices across a site or multiple sites. |
Yes that is correct - L2 Domains is how they define it too. It would be nice to manage all this information without duplication of data from a user input side to achieve the same result. |
We should be able to make site assignment optional for VLANs. Will need to comb through the code and see presumed site assignment presents issues anywhere. I'm not sure how this would play with the concept of discrete L2 zones though. Prefixes already need not be assigned to a particular site, so no changes should be needed there so long as you can define a global VLAN. |
It would be nice if site assignment was optional, to take into account VLANs accross several sites. |
another way around this might be parent and child sites, so all site spanning vlans could go to the parent (and thus be available in all child sites as well) and the individual vlans could stick to the sub site, not visible to other sub sites. |
I would love this feature aswell as we run L2 across two sites. Cheers |
I'm actually awaiting this feature to start implementing NetBox; it's a showstopper. I need stretched VLANs spanned across X sites - mind you, NOT global VLANs that are spanned across all sites - that way I would have trouble using duplicate VLANs on other sites that are actually in different L2 domains. |
Created pull request for this issue. Please try it out if you want. I'm open for any suggestion. Thanks |
Another use case (or different feature?) is linking the same prefix to multiple site VLANs. I have a layer 2 site-to-site link from a provider. I have assigned a prefix for the link. I would like to associate (site 1 vlan 123) and (site 2 vlan 123) with the same prefix. Potentially this same VLAN might be extended to a third site in future. Right now I appear to have a few options:
|
Decouple site/vlan, make site optional for vlan/vlangroup Change html generation code to check site existence before dereference Create site search function, if site is None for a VLAN, view it as global VLAN
Thx a lot for implementing! Comes a long way! |
This issue of vlan assignment seems to come up at lot, in several different forms. I think the solution is to extent regions so that vlans (and perhaps other objects) can be assigned there. |
That's not as flexible as being able to associate a VLAN with multiple arbitrary sites though. If VLAN A is trunked to sites X and Y and Z, but VLAN B is only in sites X and Y, then that's what the model should show. |
ping @jeremystretch This issue was closed in Feb then added to the 1.9 milestone in Mar (after closure) so I fear it may have become lost. There's still no capability to correctly represent an arbitrary stretched layer 2 vlan as described by @candlerb above. The virtualisation capability could also do with the ability to comprehend that the cluster or VM exists in multiple sites when it lives on a stretched layer 2 vlan. Other mentions of the problem are also in closed tickets, see e.g.: |
VLANs can now be made global - not assigned to any site - which is why the ticket was closed. Being able to associate a VLAN with a list of sites should probably be a new feature request. For now, you can make a global VLAN and put in the description a list of sites it spans. A similar case arises if you re-use the same VLAN tag within a site: you just create two VLANs with the same tag, and there's no explicit modelling of which devices or racks each VLAN spans (although there is the implicit L2/L3 relationship from device - interface - VRF/IP address - prefix - VLAN) |
* Fix netbox-community#235: Enable global vlan Decouple site/vlan, make site optional for vlan/vlangroup Change html generation code to check site existence before dereference Create site search function, if site is None for a VLAN, view it as global VLAN * commit1 * commit2 * commit3 * Add migration file for VLAN&VLAN group * Revert unintentional commits
Closes netbox-community#235: Global vlans
HI Guys,
We use a VLAN for mgmt which spans multiple sites, rather than adding the same VLAN and making it site specific which we would do 99% of the time, can we have an option in site to be global which would automatically apply across all sites, so we only have to add it once?
Thanks
Shaun
The text was updated successfully, but these errors were encountered: