Skip to content

Assigning assigned_object to None doesn't work unless it's referenced #708

@aj2s

Description

@aj2s

pynetbox version

v7.5.0

NetBox version

v4.3.7

Python version

3.12

Steps to Reproduce

mac_address = nb.dcim.mac_addresses.get(id=30180)
interface = mac_address.assigned_object

# Uncommenting this gets it working as expected
# print(interface.primary_mac_address)

interface.primary_mac_address = None
print(interface.save())

Expected Behavior

I expected the primary mac address to be unset

Observed Behavior

The primary mac address was still set.

Metadata

Metadata

Assignees

Labels

pynetboxseverity: 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

Relationships

None yet

Development

No branches or pull requests

Issue actions