-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Deployment Type
Self-hosted
NetBox Version
v4.2.6 (also reproduced it on main branch)
Python Version
3.12
Steps to Reproduce
All steps are done using the web ui in a webbrowser.
- Add a new Region named
My Region - Add a new Site named
My Site - Add a new Circuit Provider named
My Circuit Provider - Add a new Circuit Type named
My Circuit Type - Add a new Circuit with Circuit ID
My Circuit; with ProviderMy Circuit Providerand Circuit TypeMy Circuit Type - Add a new Circuit Termination for Circuit
My Circuit; with Termination sideA, Termination TypeDCIM > Regionand Termination/RegionMy Region - Add a new Circuit Termination for Circuit
My Circuit; with Termination sideZ, Termination TypeDCIM > Siteand Termination/SiteMy Site - Open the detail page for the Site
My Site(url would be something like/dcim/sites/1/) - Open the detail page for the Region
My Region(url would be something like/dcim/regions/1/) - In the
Related objectspanel on the right side, click theCircuit Terminationslink
Expected Behavior
Regarding step 8: The Related objects panel on the right side of the Site detail page contains a Circuit Terminations link, like it is for Region/SiteGroup/Location.
Regarding step 10: The Circuit Termination list page is shown, with filter Region: My Region applied, and only showing entries that are terminated at that region (My Circuit Termination side A from the example above, but not My Circuit Termination side Z).
Observed Behavior
Regarding step 8: The Related objects panel on the right side of the Site detail page does not contain a Circuit Terminations link.
Regarding step 10: The Circuit Termination list page is shown, with no filter applied, and showing all entries. This is (to the best of my knowledge) caused by the link on the detail page pointing to /circuits/circuit-terminations/?_region_id=1 (which is the cached property), but should be /circuits/circuit-terminations/?region_id=1 (without the leading underscore). The Circuit Terminations link on the detail page of SiteGroups and Locations also contain that leading underscore, and are not working as well.
I am willing to work on this. I would be grateful for any (rough) pointers where to start looking and/or what automatism is at work here.