Open Kilda Java Documentation
switch_replace_master Namespace Reference

Classes

class  KildaDBActions
 

Functions

def start_migration (old_switch_id, new_switch_id, db_connection_config, replug_port_map=None)
 
def do_test ()
 

Variables

 parser = argparse.ArgumentParser(description='Switch Migration tool')
 
 type
 
 help
 
 default
 
 args = parser.parse_args()
 
 old_switch_id = args.old_switch_id
 
 new_switch_id = args.new_switch_id
 
dictionary db_connection_config
 

Function Documentation

◆ do_test()

def switch_replace_master.do_test ( )
Simple test with semi random data

Definition at line 228 of file switch_replace_master.py.

◆ start_migration()

def switch_replace_master.start_migration (   old_switch_id,
  new_switch_id,
  db_connection_config,
  replug_port_map = None 
)

Definition at line 195 of file switch_replace_master.py.

Variable Documentation

◆ args

switch_replace_master.args = parser.parse_args()

Definition at line 275 of file switch_replace_master.py.

◆ db_connection_config

switch_replace_master.db_connection_config
Initial value:
1 = {
2  "db_addr": args.neo_host,
3  "user": args.neo_user,
4  "passwd": args.neo_passwd,
5  "port": args.neo_port,
6  "secure": args.neo_secure,
7  "scheme": args.neo_scheme
8  }

Definition at line 283 of file switch_replace_master.py.

◆ default

switch_replace_master.default

Definition at line 259 of file switch_replace_master.py.

◆ help

switch_replace_master.help

Definition at line 254 of file switch_replace_master.py.

◆ new_switch_id

switch_replace_master.new_switch_id = args.new_switch_id

Definition at line 281 of file switch_replace_master.py.

◆ old_switch_id

switch_replace_master.old_switch_id = args.old_switch_id

Definition at line 280 of file switch_replace_master.py.

◆ parser

switch_replace_master.parser = argparse.ArgumentParser(description='Switch Migration tool')

Definition at line 251 of file switch_replace_master.py.

◆ type

switch_replace_master.type

Definition at line 253 of file switch_replace_master.py.