diff options
author | Brian Freeman <bf1936@att.com> | 2018-11-11 22:36:20 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2018-11-12 10:28:55 -0500 |
commit | 81f6e9ee662695a818bdb5f24c17f09fac5c962f (patch) | |
tree | a60da066457b1746ab63e0f023b192d14eeadbf6 /test/vcpe/vcpe_custom_service.py | |
parent | a71e3709faa5f281361ddfcd79eb4bd11550edca (diff) |
Updates for Casbalanca vcpe.py
Issue-ID: INT-717
Change-Id: I0d5978da205fcc02935e9547424578f90e5a5c38
Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'test/vcpe/vcpe_custom_service.py')
-rwxr-xr-x | test/vcpe/vcpe_custom_service.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/vcpe/vcpe_custom_service.py b/test/vcpe/vcpe_custom_service.py index 8c5635473..ad55ed586 100755 --- a/test/vcpe/vcpe_custom_service.py +++ b/test/vcpe/vcpe_custom_service.py @@ -66,18 +66,25 @@ class CustomService: print(' 6. ping the web server: ping {0}'.format('10.2.0.10')) print(' 7. wget http://{0}'.format('10.2.0.10')) - def create_custom_service(self, csar_file, vgw_template_file, preload_dict=None): + 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) # preload vGW if preload_dict: preloader = preload.Preload(self.vcpecommon) parameters_to_change = ['vgw_private_ip_0', 'vgw_private_ip_1', 'vgw_private_ip_2','vg_vgmux_tunnel_vni'] 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, vgw_vfmod_name_index) # create service so = soutils.SoUtils(self.vcpecommon, 'v5') |