Example #1
0
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)
Example #2
0
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)
Example #3
0
 def delete_vip(self, context, vip_id):
     task.create_task(context, task.DELETE, data_type=task.VIP,
                      resource_id=vip_id)
Example #4
0
 def create_floatingip_precommit(self, context, floatingip):
     task.create_task(context, task.CREATE, data_type=task.FLOATING_IP,
                      resource_id=floatingip['id'], data=floatingip)
Example #5
0
 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)
Example #6
0
 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)
Example #7
0
 def delete_port_precommit(self, context, port_id):
     task.create_task(context, task.DELETE, data_type=task.PORT,
                      resource_id=port_id)
Example #8
0
 def delete_member(self, context, member_id):
     task.create_task(context, task.DELETE, data_type=task.MEMBER,
                      resource_id=member_id)
Example #9
0
 def create_network_precommit(self, context, network):
     task.create_task(context, task.CREATE, data_type=task.NETWORK,
                      resource_id=network['id'], data=network)
Example #10
0
 def delete_member(self, context, member_id):
     task.create_task(context, task.DELETE, data_type=task.MEMBER,
                      resource_id=member_id)
Example #11
0
 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)
Example #12
0
 def create_member(self, context, member):
     task.create_task(context, task.CREATE, data_type=task.MEMBER,
                      resource_id=member['id'], data=member)
Example #13
0
 def update_member(self, context, member_id, member):
     task.create_task(context, task.UPDATE, data_type=task.MEMBER,
                      resource_id=member_id, data=member)
Example #14
0
 def delete_pool(self, context, pool_id):
     task.create_task(context, task.DELETE, data_type=task.POOL,
                      resource_id=pool_id)
Example #15
0
 def update_pool(self, context, pool_id, pool):
     task.create_task(context, task.UPDATE, data_type=task.POOL,
                      resource_id=pool_id, data=pool)
Example #16
0
 def create_pool(self, context, pool):
     task.create_task(context, task.CREATE, data_type=task.POOL,
                      resource_id=pool['id'], data=pool)
Example #17
0
 def update_pool(self, context, pool_id, pool):
     task.create_task(context, task.UPDATE, data_type=task.POOL,
                      resource_id=pool_id, data=pool)
Example #18
0
 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)
Example #19
0
 def create_member(self, context, member):
     task.create_task(context, task.CREATE, data_type=task.MEMBER,
                      resource_id=member['id'], data=member)
Example #20
0
 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)
Example #21
0
 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)
Example #22
0
 def create_network_precommit(self, context, network):
     task.create_task(context, task.CREATE, data_type=task.NETWORK,
                      resource_id=network['id'], data=network)
Example #23
0
 def delete_network_precommit(self, context, network_id):
     task.create_task(context, task.DELETE, data_type=task.NETWORK,
                      resource_id=network_id)
Example #24
0
 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)
Example #25
0
 def create_port_precommit(self, context, port):
     task.create_task(context, task.CREATE, data_type=task.PORT,
                      resource_id=port['id'], data=port)
Example #26
0
 def delete_network_precommit(self, context, network_id):
     task.create_task(context, task.DELETE, data_type=task.NETWORK,
                      resource_id=network_id)
Example #27
0
 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)
Example #28
0
 def create_subnet_precommit(self, context, subnet):
     task.create_task(context, task.CREATE, data_type=task.SUBNET,
                      resource_id=subnet['id'], data=subnet)
Example #29
0
 def delete_floatingip_precommit(self, context, floatingip_id):
     task.create_task(context, task.DELETE, data_type=task.FLOATING_IP,
                      resource_id=floatingip_id)
Example #30
0
 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)
Example #31
0
 def delete_vip(self, context, vip_id):
     task.create_task(context, task.DELETE, data_type=task.VIP,
                      resource_id=vip_id)
Example #32
0
 def delete_subnet_precommit(self, context, subnet_id):
     task.create_task(context, task.DELETE, data_type=task.SUBNET,
                      resource_id=subnet_id)
Example #33
0
 def create_pool(self, context, pool):
     task.create_task(context, task.CREATE, data_type=task.POOL,
                      resource_id=pool['id'], data=pool)
Example #34
0
 def create_port_precommit(self, context, port):
     task.create_task(context, task.CREATE, data_type=task.PORT,
                      resource_id=port['id'], data=port)
Example #35
0
 def delete_pool(self, context, pool_id):
     task.create_task(context, task.DELETE, data_type=task.POOL,
                      resource_id=pool_id)
Example #36
0
 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)
Example #37
0
 def update_member(self, context, member_id, member):
     task.create_task(context, task.UPDATE, data_type=task.MEMBER,
                      resource_id=member_id, data=member)
Example #38
0
 def delete_port_precommit(self, context, port_id):
     task.create_task(context, task.DELETE, data_type=task.PORT,
                      resource_id=port_id)
Example #39
0
 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)
Example #40
0
 def create_router_precommit(self, context, router):
     task.create_task(context, task.CREATE, data_type=task.ROUTER,
                      resource_id=router['id'], data=router)
Example #41
0
 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)
Example #42
0
 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)
Example #43
0
 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)
Example #44
0
 def delete_router_precommit(self, context, router_id):
     task.create_task(context, task.DELETE, data_type=task.ROUTER,
                      resource_id=router_id)
Example #45
0
 def create_subnet_precommit(self, context, subnet):
     task.create_task(context, task.CREATE, data_type=task.SUBNET,
                      resource_id=subnet['id'], data=subnet)
Example #46
0
 def create_floatingip_precommit(self, context, floatingip):
     task.create_task(context, task.CREATE, data_type=task.FLOATING_IP,
                      resource_id=floatingip['id'], data=floatingip)
Example #47
0
 def delete_subnet_precommit(self, context, subnet_id):
     task.create_task(context, task.DELETE, data_type=task.SUBNET,
                      resource_id=subnet_id)
Example #48
0
 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)
Example #49
0
 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)
Example #50
0
 def delete_floatingip_precommit(self, context, floatingip_id):
     task.create_task(context, task.DELETE, data_type=task.FLOATING_IP,
                      resource_id=floatingip_id)
Example #51
0
 def create_router_precommit(self, context, router):
     task.create_task(context, task.CREATE, data_type=task.ROUTER,
                      resource_id=router['id'], data=router)
Example #52
0
 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)
Example #53
0
 def delete_router_precommit(self, context, router_id):
     task.create_task(context, task.DELETE, data_type=task.ROUTER,
                      resource_id=router_id)
Example #54
0
 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)
Example #55
0
 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)
Example #56
0
 def create_vip(self, context, vip):
     task.create_task(context, task.CREATE, data_type=task.VIP,
                      resource_id=vip['id'], data=vip)
Example #57
0
 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)
Example #58
0
 def update_vip(self, context, vip_id, vip):
     task.create_task(context, task.UPDATE, data_type=task.VIP,
                      resource_id=vip_id, data=vip)
Example #59
0
 def create_vip(self, context, vip):
     task.create_task(context, task.CREATE, data_type=task.VIP,
                      resource_id=vip['id'], data=vip)
Example #60
0
 def update_vip(self, context, vip_id, vip):
     task.create_task(context, task.UPDATE, data_type=task.VIP,
                      resource_id=vip_id, data=vip)