From 3f4d313a5cc04fd6aca90d9c845b1cdc6628734a Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Tue, 13 Feb 2024 17:33:18 +0100 Subject: [PATCH] fix evac tests Signed-off-by: Benjamin Reis --- tests/migration/test_host_evacuate.py | 3 +++ 1 file changed, 3 insertions(+) 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})