-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: 3.6.8
- NetBox version: 2.9.4
Steps to Reproduce
- set on interface (on device or vm) 802.1Q Mode (any mode) and Untagged VLAN
- set 802.1Q Mode to None, fields with vlans disapear
- set any 802.1Q Mode again, field Untagged VLAN will be filled with VLAN from step 1
If you save after step 2, 802.1Q Mode will change, but Untagged VLAN stays on interface.
Expected Behavior
Untagged VLAN field should be empty
Observed Behavior
Untagged VLAN field does not clear, with Tagged VLANs field all works fine.
On my enviroment I fix this in file project-static/js/forms.js line 351 by sending empty string to val() function.
$('select#id_untagged_vlan').val('');
I don't know is this a good solution, so I open this issue
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application