Skip to content

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

@devon-mar

Description

@devon-mar

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions