Skip to content

Cannot move primary IP from device to VM or vice versa #14482

@devon-mar

Description

@devon-mar

Deployment Type

Self-hosted

NetBox Version

v3.6.6

Python Version

3.8

Steps to Reproduce

  1. Add an IP to a device and set it as the device's primary IP address
  2. On a VM interface, assign the IP from step 1 and check "Make this the primary IP for the device/VM"
  3. On save, a ValueError is raised

This bug also works the other way around (VM to Device).

Expected Behavior

The IP address should be assigned to the VM interface.

Observed Behavior

<class 'ValueError'>

'IPAddressForm' has no field named 'assigned_object'.

Python version: 3.8.10
NetBox version: 3.6.6
Plugins: 
  netbox_demo: 0.3.1

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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