Commit 5975bb90 authored by chapeau's avatar chapeau Committed by root

Add ip_type in dhcp api serializer

parent 706b309a
Pipeline #2373 passed with stage
in 3 minutes and 19 seconds
......@@ -1168,11 +1168,12 @@ class HostMacIpSerializer(serializers.ModelSerializer):
hostname = serializers.CharField(source="domain.name", read_only=True)
extension = serializers.CharField(source="domain.extension.name", read_only=True)
mac_address = serializers.CharField(read_only=True)
ip_type = serializers.CharField(source="machine_type.ip_type", read_only=True)
ipv4 = serializers.CharField(source="ipv4.ipv4", read_only=True)
class Meta:
model = machines.Interface
fields = ("hostname", "extension", "mac_address", "ipv4")
fields = ("hostname", "extension", "mac_address", "ipv4", "ip_type")
# DNS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment