def migrate(dry_run=False): LOG.info('Running migration process') obj_map = _create_obj_map() tasks = _create_task_list(obj_map) for t in tasks: if dry_run: print(_dry_run_output(t)) else: task.create_task(migration_context.ctx, **t)
def delete_vip(self, context, vip_id): task.create_task(context, task.DELETE, data_type=task.VIP, resource_id=vip_id)
def create_floatingip_precommit(self, context, floatingip): task.create_task(context, task.CREATE, data_type=task.FLOATING_IP, resource_id=floatingip['id'], data=floatingip)
def create_security_group_rule_precommit(self, context, security_group_rule): task.create_task(context, task.CREATE, data_type=task.SECURITY_GROUP_RULE, resource_id=security_group_rule['id'], data=security_group_rule)
def update_subnet_precommit(self, context, subnet_id, subnet): task.create_task(context, task.UPDATE, data_type=task.SUBNET, resource_id=subnet_id, data=subnet)
def delete_port_precommit(self, context, port_id): task.create_task(context, task.DELETE, data_type=task.PORT, resource_id=port_id)
def delete_member(self, context, member_id): task.create_task(context, task.DELETE, data_type=task.MEMBER, resource_id=member_id)
def create_network_precommit(self, context, network): task.create_task(context, task.CREATE, data_type=task.NETWORK, resource_id=network['id'], data=network)
def create_health_monitor(self, context, health_monitor): task.create_task(context, task.CREATE, data_type=task.HEALTH_MONITOR, resource_id=health_monitor['id'], data=health_monitor)
def create_member(self, context, member): task.create_task(context, task.CREATE, data_type=task.MEMBER, resource_id=member['id'], data=member)
def update_member(self, context, member_id, member): task.create_task(context, task.UPDATE, data_type=task.MEMBER, resource_id=member_id, data=member)
def delete_pool(self, context, pool_id): task.create_task(context, task.DELETE, data_type=task.POOL, resource_id=pool_id)
def update_pool(self, context, pool_id, pool): task.create_task(context, task.UPDATE, data_type=task.POOL, resource_id=pool_id, data=pool)
def create_pool(self, context, pool): task.create_task(context, task.CREATE, data_type=task.POOL, resource_id=pool['id'], data=pool)
def update_health_monitor(self, context, health_monitor_id, health_monitor): task.create_task(context, task.UPDATE, data_type=task.HEALTH_MONITOR, resource_id=health_monitor_id, data=health_monitor)
def delete_health_monitor(self, context, health_monitor_id): task.create_task(context, task.DELETE, data_type=task.HEALTH_MONITOR, resource_id=health_monitor_id)
def delete_network_precommit(self, context, network_id): task.create_task(context, task.DELETE, data_type=task.NETWORK, resource_id=network_id)
def update_network_precommit(self, context, network_id, network): task.create_task(context, task.UPDATE, data_type=task.NETWORK, resource_id=network_id, data=network)
def create_port_precommit(self, context, port): task.create_task(context, task.CREATE, data_type=task.PORT, resource_id=port['id'], data=port)
def update_router_precommit(self, context, router_id, router): task.create_task(context, task.UPDATE, data_type=task.ROUTER, resource_id=router_id, data=router)
def create_subnet_precommit(self, context, subnet): task.create_task(context, task.CREATE, data_type=task.SUBNET, resource_id=subnet['id'], data=subnet)
def delete_floatingip_precommit(self, context, floatingip_id): task.create_task(context, task.DELETE, data_type=task.FLOATING_IP, resource_id=floatingip_id)
def delete_subnet_precommit(self, context, subnet_id): task.create_task(context, task.DELETE, data_type=task.SUBNET, resource_id=subnet_id)
def update_port_precommit(self, context, port_id, port): task.create_task(context, task.UPDATE, data_type=task.PORT, resource_id=port_id, data=port)
def create_router_precommit(self, context, router): task.create_task(context, task.CREATE, data_type=task.ROUTER, resource_id=router['id'], data=router)
def delete_router_precommit(self, context, router_id): task.create_task(context, task.DELETE, data_type=task.ROUTER, resource_id=router_id)
def update_floatingip_precommit(self, context, floatingip_id, floatingip): task.create_task(context, task.UPDATE, data_type=task.FLOATING_IP, resource_id=floatingip_id, data=floatingip)
def delete_security_group_precommit(self, context, security_group_id): task.create_task(context, task.DELETE, data_type=task.SECURITY_GROUP, resource_id=security_group_id)
def create_vip(self, context, vip): task.create_task(context, task.CREATE, data_type=task.VIP, resource_id=vip['id'], data=vip)
def update_vip(self, context, vip_id, vip): task.create_task(context, task.UPDATE, data_type=task.VIP, resource_id=vip_id, data=vip)