Device Components Region Filter bug #3193

Closed
opened 2025-12-29 18:26:31 +01:00 by adam · 6 comments
Owner

Originally created by @darcynz on GitHub (Jan 21, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.7
  • NetBox version: 2.7.1

Steps to Reproduce

  1. Go to the Device components page eg interfaces
    eg. https://netbox/dcim/interfaces/
    Error occurs for all components
  2. Select a region and click search by apply
    Following is an example of the url generated. https://netbox/dcim/interfaces/?q=&region=34&site=

Expected Behavior

Filter appears of the components as per the region selected

Observed Behavior

Netbox crashes with the following error

Request Method: | GET
Request URL: | http://netbox/dcim/interfaces/?q=&region=99&site=
Django Version: | 2.2.9
Exception Type: | TypeError
Exception Value: | 'Region' object is not iterable

Note this issue has been verified by other netbox users.

Originally created by @darcynz on GitHub (Jan 21, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.7 * NetBox version: 2.7.1 ### Steps to Reproduce 1. Go to the Device components page eg interfaces eg. https://netbox/dcim/interfaces/ Error occurs for all components 2. Select a region and click search by apply Following is an example of the url generated. https://netbox/dcim/interfaces/?q=&region=34&site= ### Expected Behavior Filter appears of the components as per the region selected ### Observed Behavior Netbox crashes with the following error Request Method: | GET Request URL: | http://netbox/dcim/interfaces/?q=&region=99&site= Django Version: | 2.2.9 Exception Type: | TypeError Exception Value: | 'Region' object is not iterable Note this issue has been verified by other netbox users.
adam added the type: bugstatus: accepted labels 2025-12-29 18:26:31 +01:00
adam closed this issue 2025-12-29 18:26:31 +01:00
Author
Owner

@kobayashi commented on GitHub (Jan 21, 2020):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Please provide both Expected/Observed behavior.

@kobayashi commented on GitHub (Jan 21, 2020): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/digitalocean/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/digitalocean/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely). Please provide both Expected/Observed behavior.
Author
Owner

@kobayashi commented on GitHub (Jan 21, 2020):

Sorry, I found this was discussed in mailing list.

@kobayashi commented on GitHub (Jan 21, 2020): Sorry, I found this was discussed in mailing list.
Author
Owner

@kobayashi commented on GitHub (Jan 21, 2020):

Region filtering for interface is provided in 2 ways.

  1. regin which requires region slug to filter.
  2. region_id which requires region id.

Could you try region_id=99 if you are filtering by region id? Or region=<your region name> .

@kobayashi commented on GitHub (Jan 21, 2020): Region filtering for interface is provided in 2 ways. 1. `regin` which requires region slug to filter. 2. `region_id` which requires region id. Could you try `region_id=99` if you are filtering by region id? Or `region=<your region name>` .
Author
Owner

@darcynz commented on GitHub (Jan 21, 2020):

Hi there,

Ill try tomorrow, but i was filtering via the gui so i would expect it uses
the correct value.

Regards

On Tue, 21 Jan 2020, 6:57 PM kobayashi, notifications@github.com wrote:

Region filtering for interface is provided in 2 ways.

  1. regin which requires region slug to filter.
  2. region_id which requires region id.

Could you try region_id=99 if you are filtering by region id? Or region= .


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/netbox-community/netbox/issues/3966?email_source=notifications&email_token=AJOZLSTPSMAVKLEYWGYQ6D3Q62FGFA5CNFSM4KJMZZA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJOSP2A#issuecomment-576530408,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOZLSWO7HCROEL4JY5ZHUTQ62FGFANCNFSM4KJMZZAQ
.

@darcynz commented on GitHub (Jan 21, 2020): Hi there, Ill try tomorrow, but i was filtering via the gui so i would expect it uses the correct value. Regards On Tue, 21 Jan 2020, 6:57 PM kobayashi, <notifications@github.com> wrote: > Region filtering for interface is provided in 2 ways. > > 1. regin which requires region slug to filter. > 2. region_id which requires region id. > > Could you try region_id=99 if you are filtering by region id? Or region=<your > region name> . > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/netbox-community/netbox/issues/3966?email_source=notifications&email_token=AJOZLSTPSMAVKLEYWGYQ6D3Q62FGFA5CNFSM4KJMZZA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJOSP2A#issuecomment-576530408>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJOZLSWO7HCROEL4JY5ZHUTQ62FGFANCNFSM4KJMZZAQ> > . >
Author
Owner

@jeremystretch commented on GitHub (Jan 21, 2020):

Closing this as it does not conform to the bug report template. Please modify your issue so provide all of the required information and then request that it be re-opened.

@jeremystretch commented on GitHub (Jan 21, 2020): Closing this as it does not conform to the bug report template. Please modify your issue so provide _all_ of the required information and then request that it be re-opened.
Author
Owner

@darcynz commented on GitHub (Jan 21, 2020):

Bug updated, please reopen and/or let me know if more detail is required.

@darcynz commented on GitHub (Jan 21, 2020): Bug updated, please reopen and/or let me know if more detail is required.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3193