def remove_bonding(api):
def _remove_bonding(host):
network_utils_v3.detach_network_from_host(api, host, MIGRATION_NETWORK,
BOND_NAME)
network_utils_v3.set_network_required_in_cluster(api, MIGRATION_NETWORK,
CLUSTER_NAME, False)
utils.invoke_in_parallel(_remove_bonding,
test_utils.hosts_in_cluster_v3(api, CLUSTER_NAME))
for host in test_utils.hosts_in_cluster_v3(api, CLUSTER_NAME):
nt.assert_false(_host_is_attached_to_network(api, host,
MIGRATION_NETWORK))
评论列表
文章目录