Virtual machine interface form parent field isn't limited to the current VM #4846

Closed
opened 2025-12-29 19:21:13 +01:00 by adam · 0 comments
Owner

Originally created by @devon-mar on GitHub (Apr 29, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.2

Python version

3.9

Steps to Reproduce

  1. Create 2 VMs with 2 interfaces each
  2. Try to assign a parent interface to one of the 4 interfaces.
  3. All 4 interfaces will be shown in the Parent interface dropdown

Expected Behavior

Only the interfaces for the current VM are able to be selected as a parent interface.

Observed Behavior

The following (incorrect) query is made.

http://localhost:8080/api/virtualization/interfaces/?q=&limit=50&offset=0&brief=true&virtualmachine_id=1

virtualmachine_id should be virtual_machine_id according to the API docs.

I have a patch ready to go if this issue is accepted.

Originally created by @devon-mar on GitHub (Apr 29, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.2 ### Python version 3.9 ### Steps to Reproduce 1. Create 2 VMs with 2 interfaces each 2. Try to assign a parent interface to one of the 4 interfaces. 3. All 4 interfaces will be shown in the `Parent interface` dropdown ### Expected Behavior Only the interfaces for the current VM are able to be selected as a parent interface. ### Observed Behavior The following (incorrect) query is made. ``` http://localhost:8080/api/virtualization/interfaces/?q=&limit=50&offset=0&brief=true&virtualmachine_id=1 ``` `virtualmachine_id` should be `virtual_machine_id` according to the API docs. I have a patch ready to go if this issue is accepted.
adam added the type: bugstatus: accepted labels 2025-12-29 19:21:13 +01:00
adam closed this issue 2025-12-29 19:21:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4846