Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tyler-8 opened this issue Apr 6, 2021 · 0 comments
Closed
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@tyler-8
Copy link
Contributor

tyler-8 commented Apr 6, 2021

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

<a href="{% url 'virtualization:vminterface_add' %}?virtualmachine={{ object.pk }}&return_url={% url 'virtualization:virtualmachine_interfaces' pk=object.pk %}" class="btn btn-primary btn-xs">

This
%}?virtualmachine={{ object

should be

%}?virtual_machine={{ object

Although, elsewhere in the file:

<button type="submit" name="_edit" formaction="{% url 'virtualization:vminterface_bulk_edit' %}?virtualmachine={{ object.pk }}&return_url={% url 'virtualization:virtualmachine_interfaces' pk=object.pk %}" class="btn btn-warning btn-xs">

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

@tyler-8 tyler-8 added the type: bug A confirmed report of unexpected behavior in the application label Apr 6, 2021
@jeremystretch jeremystretch added beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation labels Apr 7, 2021
@jeremystretch jeremystretch self-assigned this Apr 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants