Circuit search filter does not work properly #3073

Closed
opened 2025-12-29 18:25:22 +01:00 by adam · 4 comments
Owner

Originally created by @lmgonzalezl on GitHub (Dec 16, 2019).

Environment

  • Python version: 3.5
  • NetBox version: 2.6.8

Steps to Reproduce

When trying to filter by region or site the search does not work, it shows zero records.

Expected Behavior

Show records that match the filter

Observed Behavior

There are no problems with the records even when there is information that matches the filter applied

Originally created by @lmgonzalezl on GitHub (Dec 16, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.5<!-- Example: 3.5.4 --> * NetBox version: 2.6.8 <!-- Example: 2.5.2 --> <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce When trying to filter by region or site the search does not work, it shows zero records. <!-- What did you expect to happen? --> ### Expected Behavior Show records that match the filter <!-- What happened instead? --> ### Observed Behavior There are no problems with the records even when there is information that matches the filter applied
adam closed this issue 2025-12-29 18:25:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 16, 2019):

Please outline the specific steps need to reproduce the reported behavior, including circuit creating and the filter value(s) you are using.

@jeremystretch commented on GitHub (Dec 16, 2019): Please outline the specific steps need to reproduce the reported behavior, including circuit creating and the filter value(s) you are using.
Author
Owner

@lmgonzalezl commented on GitHub (Dec 16, 2019):

I have several circuits associated with different tenants

image

I don't see how to associate circuits with regions and sites. In any case, the tenants should be associated with a site so that the relationship can exist "circuit <-> Tenant <-> region".

Example. Circuit 386******640 is associated to the tenant LCR-01 that corresponds to the port of the Christians. If I apply the Region: Puerto de los Cristianos filter, the search does not yield results

image

image

@lmgonzalezl commented on GitHub (Dec 16, 2019): I have several circuits associated with different tenants ![image](https://user-images.githubusercontent.com/51785108/70923359-aefb4800-201f-11ea-89d5-d84bbc10b2aa.png) I don't see how to associate circuits with regions and sites. In any case, the tenants should be associated with a site so that the relationship can exist "circuit <-> Tenant <-> region". Example. Circuit 386******640 is associated to the tenant LCR-01 that corresponds to the port of the Christians. If I apply the Region: Puerto de los Cristianos filter, the search does not yield results ![image](https://user-images.githubusercontent.com/51785108/70924077-dbfc2a80-2020-11ea-9eb1-8af03a4745e6.png) ![image](https://user-images.githubusercontent.com/51785108/70924153-f6ce9f00-2020-11ea-8da4-0dbf4c9d95b8.png)
Author
Owner

@tyler-8 commented on GitHub (Dec 19, 2019):

A Circuit is associated to a Site by creating a CircuitTermination that is attached to the Site. A Circuit by itself does not associate with a Site.

Site can be attached to Region. The Tenant doesn't come in to play at all in the Region relationship.

The site SC5 - Edificio JOP needs to attached to the Los Cristianos region in order for the filter to show the 38100001066107 circuit.

@tyler-8 commented on GitHub (Dec 19, 2019): A `Circuit` is associated to a `Site` by creating a `CircuitTermination` that is attached to the `Site`. A `Circuit` by itself does not associate with a `Site`. `Site` can be attached to `Region`. The `Tenant` doesn't come in to play at all in the `Region` relationship. The site `SC5 - Edificio JOP` needs to attached to the `Los Cristianos` region in order for the filter to show the `38100001066107` circuit.
Author
Owner

@jeremystretch commented on GitHub (Dec 19, 2019):

Hopefully @tyler-8's explanation above addresses the confusion. If not, please start a thread on our mailing list. Closing this out as it does not appear to be a bug.

@jeremystretch commented on GitHub (Dec 19, 2019): Hopefully @tyler-8's explanation above addresses the confusion. If not, please start a thread on our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss). Closing this out as it does not appear to be a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3073