aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpe_custom_service.py
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2018-11-22 10:56:52 -0500
committerYang Xu <yang.xu3@huawei.com>2018-11-22 16:04:42 +0000
commit9f935b29ee41f455922efcd7467a02ca0384a9e7 (patch)
treedba99dc65f6a5b4ec348d2a925003d362ee02f6a /test/vcpe/vcpe_custom_service.py
parent5f85af35b6435da9f28ca6097a6ff152ef87ed0c (diff)
Change vgw module name for vCPE test script
Change-Id: I17308f23812cc1a335155fd4e9e789bed04dec00 Issue-ID: INT-717 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
Diffstat (limited to 'test/vcpe/vcpe_custom_service.py')
-rwxr-xr-xtest/vcpe/vcpe_custom_service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vcpe/vcpe_custom_service.py b/test/vcpe/vcpe_custom_service.py
index 408f8a8c4..36012f7b0 100755
--- a/test/vcpe/vcpe_custom_service.py
+++ b/test/vcpe/vcpe_custom_service.py
@@ -72,6 +72,7 @@ class CustomService:
brg_mac = str(raw_input("Enter the BRG MAC address: "))
else:
brg_mac = self.vcpecommon.get_brg_mac_from_sdnc()
+ brg_mac_enc = brg_mac.replace(':', '-')
# get name index
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
@@ -83,7 +84,7 @@ class CustomService:
self.vcpecommon.increase_ip_address_or_vni_in_template(vgw_template_file, parameters_to_change)
preloader.preload_vgw(vgw_template_file, brg_mac, preload_dict, name_suffix)
# preload vGW-GRA
- preloader.preload_vgw_gra(vgw_gra_template_file, brg_mac, preload_dict, name_suffix, str(self.vgw_vfmod_name_index))
+ preloader.preload_vgw_gra(vgw_gra_template_file, brg_mac_enc, preload_dict, name_suffix, str(self.vgw_vfmod_name_index))
# create service
so = soutils.SoUtils(self.vcpecommon, 'v5')