Config Context by Tag Form broken #3600

Closed
opened 2025-12-29 18:30:04 +01:00 by adam · 3 comments
Owner

Originally created by @tobikris on GitHub (Apr 23, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version:
  • NetBox version: v2.7.8

Steps to Reproduce

  1. Create a tag which contains uppercase letters (e.g. LeafSwitch).
  2. Try to add this tag to a config context.

Expected Behavior

I would expect that the tag can be successfully set in the config context.

Observed Behavior

The tag is invalid: "Select a valid choice. 2 is not one of the available choices."
The workaround is to only use tags that do not use uppercase letters. I think after some debugging that the form is only working if the tag name is exactly equal to the tag slug.

Originally created by @tobikris on GitHub (Apr 23, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: * NetBox version: v2.7.8 ### Steps to Reproduce 1. Create a tag which contains uppercase letters (e.g. LeafSwitch). 2. Try to add this tag to a config context. ### Expected Behavior I would expect that the tag can be successfully set in the config context. ### Observed Behavior The tag is invalid: "Select a valid choice. 2 is not one of the available choices." The workaround is to only use tags that do not use uppercase letters. I think after some debugging that the form is only working if the tag name is exactly equal to the tag slug.
adam added the type: bugstatus: accepted labels 2025-12-29 18:30:04 +01:00
adam closed this issue 2025-12-29 18:30:05 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 23, 2020):

Please specify the exact tag value you are using.

@jeremystretch commented on GitHub (Apr 23, 2020): Please specify the exact tag value you are using.
Author
Owner

@tobikris commented on GitHub (Apr 24, 2020):

I added an example tag (LeafSwitch). I tried several and the common property of problematic tags is uppercase letters.

@tobikris commented on GitHub (Apr 24, 2020): I added an example tag (LeafSwitch). I tried several and the common property of problematic tags is uppercase letters.
Author
Owner

@tweippert commented on GitHub (Apr 24, 2020):

I tested it with these tags:

L2:DMZ-DE -> invalid message
l2:dmz-home -> invalid message
l2-dmz-home -> all fine

HTH,
tim

@tweippert commented on GitHub (Apr 24, 2020): I tested it with these tags: L2:DMZ-DE -> invalid message l2:dmz-home -> invalid message l2-dmz-home -> all fine HTH, tim
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3600