aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpe.py
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2019-04-29 00:20:52 -0400
committerYang Xu <yang.xu3@huawei.com>2019-04-29 00:34:42 -0400
commitc52ed6e001b09f6e21f0e76cf173eda03fbf1f0e (patch)
tree3ac0714050c84986f5b4f7696ef7885d1059af6e /test/vcpe/vcpe.py
parent42dcb266339a26803074f3190d1d9576e9dd05b7 (diff)
Download vCPE service csar from SDC
Clean up import Change-Id: I1a1be9b0528858fc30106978153e0af132675f93 Issue-ID: INT-847 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
Diffstat (limited to 'test/vcpe/vcpe.py')
-rwxr-xr-xtest/vcpe/vcpe.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/vcpe/vcpe.py b/test/vcpe/vcpe.py
index 8f888c6d5..f9c1778da 100755
--- a/test/vcpe/vcpe.py
+++ b/test/vcpe/vcpe.py
@@ -2,6 +2,7 @@
import sys
import logging
from vcpecommon import *
+import sdcutils
import soutils
from datetime import datetime
import preload
@@ -182,6 +183,10 @@ def init_so_sdnc():
vgw_vfmod_name_index= 0
vcpecommon.save_object(vgw_vfmod_name_index, vcpecommon.vgw_vfmod_name_index_file)
+def download_vcpe_service_templates():
+ vcpecommon = VcpeCommon()
+ sdc = sdcutils.SdcUtils(vcpecommon)
+ sdc.get_service_list()
def tmp_sniro():
logger = logging.getLogger(__name__)
@@ -217,6 +222,7 @@ if __name__ == '__main__':
elif sys.argv[1] == 'init':
if 'y' == raw_input('Ready to add customer service data to SDNC and SO DBs? This is needed only once.'
'y/n: ').lower():
+ download_vcpe_service_templates()
init_so_sdnc()
elif sys.argv[1] == 'infra':
if 'y' == raw_input('Ready to deploy infrastructure? y/n: ').lower():