The vmware_nsx.api_replay.client
Module¶
-
class
vmware_nsx.api_replay.client.
ApiReplayClient
(source_os_username, source_os_user_domain_id, source_os_tenant_name, source_os_tenant_domain_id, source_os_password, source_os_auth_url, dest_os_username, dest_os_user_domain_id, dest_os_tenant_name, dest_os_tenant_domain_id, dest_os_password, dest_os_auth_url, use_old_keystone, logfile)¶ Bases:
object
-
basic_ignore_fields
= [‘updated_at’, ‘created_at’, ‘tags’, ‘revision’, ‘revision_number’]¶
-
connect_to_client
(username, user_domain_id, tenant_name, tenant_domain_id, password, auth_url)¶
-
drop_fields
(item, drop_fields)¶
-
find_subnet_by_id
(subnet_id, subnets)¶
-
fix_description
(body)¶
-
fix_network
(body, dest_default_public_net)¶
-
fix_port
(body)¶
-
get_ports_on_network
(network_id, ports)¶ Returns all the ports on a given network_id.
-
have_id
(id, groups)¶ If the sg_id is in groups return true else false.
-
migrate_floatingips
()¶ Migrates floatingips from source to dest neutron.
-
migrate_networks_subnets_ports
(routers_gw_info)¶ Migrates networks/ports/router-uplinks from src to dest neutron.
-
migrate_qos_policies
()¶ Migrates QoS policies from source to dest neutron.
-
migrate_qos_rule
(dest_policy, source_rule)¶ Add the QoS rule from the source to the QoS policy
If there is already a rule of that type, skip it since the QoS policy can have only one rule of each type
-
migrate_routers
()¶ Migrates routers from source to dest neutron.
Also return a dictionary of the routes that should be added to each router. Static routes must be added later, after the router ports are set. And return a dictionary of external gateway info per router
-
migrate_routers_routes
(routers_routes)¶ Add static routes to the created routers.
-
migrate_security_groups
()¶ Migrates security groups from source to dest neutron.
-
migrate_subnetpools
()¶
-
subnet_drop_ipv6_fields_if_v4
(body)¶ Drops v6 fields on subnets that are v4 as server doesn’t allow them.
-