Netbox: Show available VLAN IDs within a group

Created on 17 Mar 2017  路  6Comments  路  Source: netbox-community/netbox

Feature request to show available VLAN IDs within a group, similar to the way available prefixes are shown in aggregates/parent prefixes. Currently allocating a new VLAN requires manually browsing the list to find an available ID, remembering it, and manually entering in the Add a VLAN form. It would be nice to streamline this.

accepted feature

Most helpful comment

Sure, I'm imagining something very much like what exists when viewing a prefix on the IP addresses tab. I guess this would involve creating a new view for VLAN groups, rather than just linking to the VLAN search. I've mocked something up based on the mentioned prefix page (my math probably suffers from off-by-one errors). Add a VLAN would default to the first available VLAN ID, and clicking one of the 'available' links would default to the first available ID within that range, like how it works for IPs/prefixes.
netbox-vlans-mockup

All 6 comments

How would you display this? Could you provide a mock-up?

Sure, I'm imagining something very much like what exists when viewing a prefix on the IP addresses tab. I guess this would involve creating a new view for VLAN groups, rather than just linking to the VLAN search. I've mocked something up based on the mentioned prefix page (my math probably suffers from off-by-one errors). Add a VLAN would default to the first available VLAN ID, and clicking one of the 'available' links would default to the first available ID within that range, like how it works for IPs/prefixes.
netbox-vlans-mockup

Oh, ok. I thought you were talking about inserting the VLAN list in the form somehow. I like it.

Thinking about this further, we don't have a view for VLANGroup because it's not a primary object. (It's used only for the organization of primary objects.) Not sure we really want to deviate from that pattern.

For auto-allocation it would be awesome to get this info via an API call.

How would this know what VLANs to show as available? You assign a group to a VLAN, not the other way around. A VLAN group is for organization inside Netbox and for filtering the drop down lists. There isn't a specific assumption of what VLANS should be in the group to determine what is missing, unless you are checking the site's entered VLANs against all possible VLAN IDs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bellwood picture bellwood  路  3Comments

soer7022 picture soer7022  路  3Comments

luto picture luto  路  3Comments

billyzoellers picture billyzoellers  路  3Comments

benjy44 picture benjy44  路  3Comments