Interface does not appear under interfaces' site filter #11869

Closed
opened 2025-12-29 21:51:01 +01:00 by adam · 7 comments
Owner

Originally created by @FabryUr on GitHub (Nov 25, 2025).

Originally assigned to: @arthanson on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.5

Python Version

3.10

Steps to Reproduce

Load the interfaces with a site id filter. (URL//dcim/interfaces/?site_id=2)
Insert a module to the device which is allocated to the site. (The module has to have interface template)
Load the interfaces with a site id filter. (URL//dcim/interfaces/?site_id=2) again.

Expected Behavior

With module creation the interface should be able to be filtered with site.

Observed Behavior

The interfaces are created, but cannot filter them by site. If I edit (with nothing) and save the interface on page the edited interface appears.

created interfaces:

Image

found interfaces with site id:

Image

found interfaces with device ids:

Image

After editing the first interface:

Image
Originally created by @FabryUr on GitHub (Nov 25, 2025). Originally assigned to: @arthanson on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.5 ### Python Version 3.10 ### Steps to Reproduce Load the interfaces with a site id filter. (URL//dcim/interfaces/?site_id=2) Insert a module to the device which is allocated to the site. (The module has to have interface template) Load the interfaces with a site id filter. (URL//dcim/interfaces/?site_id=2) again. ### Expected Behavior With module creation the interface should be able to be filtered with site. ### Observed Behavior The interfaces are created, but cannot filter them by site. If I edit (with nothing) and save the interface on page the edited interface appears. created interfaces: <img width="640" height="370" alt="Image" src="https://github.com/user-attachments/assets/da1de2c9-91a2-4f1c-b0cb-2acbd46d3b61" /> found interfaces with site id: <img width="285" height="197" alt="Image" src="https://github.com/user-attachments/assets/33a5b578-1f53-4d82-b00f-ff801a358199" /> found interfaces with device ids: <img width="558" height="319" alt="Image" src="https://github.com/user-attachments/assets/98a8bbd6-2d90-4118-a37d-72152c33ddc3" /> After editing the first interface: <img width="583" height="325" alt="Image" src="https://github.com/user-attachments/assets/65b1ac32-d3e6-43f5-a1b0-afb3f34614c8" />
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:51:01 +01:00
adam closed this issue 2025-12-29 21:51:01 +01:00
Author
Owner

@Zombie-Toad commented on GitHub (Nov 25, 2025):

It sounds like this is related to my discussion post a few weeks ago. I leave this here for additional information.
https://github.com/netbox-community/netbox/discussions/20757
If not, feel free to remove the post.

@Zombie-Toad commented on GitHub (Nov 25, 2025): It sounds like this is related to my discussion post a few weeks ago. I leave this here for additional information. https://github.com/netbox-community/netbox/discussions/20757 If not, feel free to remove the post.
Author
Owner

@FabryUr commented on GitHub (Nov 25, 2025):

It sounds like this is related to my discussion post a few weeks ago. I leave this here for additional information. #20757 If not, feel free to remove the post.

You are absolutely right!
I tried with device save too later and forgot to mention. Upvoting your post, and hoping the issue will be solved soon.
Thank you!

@FabryUr commented on GitHub (Nov 25, 2025): > It sounds like this is related to my discussion post a few weeks ago. I leave this here for additional information. [#20757](https://github.com/netbox-community/netbox/discussions/20757) If not, feel free to remove the post. You are absolutely right! I tried with device save too later and forgot to mention. Upvoting your post, and hoping the issue will be solved soon. Thank you!
Author
Owner

@jeremystretch commented on GitHub (Nov 25, 2025):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Nov 25, 2025): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@sleepinggenius2 commented on GitHub (Nov 25, 2025):

When #19977 was implemented for v4.3.6, the PR specifically notes "Manually populate these fields where necessary when bulk_create() is employed", but I don't see in the changes where that's actually occurring. That would explain why you are only seeing this issue when a device is first created. Editing the interface would trigger its save() function and correctly set the values. Editing the device should likewise set all of the components' values in its post_save handler.

@sleepinggenius2 commented on GitHub (Nov 25, 2025): When #19977 was implemented for v4.3.6, the PR specifically notes "Manually populate these fields where necessary when `bulk_create()` is employed", but I don't see in the changes where that's actually occurring. That would explain why you are only seeing this issue when a device is first created. Editing the interface would trigger its `save()` function and correctly set the values. Editing the device should likewise set all of the components' values in its `post_save` handler.
Author
Owner

@Zombie-Toad commented on GitHub (Dec 1, 2025):

A short description of how to reproduce it in my case, as I assume that it is the same problem.
For any form you can just fill out the required fields. Doesn't matter what value.

  1. Create a site (just the minimum information is fine).
  2. Create a manufacturer and device type of any kind
  3. Create a network interface for that device type
  4. Create a new device, based on that device type and assign it to the site
  5. Switch to the /dcim/interfaces and filter for the site

The interface you just created with that device is not visible.

  1. Go back to the device and edit the interface
  2. Without changing anything, just hit save
  3. Back to /dcim/interfaces and filter for the site

You can now see the interface.

Same goes for changing the device itself (not the interface). Edit the device and save it without changing, now all assigned interfaces are visible with a site filter.

I hope this is kind of understandable.

EDIT:
I just tested this in the 4.4.7 demo and the problem still exists.

@Zombie-Toad commented on GitHub (Dec 1, 2025): A short description of how to reproduce it in my case, as I assume that it is the same problem. For any form you can just fill out the required fields. Doesn't matter what value. 1. Create a site (just the minimum information is fine). 2. Create a manufacturer and device type of any kind 3. Create a network interface for that device type 4. Create a new device, based on that device type and assign it to the site 5. Switch to the /dcim/interfaces and filter for the site The interface you just created with that device is not visible. 1. Go back to the device and edit the interface 2. Without changing anything, just hit save 3. Back to /dcim/interfaces and filter for the site You can now see the interface. Same goes for changing the device itself (not the interface). Edit the device and save it without changing, now all assigned interfaces are visible with a site filter. I hope this is kind of understandable. EDIT: I just tested this in the 4.4.7 demo and the problem still exists.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 9, 2025):

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

@github-actions[bot] commented on GitHub (Dec 9, 2025): This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.
Author
Owner

@FabryUr commented on GitHub (Dec 9, 2025):

As Zombie-Toad wrote you can reproduce the bug, sorry for not providing info properly

@FabryUr commented on GitHub (Dec 9, 2025): As Zombie-Toad wrote you can reproduce the bug, sorry for not providing info properly
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11869