diff --git a/tests/migration/test_host_evacuate.py b/tests/migration/test_host_evacuate.py index 48c67210d..565da5768 100644 --- a/tests/migration/test_host_evacuate.py +++ b/tests/migration/test_host_evacuate.py @@ -111,5 +111,8 @@ def test_host_evacuate_with_network_not_present(self, host, hostA2, second_netwo pif_uuid = host.xe('pif-list', {'host-uuid': hostA2.uuid, 'network-uuid': second_network}, minimal=True) args['uuid'] = pif_uuid logging.info(f"Re-add and plug PIF {pif_uuid}") + if ipv6: + # IPv4 by default + host.xe('set-primary-address-type', {'uuid': pif_uuid, 'primary_address_type': 'ipv6'}) host.xe(reconfigure_method, args) host.xe('pif-plug', {'uuid': pif_uuid})