Skip to content
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

Closed
SNOW-NOVA opened this issue Jul 8, 2016 · 15 comments
Closed

Global VLAN #235

SNOW-NOVA opened this issue Jul 8, 2016 · 15 comments
Milestone

Comments

@SNOW-NOVA
Copy link

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

@SNOW-NOVA
Copy link
Author

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?

@ryanmerolle
Copy link
Contributor

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.

@SNOW-NOVA
Copy link
Author

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.

@jeremystretch
Copy link
Member

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.

@rdujardin
Copy link

It would be nice if site assignment was optional, to take into account VLANs accross several sites.

@cstueckrath
Copy link

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.

@anthraxau
Copy link

I would love this feature aswell as we run L2 across two sites.

Cheers

@Censored3
Copy link

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.
Please implement this one - I don't think it's all that uncommon - so I can start using NetBox as it seems to be the perfect AIO solution!

@Shawn0720
Copy link
Contributor

Created pull request for this issue. Please try it out if you want. I'm open for any suggestion.

Thanks

@candlerb
Copy link
Contributor

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:

  1. Don't associate the prefix with any site. This leaves site 1 vlan 123 and site 2 vlan 123 both not linked to any prefix.

  2. Associate the prefix with one site only. The other end is a VLAN with no prefix.

  3. Create the same prefix on both vlans. This results in a duplicate prefix in the database which is flagged up in red.

Shawn0720 added a commit to Shawn0720/netbox that referenced this issue Feb 19, 2017
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
jeremystretch added a commit that referenced this issue Feb 21, 2017
This was referenced Feb 28, 2017
@Censored3
Copy link

Thx a lot for implementing! Comes a long way!
However I'd really like to be able to really assign a VLAN to multiple sites instead of just having globally... I don't think anyone ever really has a global VLAN? Any possibility for that?

@lampwins
Copy link
Contributor

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.

@candlerb
Copy link
Contributor

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.

@jeremystretch jeremystretch added this to the v1.9 milestone Mar 17, 2017
@hawko2600
Copy link

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.:
#852 (comment)

@candlerb
Copy link
Contributor

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)

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
* 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
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests