summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/docker_control.py
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-27 16:55:12 +0000
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-03-29 14:24:54 +0000
commite0ae574838a9af9e440e2df1f36b8944566d38c1 (patch)
treeb48e47941003375fd3170f9d900dfa382c5784b5 /test/scenario_test/docker_control.py
parentbb84cdcfd5c5d4761778518a8e9d3c0ec7e7e949 (diff)
scenario_test: add route server flag
this is a preparation for normal BGP scenario test Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/docker_control.py')
-rw-r--r--test/scenario_test/docker_control.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/scenario_test/docker_control.py b/test/scenario_test/docker_control.py
index 91172040..b7ad0ef0 100644
--- a/test/scenario_test/docker_control.py
+++ b/test/scenario_test/docker_control.py
@@ -349,7 +349,7 @@ def reload_config():
print "complete append docker container."
-def init_test_env_executor(quagga_num, use_local, go_path, log_debug=False):
+def init_test_env_executor(quagga_num, use_local, go_path, log_debug=False, is_route_server=True):
print "start initialization of test environment."
if docker_container_check() or bridge_setting_check():
@@ -360,7 +360,7 @@ def init_test_env_executor(quagga_num, use_local, go_path, log_debug=False):
print "make gobgp test environment."
create_config_dir()
bridge_setting_for_docker_connection(BRIDGES)
- make_config(quagga_num, go_path, BRIDGE_0)
+ make_config(quagga_num, go_path, BRIDGE_0, ("" if is_route_server else "--normal-bgp"))
# run gobgp docker container
docker_container_run_gobgp(BRIDGE_0)
@@ -498,8 +498,8 @@ def init_malformed_test_env_executor(conf_file, use_local, go_path, exabgp_path
start_exabgp(conf_file)
-def docker_container_quagga_append_executor(quagga_num, go_path):
- make_config_append(quagga_num, go_path, BRIDGE_0)
+def docker_container_quagga_append_executor(quagga_num, go_path, is_route_server=True):
+ make_config_append(quagga_num, go_path, BRIDGE_0, ("" if is_route_server else "--normal-bgp"))
docker_container_quagga_append(quagga_num, BRIDGE_0)
reload_config()
@@ -520,9 +520,9 @@ def docker_container_quagga_removed_executor(quagga_num):
docker_container_quagga_removed(quagga_num)
-def docker_container_make_bestpath_env_executor(append_quagga_num, go_path):
+def docker_container_make_bestpath_env_executor(append_quagga_num, go_path, is_route_server=True):
print "start make bestpath environment"
- make_config_append(append_quagga_num, go_path, BRIDGE_1)
+ make_config_append(append_quagga_num, go_path, BRIDGE_1, ("" if is_route_server else "--normal-bgp"))
append_quagga_name = "q" + str(append_quagga_num)
docker_container_quagga_append(append_quagga_num, BRIDGE_1)
reload_config()