aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpe_custom_service.py
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-11-13 21:26:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-13 21:26:32 +0000
commitb804a0524a40391584e88cf702a20b590530f343 (patch)
treee9fb0cb679b6c20d26851b362d90f0052595a32e /test/vcpe/vcpe_custom_service.py
parentb10132e33370aabef8cb4d95d37f1dfc8e15fcee (diff)
parent8076a87e542a67f321f84311350d20946bee14a2 (diff)
Merge "fixes from vCPE testing"
Diffstat (limited to 'test/vcpe/vcpe_custom_service.py')
-rwxr-xr-xtest/vcpe/vcpe_custom_service.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/vcpe/vcpe_custom_service.py b/test/vcpe/vcpe_custom_service.py
index ad55ed586..f02802353 100755
--- a/test/vcpe/vcpe_custom_service.py
+++ b/test/vcpe/vcpe_custom_service.py
@@ -68,15 +68,14 @@ class CustomService:
def create_custom_service(self, csar_file, vgw_template_file, vgw_gra_template_file, preload_dict=None):
name_suffix = datetime.now().strftime('%Y%m%d%H%M')
- self.load_object(vgw_vfmod_name_index,vgw_vfmod_name_index_file)
if self.vcpecommon.oom_mode:
brg_mac = str(raw_input("Enter the BRG MAC address: "))
else:
brg_mac = self.vcpecommon.get_brg_mac_from_sdnc()
# get name index
- self.load_object(vgw_vfmod_name_index,vgw_vfmod_name_index_file)
- vgw_vfmod_name_index=vgw_vfmod_name_index+1
- self.save_object(vgw_vfmod_name_index,vgw_vfmod_name_index_file)
+ self.vgw_vfmod_name_index= self.vcpecommon.load_object(self.vcpecommon.vgw_vfmod_name_index_file)
+ self.vgw_vfmod_name_index=self.vgw_vfmod_name_index + 1
+ self.save_object(vgw_vfmod_name_index,self.vcpecommon.vgw_vfmod_name_index_file)
# preload vGW
if preload_dict:
preloader = preload.Preload(self.vcpecommon)