From ab4226ed3c39b8d7b759e93e05e27f1247763ec9 Mon Sep 17 00:00:00 2001 From: MatthewLi Date: Fri, 26 May 2017 02:35:03 -0400 Subject: sdnvpn offline support in dovetail JIRA: DOVETAIL-441 Change-Id: I709c62a36c65ef0b4da69c5508f7a8273e68dc2b Signed-off-by: MatthewLi --- dovetail/container.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dovetail/container.py') 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 -- cgit 1.2.3-korg