Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Tags in Virtual Device Contexts and displaying the Tags column causes an error #14575

Closed
grncbg opened this issue Dec 21, 2023 · 1 comment · Fixed by #14586
Closed
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@grncbg
Copy link
Contributor

grncbg commented Dec 21, 2023

Deployment Type

Self-hosted

NetBox Version

v3.6.7

Python Version

3.8

Steps to Reproduce

  1. Add a new virtual device context with tags
    Add
  2. Navigate to "Virtual Device Contexts" and press the "Configure Table" button.
  3. Add the Tags column and press Save.
    Add the Tags column
  4. A NoReverseMatch Exception was raised
    Causes an error

Server Error
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'vdc_list' not found. 'vdc_list' is not a valid view function or pattern name.

Python version: 3.8.10
NetBox version: 3.6.7
Plugins:
netbox_demo: 0.3.1
If further assistance is required, please post to the NetBox discussion forum on GitHub.

Expected Behavior

The Virtual Device Contexts with the added Tags column are displayed.

Observed Behavior

A NoReverseMatch Exception was raised

@grncbg grncbg added the type: bug A confirmed report of unexpected behavior in the application label Dec 21, 2023
@grncbg
Copy link
Contributor Author

grncbg commented Dec 21, 2023

In netbox/dcim/tables/devices.py, the url_name is defined as dcim:vdc_list, but I think it should correctly be dcim:virtualdevicecontext_list.

https://github.com/netbox-community/netbox/blob/12beac4f1adc5be8dba927f9823e0bd904dcf60f/netbox/dcim/tables/devices.py#L1080C1-L1082C6

path('virtual-device-contexts/', views.VirtualDeviceContextListView.as_view(), name='virtualdevicecontext_list'),

After making the above changes, it is functioning as expected in my environment.

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available labels Dec 21, 2023
@jeremystretch jeremystretch self-assigned this Dec 21, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Dec 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants