def prepare_migration_attachments_ipv4(api):
for index, host in enumerate(
test_utils.hosts_in_cluster_v3(api, CLUSTER_NAME),
start=1):
ip_address = MIGRATION_NETWORK_IPv4_ADDR.format(index)
ip_configuration = network_utils_v3.create_static_ip_configuration(
ipv4_addr=ip_address,
ipv4_mask=MIGRATION_NETWORK_IPv4_MASK)
network_utils_v3.attach_network_to_host(
api, host, NIC_NAME, MIGRATION_NETWORK, ip_configuration)
nt.assert_equals(
host.nics.list(name=VLAN200_IF_NAME)[0].ip.address,
ip_address)
评论列表
文章目录