Skip to content

Removing a primary IP not possible from the IP-edit form #10936

@PieterL75

Description

@PieterL75

NetBox version

v3.3.7

Python version

3.9

Steps to Reproduce

  1. Create a device
  2. create an IP and assign it to the device as primary IP
  3. edit the IP address,
  4. uncheck the "Make this the primary IP for the device/VM" box
  5. clear the interface and device dropdown
  6. save the IP

Expected Behavior

The IP is removed from the devices as primary IP and removed from the interface.

Observed Behavior

An error is shown
`IP address is primary for virtualmachine/device somedevice but not assigned to it!'

Unchecking the "Make this the primary IP for the device/VM" should automatically remove the IP as primary from the device.
Otherwise, this takes a lot of more steps (get back to the device, edit the device, remove the primary ip assignment, save the device, edit the ip, remove the interface/device, save the ip)

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