vlan assignment to interfaces upon bulk edit clears previouslly assigned ones #4510

Closed
opened 2025-12-29 18:36:51 +01:00 by adam · 5 comments
Owner

Originally created by @LuPo on GitHub (Jan 28, 2021).

Environment

  • Python version: 3.9.1
  • NetBox version: 2.10.4

Steps to Reproduce

  1. Configure interfaces 1-5,11-15 on VLAN A
  2. Configure interfaces 6-10,16-20 on VLAN B
  3. Bulk edit interfaces 1-20 and add VLAN C
  4. Do not flag "set null" option

Expected Behavior

  1. Interfaces 1-5,11-15 with taggd VLANS A and C
  2. Interfaces 6-10,16-20 with taggd VLANS B and C

Observed Behavior

all of the above interfaces have only VLAN C

Originally created by @LuPo on GitHub (Jan 28, 2021). ### Environment * Python version: 3.9.1 * NetBox version: 2.10.4 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Configure interfaces 1-5,11-15 on VLAN A 2. Configure interfaces 6-10,16-20 on VLAN B 3. Bulk edit interfaces 1-20 and add VLAN C 4. Do not flag "set null" option ### Expected Behavior 1. Interfaces 1-5,11-15 with taggd VLANS A and C 2. Interfaces 6-10,16-20 with taggd VLANS B and C ### Observed Behavior all of the above interfaces have only VLAN C
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 18:36:51 +01:00
adam closed this issue 2025-12-29 18:36:51 +01:00
Author
Owner

@DanSheps commented on GitHub (Jan 28, 2021):

I have not dove into it too much, but this might be a limitation of DJango. I believe the bulk edit is a replace operation, even on multichoice fields.

@DanSheps commented on GitHub (Jan 28, 2021): I have not dove into it too much, but this might be a limitation of DJango. I believe the bulk edit is a replace operation, even on multichoice fields.
Author
Owner

@stale[bot] commented on GitHub (Mar 19, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@stale[bot] commented on GitHub (Mar 19, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Mar 24, 2021):

The current behavior simply sets the assigned VLANs, replacing any that were already assigned as @DanSheps alluded. To alter this behavior, we would need to introduce separate "add" and "remove" fields to the bulk edit form, as exist for tags.

@jeremystretch commented on GitHub (Mar 24, 2021): The current behavior simply sets the assigned VLANs, replacing any that were already assigned as @DanSheps alluded. To alter this behavior, we would need to introduce separate "add" and "remove" fields to the bulk edit form, as exist for tags.
Author
Owner

@github-actions[bot] commented on GitHub (May 24, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (May 24, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Jun 24, 2021):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Jun 24, 2021): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4510