Description
NetBox version
v4.2.4
Feature type
Change to existing functionality
Proposed functionality
It was suggested in issue #12764 to make it a formal feature request. This was also reported in issue #12690.
Assigning VLANs from a VLAN groups should work in all context in the Netbox UI. At the moment, when using the API or Netbox Scripts we can properly assign VLAN(s) to interface(s) based on specific VLAN Groups, but we can't from dcim/interfaces/.
Here's the workflow:
- Create a device.
- Assign the device to a virtualization cluster.
- Create a VLAN group attached to the cluster.
- Create VLAN(s) in the VLAN group.
- Can't assign VLAN(s) from the VLAN group on the device interfaces manually in the GUI.
- Can assign VLAN(s) using the API or a Netbox Scripts.
When we modify an interface and want to assign a VLAN based on a VLAN group, the "dropdown menu/list" of Untagged VLAN and Tagged VLANs is empty even if VLANs exist in the selected VLAN group.
Use case
We are allowed to create VLANs and VLAN groups, we should be able to assign any of those VLANs in the Netbox Web UI.
Creating VLAN groups is common in virtualization or when we group devices that shares VLANs: VTP domain (people still uses those), any Network Fabric or cluster of devices (or servers).
Database changes
I don't think any database change is required, the API already allows proper assignment of VLANs that are member of a group. This is actually how we work around the issue at the moment: we have created a form with a Netbox Scripts that allows us to add/remove VLANs to an interface manually. We override the UI limitation.
I feel the current limitation, is mainly due to the Web UI vlan lookup logic: when selecting a VLAN group, the list/dropdown is empty (the query may need to be fine tuned).
External dependencies
N/A