mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Added mac_address to IPAddressInterfaceSerializer
We use Netbox to fill our dhcp server. With the mac_address in the IPAddressSerializer we only have to do one call to get all the information.
This commit is contained in:
parent
786f389be8
commit
8aa5f28bc3
@ -275,7 +275,7 @@ class IPAddressInterfaceSerializer(serializers.ModelSerializer):
|
||||
class Meta(InterfaceSerializer.Meta):
|
||||
model = Interface
|
||||
fields = [
|
||||
'id', 'url', 'device', 'virtual_machine', 'name',
|
||||
'id', 'url', 'device', 'virtual_machine', 'name', 'mac_address',
|
||||
]
|
||||
|
||||
def get_url(self, obj):
|
||||
|
Loading…
Reference in New Issue
Block a user