You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare some CSV file with dummy values for a Custom Link to import, see below for example.
Attempt the Import of the CSV file or use Direct import via Comma-separated data.
Sample data used to reproduce the observed behavior:
name,content_types,enabled,group_name,button_class,new_window,link_text,link_url,weight
Test,"dcim.device,virtualization.virtualmachine",TRUE,Testgroup,default,TRUE,Open Link in new Window,https://{{ object.name }}:443/,100
Also tried with:
name,content_types,enabled,group_name,button_class,new_window,link_text,link_url,weight
Test,"dcim.device,virtualization.virtualmachine",TRUE,Testgroup,Default,TRUE,Open Link in new Window,https://{{ object.name }}:443/,100
Expected Behavior
The new Custom Link should be created with a "Button Class" value of "Default", just as it works when creating a new Custom Field manually via the GUI and leaving "Default" as the "Button Class" as displayed.
Observed Behavior
Error "Record 1 button_class: Select a valid choice. Default is not one of the available choices." is displayed in the GUI and the Custom Link is not created.
The text was updated successfully, but these errors were encountered:
I just found out that the "Default" value is called "outline-dark" by looking into the "button_class" column of the "extras_customlink" table of another Netbox instance (I also found the evidence in the Code after searching for the value "outline-dark" in Github).
I'm not sure anymore if this is a bug or just needs improvement in documentation as I didn't find this being mentioned in the Netbox UI or the Documentation (Something like "Default is "outline-dark"" in either of these places would be helpful.
New to "contributing" to Github, so I think I'll close this and instead suggest an addition to documentation.
Deployment Type
Self-hosted
NetBox Version
v3.7.4
Python Version
3.11
Steps to Reproduce
Sample data used to reproduce the observed behavior:
name,content_types,enabled,group_name,button_class,new_window,link_text,link_url,weight
Test,"dcim.device,virtualization.virtualmachine",TRUE,Testgroup,default,TRUE,Open Link in new Window,https://{{ object.name }}:443/,100
Also tried with:
name,content_types,enabled,group_name,button_class,new_window,link_text,link_url,weight
Test,"dcim.device,virtualization.virtualmachine",TRUE,Testgroup,Default,TRUE,Open Link in new Window,https://{{ object.name }}:443/,100
Expected Behavior
The new Custom Link should be created with a "Button Class" value of "Default", just as it works when creating a new Custom Field manually via the GUI and leaving "Default" as the "Button Class" as displayed.
Observed Behavior
Error "Record 1 button_class: Select a valid choice. Default is not one of the available choices." is displayed in the GUI and the Custom Link is not created.
The text was updated successfully, but these errors were encountered: