def prepare_migration_vlan(system_service): assert network_utils_v4.set_network_usages_in_cluster( system_service, MIGRATION_NETWORK, CLUSTER_NAME, [NetworkUsage.MIGRATION]) # Set Migration_Network's MTU to match the other VLAN's on the NIC. assert network_utils_v4.set_network_mtu(system_service, MIGRATION_NETWORK, DC_NAME, DEFAULT_MTU)
def prepare_migration_vlan(api): engine = api.system_service() nt.assert_true( network_utils_v4.set_network_usages_in_cluster( engine, MIGRATION_NETWORK, CLUSTER_NAME, [NetworkUsage.MIGRATION])) # Set Migration_Network's MTU to match the other VLAN's on the NIC. nt.assert_true( network_utils_v4.set_network_mtu(engine, MIGRATION_NETWORK, DC_NAME, DEFAULT_MTU))
def prepare_migration_vlan(api): engine = api.system_service() nt.assert_true( network_utils_v4.set_network_usages_in_cluster( engine, MIGRATION_NETWORK, CLUSTER_NAME, [NetworkUsage.MIGRATION]) ) # Set Migration_Network's MTU to match the other VLAN's on the NIC. nt.assert_true( network_utils_v4.set_network_mtu( engine, MIGRATION_NETWORK, DC_NAME, DEFAULT_MTU) )