Skip to content

Unable to remove a secondary MAC address from an interface #18768

@Monsteras1999

Description

@Monsteras1999

Deployment Type

Self-hosted

NetBox Version

v4.2.4

Python Version

3.11

Steps to Reproduce

All operations were done in the WebUI.

  1. Create a virtual interface X and assign it to a virtual machine (virtualization/interfaces).
  2. Create two MAC addresses A and B (dcim/mac-addresses).
  3. Edit MAC address A and assign it to X.
  4. Edit MAC address B and also assign it to X.
  5. Edit virtual interface X and set A as primary MAC address.
  6. Edit MAC address B and remove the assignment to X.

Expected Behavior

I expected on step 6 that the MAC address object gets unassigned from the interface so it can be assigned to another interface.

Observed Behavior

An Error was shown with the message "Cannot unassign MAC Address while it is designated as the primary MAC for an object".

The MAC address to be unassigned was NOT the primary MAC address.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions