Add Interfaces button on VM Interfaces tab uses incorrect query parameter #4726

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

Originally created by @tyler-8 on GitHub (Apr 6, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11-beta1

Python version

3.8

Steps to Reproduce

  1. Create a VirtualMachine
  2. From the VM Detail page click the "Interfaces" tab.
  3. At the bottom of the Interfaces table, click the "Add Interfaces" button.

Expected Behavior

The Virtual Machine field would be pre-populated with the targeted VM.

Observed Behavior

Observe the "Virtual Machine" dropdown is empty

In this template f1e2b99456/netbox/templates/virtualization/virtualmachine/interfaces.html (L38)

This
%}?virtualmachine={{ object

should be

%}?virtual_machine={{ object

Although, elsewhere in the file:
f1e2b99456/netbox/templates/virtualization/virtualmachine/interfaces.html (L27)

there is no space in between virtual and machine and the link works.

Originally created by @tyler-8 on GitHub (Apr 6, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Create a VirtualMachine 2. From the VM Detail page click the "Interfaces" tab. 3. At the bottom of the Interfaces table, click the "Add Interfaces" button. ### Expected Behavior The Virtual Machine field would be pre-populated with the targeted VM. ### Observed Behavior Observe the "Virtual Machine" dropdown is empty In this template https://github.com/netbox-community/netbox/blob/f1e2b994569062b054d27232a1a2a6a7199e75e1/netbox/templates/virtualization/virtualmachine/interfaces.html#L38 This `%}?virtualmachine={{ object` should be `%}?virtual_machine={{ object` Although, elsewhere in the file: https://github.com/netbox-community/netbox/blob/f1e2b994569062b054d27232a1a2a6a7199e75e1/netbox/templates/virtualization/virtualmachine/interfaces.html#L27 there is no space in between `virtual` and `machine` and the link works.
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:19:55 +01:00
adam closed this issue 2025-12-29 19:19:55 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4726