IP losses interface assignment when edited trough an interface #3004

Closed
opened 2025-12-29 18:24:39 +01:00 by adam · 1 comment
Owner

Originally created by @benjaminwaas on GitHub (Nov 7, 2019).

Environment

  • Python version: python 3.6.7
  • NetBox version: netbox 2.6.7

Hello, The IP will lose its interface assignment when you edit it through a interface of a device.

steps to reproduce the issue:

  • Go to device, e.g. /dcim/devices//
  • Click on the interface name e.g. eth0; this takes you to /dcim/interfaces//
  • On this page is a list of IP addresses. Click one one of them; this takes you to /ipam/ip-addresses//edit/?interface=&return_url=

I have send this question to the mailing list and they told me this could be the fix:

"I think the interface is blank because "interface=" in the query string in the generated link. If I manually change it to "interface=" and refresh then it's fine."

What did you expect to happen?
IP keeps its interface assigment.

What happened instead?
IP loses its interface assignment

Originally created by @benjaminwaas on GitHub (Nov 7, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: python 3.6.7 * NetBox version: netbox 2.6.7 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> Hello, The IP will lose its interface assignment when you edit it through a interface of a device. steps to reproduce the issue: * Go to device, e.g. /dcim/devices/<X>/ * Click on the interface *name* e.g. eth0; this takes you to /dcim/interfaces/<N>/ * On this page is a list of IP addresses. Click one one of them; this takes you to /ipam/ip-addresses/<N>/edit/?interface=&return_url= I have send this question to the mailing list and they told me this could be the fix: "I think the interface is blank because "interface=" in the query string in the generated link. If I manually change it to "interface=<N>" and refresh then it's fine." What did you expect to happen? IP keeps its interface assigment. What happened instead? IP loses its interface assignment
adam added the type: bugstatus: accepted labels 2025-12-29 18:24:39 +01:00
adam closed this issue 2025-12-29 18:24:39 +01:00
Author
Owner

@kobayashi commented on GitHub (Nov 12, 2019):

I can reproduce this issue v2.6.7. The link should be fixed.

@kobayashi commented on GitHub (Nov 12, 2019): I can reproduce this issue v2.6.7. The link should be fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3004