diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-05-26 02:35:03 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-05-30 23:02:30 -0400 |
commit | ab4226ed3c39b8d7b759e93e05e27f1247763ec9 (patch) | |
tree | 91702ad2575f582a8fcaaa1143748c19cbd64308 /dovetail/container.py | |
parent | ed7f8ee3697be3751dc6cfb243cc55092ddd1dd5 (diff) |
sdnvpn offline support in dovetail
JIRA: DOVETAIL-441
Change-Id: I709c62a36c65ef0b4da69c5508f7a8273e68dc2b
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dovetail/container.py b/dovetail/container.py index c0a925e9..2d8a9e20 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -181,6 +181,13 @@ class Container(object): dt_utils.exec_cmd("sudo docker ps | grep " + docker_image + " | awk '{print $1}' | head -1", cls.logger) cls.container_list[type] = container_id + + if 'sdnvpn' in str(testcase_name): + prefix_path = dt_cfg.dovetail_config[type]['config']['dir'] + file_name = dt_cfg.dovetail_config['sdnvpn_image'] + src_path = os.path.join(prefix_path, 'pre_config', file_name) + dest_path = '/home/opnfv/functest/images' + Container.pre_copy(container_id, src_path, dest_path) return container_id @classmethod |