Add vm-ipv6-nat64-ipv4 network name check

This commit is contained in:
modulos 2017-05-22 13:28:14 +02:00
parent 9d5d924c7e
commit ccb583b20d

View file

@ -155,7 +155,7 @@ class VirtualMachineSerializer(serializers.Serializer):
def get_ip(self, obj):
nic = obj.template.nics[0]
if is_in_v4_range(nic.mac):
if 'vm-ipv6-nat64-ipv4' is in nic.network and is_in_v4_range(nic.mac):
return str(v4_from_mac(nic.mac))
else:
return '-'