Add vm-ipv6-nat64-ipv4 network name check
This commit is contained in:
parent
9d5d924c7e
commit
ccb583b20d
1 changed files with 1 additions and 1 deletions
|
@ -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 '-'
|
||||
|
|
Loading…
Reference in a new issue