VLAN group not preselect when creating VLAN from VLAN group #5019

Closed
opened 2025-12-29 19:23:13 +01:00 by adam · 4 comments
Owner

Originally created by @tobiasge on GitHub (Jun 21, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.7

Python version

3.8

Steps to Reproduce

  1. Create VLAN group
  2. Use "4094 VLANs available" button to add a VLAN

Expected Behavior

VLAN group in "Assignment" is preselected

Observed Behavior

VLAN group is not selected

Originally created by @tobiasge on GitHub (Jun 21, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.7 ### Python version 3.8 ### Steps to Reproduce 1. Create VLAN group 3. Use "4094 VLANs available" button to add a VLAN ### Expected Behavior VLAN group in "Assignment" is preselected ### Observed Behavior VLAN group is not selected
adam added the type: bugstatus: accepted labels 2025-12-29 19:23:13 +01:00
adam closed this issue 2025-12-29 19:23:13 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 21, 2021):

This is intended behavior. A scope need not be a site: it may be a region, site group, site, location, or rack. The assignment of a VLAN to both a site-scope VLAN group and a site is redundant.

@jeremystretch commented on GitHub (Jun 21, 2021): This is intended behavior. A scope need not be a site: it may be a region, site group, site, location, or rack. The assignment of a VLAN to both a site-scope VLAN group and a site is redundant.
Author
Owner

@tobiasge commented on GitHub (Jun 21, 2021):

From what I have seen in the link, it worked like this before the change to "scope" was made.
And even when it is not desired to preselect both, the VLAN group should be selected. Have a look at the PR, and you will see the problem.

@tobiasge commented on GitHub (Jun 21, 2021): From what I have seen in the link, it worked like this before the change to "scope" was made. And even when it is not desired to preselect both, the VLAN group should be selected. Have a look at the PR, and you will see the problem.
Author
Owner

@tobiasge commented on GitHub (Jun 21, 2021):

I have updated the description above.
It can be re-produce in the demo:

The difference is the missing group id in the first link. I hope this makes the problem more understandable.

@tobiasge commented on GitHub (Jun 21, 2021): I have updated the description above. It can be re-produce in the demo: - Open https://demo.netbox.dev/ipam/vlan-groups/3/ - Button "200 VLANs available" has this link: https://demo.netbox.dev/ipam/vlans/add/?vid=1&group= - Button on top "+ Add VLAN" has this link: https://demo.netbox.dev/ipam/vlans/add/?group=3 The difference is the missing group id in the first link. I hope this makes the problem more understandable.
Author
Owner

@jeremystretch commented on GitHub (Jun 22, 2021):

Thanks, I see what you're saying now. AFAICT this has been broken for a while.

@jeremystretch commented on GitHub (Jun 22, 2021): Thanks, I see what you're saying now. AFAICT this has been broken for a while.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5019