Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API (#18367)

* Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API

* Add missing API & view tests
This commit is contained in:
Jeremy Stretch
2025-01-09 13:55:19 -05:00
committed by GitHub
parent b11f179527
commit b12c8c880f
3 changed files with 96 additions and 2 deletions

View File

@@ -170,8 +170,8 @@ class MACAddressSerializer(NetBoxModelSerializer):
class Meta:
model = MACAddress
fields = [
'id', 'url', 'display_url', 'display', 'mac_address', 'assigned_object_type', 'assigned_object',
'description', 'comments',
'id', 'url', 'display_url', 'display', 'mac_address', 'assigned_object_type', 'assigned_object_id',
'assigned_object', 'description', 'comments',
]
brief_fields = ('id', 'url', 'display', 'mac_address', 'description')