summaryrefslogtreecommitdiffstats
path: root/dovetail/container.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/container.py')
-rw-r--r--dovetail/container.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/dovetail/container.py b/dovetail/container.py
index ff92fa4a..e8840de3 100644
--- a/dovetail/container.py
+++ b/dovetail/container.py
@@ -68,16 +68,20 @@ class Container(object):
# These are all just used by Functest's function push_results_to_db.
# And has nothing to do with DoveTail running test cases.
- ins_type = os.getenv('INSTALLER_TYPE', "unknown")
- scenario = os.getenv('DEPLOY_SCENARIO', "unknown")
+ ins_type = "unknown"
+ scenario = "unknown"
ins_type = ''.join([" -e INSTALLER_TYPE=", ins_type])
scenario = ''.join([" -e DEPLOY_SCENARIO=", scenario])
+ ins_ip = os.getenv('INSTALLER_IP', "192.168.0.0")
+ ins_ip = " -e INSTALLER_IP={}".format(ins_ip)
# vpn testcase only runs when scenario name includes bgpvpn
# functest requirements
if 'sdnvpn' in testcase_name:
- ins_type = "-e INSTALLER_TYPE=netvirt"
- scenario = " -e DEPLOY_SCENARIO=bgpvpn"
- envs = "%s %s" % (ins_type, scenario)
+ ins_type = os.getenv('INSTALLER_TYPE', "netvirt")
+ ins_type = " -e INSTALLER_TYPE={}".format(ins_type)
+ scenario = os.getenv('DEPLOY_SCENARIO', "bgpvpn")
+ scenario = " -e DEPLOY_SCENARIO={}".format(scenario)
+ envs = "%s %s %s" % (ins_type, scenario, ins_ip)
dovetail_config = dt_cfg.dovetail_config
if dovetail_config['report_dest'].startswith("http"):