/ip-addresses/add/ form device filtering not listing devices in rack #913

Closed
opened 2025-12-29 16:26:56 +01:00 by adam · 1 comment
Owner

Originally created by @100Base-TX on GitHub (May 4, 2017).

Hi,

I've just updated Netbox to 1.9.6. I cannot get the "Interface Assignment" part of the "Add a new IP address" (/ipam/ip-addresses/add/?address=x.x.x.x/xx) form to work as expected.

When i select a site, I can see that forms.js does a call to the API like "interface_rack: Fetching /api/dcim/racks/?site_id=1" (chrome console). This then populates the "Rack" drop down box with all the racks for that device.

When i then select a rack, i see no API call to retrieve the device list. The Device drop down list remains empty ("-------" being the only option). There are no messages/errors in the console.

I've confirmed that there are multiple results returned when i manually call the API with the query /api/dcim/devices/?site_id=1&rack_id=6, which corresponds to the "value" fields for the selected options for site/rack. It just seems that whatever javascript is supposed to trigger to populate the "Device" field isn't occuring.

Originally created by @100Base-TX on GitHub (May 4, 2017). Hi, I've just updated Netbox to 1.9.6. I cannot get the "Interface Assignment" part of the "Add a new IP address" (/ipam/ip-addresses/add/?address=x.x.x.x/xx) form to work as expected. When i select a site, I can see that forms.js does a call to the API like "interface_rack: Fetching /api/dcim/racks/?site_id=1" (chrome console). This then populates the "Rack" drop down box with all the racks for that device. When i then select a rack, i see no API call to retrieve the device list. The Device drop down list remains empty ("-------" being the only option). There are no messages/errors in the console. I've confirmed that there are multiple results returned when i manually call the API with the query /api/dcim/devices/?site_id=1&rack_id=6, which corresponds to the "value" fields for the selected options for site/rack. It just seems that whatever javascript is supposed to trigger to populate the "Device" field isn't occuring.
adam closed this issue 2025-12-29 16:26:56 +01:00
Author
Owner

@100Base-TX commented on GitHub (May 4, 2017):

My bad, this seems to be a duplicate of https://github.com/digitalocean/netbox/issues/1123

@100Base-TX commented on GitHub (May 4, 2017): My bad, this seems to be a duplicate of https://github.com/digitalocean/netbox/issues/1123
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#913