Skip to content

Related object links from sites to circuit termination not working #19105

Closed as duplicate of#18881
@corubba

Description

@corubba

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.

  1. Add a new Region named My Region
  2. Add a new Site named My Site
  3. Add a new Circuit Provider named My Circuit Provider
  4. Add a new Circuit Type named My Circuit Type
  5. Add a new Circuit with Circuit ID My Circuit; with Provider My Circuit Provider and Circuit Type My Circuit Type
  6. Add a new Circuit Termination for Circuit My Circuit; with Termination side A, Termination Type DCIM > Region and Termination/Region My Region
  7. Add a new Circuit Termination for Circuit My Circuit; with Termination side Z, Termination Type DCIM > Site and Termination/Site My Site
  8. Open the detail page for the Site My Site (url would be something like /dcim/sites/1/)
  9. Open the detail page for the Region My Region (url would be something like /dcim/regions/1/)
  10. In the Related objects panel on the right side, click the Circuit Terminations link

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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions