Edit on multiple Interface does not allow to set VLANs #6078

Closed
opened 2025-12-29 19:36:30 +01:00 by adam · 1 comment
Owner

Originally created by @basti1508 on GitHub (Feb 11, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.7

Python version

3.9

Steps to Reproduce

  • Open Interface view of device
  • select 2-n interfaces
  • click on edit
  • select e.g. Untagged VLAN
  • click save

Expected Behavior

the vlan will be added to the interface

Observed Behavior

nothing happens.
It is also not possible to select the 802.1q switching type in that view (which may cause this error)

Originally created by @basti1508 on GitHub (Feb 11, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.7 ### Python version 3.9 ### Steps to Reproduce - Open Interface view of device - select 2-n interfaces - click on edit - select e.g. Untagged VLAN - click save ### Expected Behavior the vlan will be added to the interface ### Observed Behavior nothing happens. It is also not possible to select the 802.1q switching type in that view (which may cause this error)
adam added the type: bugstatus: accepted labels 2025-12-29 19:36:30 +01:00
adam closed this issue 2025-12-29 19:36:31 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 15, 2022):

VLANs can be assigned only to interfaces with their mode set to one of the 802.1Q options (untagged, tagged, or tagged-all). When an interface with its mode set to None is saved, any VLANs associated with it are automatically removed. I can confirm that specifying the mode when assigning the untagged VLAN functions as expected.

Granted, the bulk edit form should at least throw a validation error to avoid confusion. I can take that.

@jeremystretch commented on GitHub (Feb 15, 2022): VLANs can be assigned only to interfaces with their mode set to one of the 802.1Q options (untagged, tagged, or tagged-all). When an interface with its mode set to `None` is saved, any VLANs associated with it are [automatically removed](https://github.com/netbox-community/netbox/blob/18eb9ffae61368c1e895e2d383c096592c4ebe3f/netbox/dcim/models/device_components.py#L492-L494). I can confirm that specifying the mode when assigning the untagged VLAN functions as expected. Granted, the bulk edit form should at least throw a validation error to avoid confusion. I can take that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6078