diff options
author | Itohan Ukponmwan <itohan.ukponmwan@intel.com> | 2019-09-13 00:08:39 +0000 |
---|---|---|
committer | Itohan Ukponmwan <itohan.ukponmwan@intel.com> | 2019-09-13 00:46:18 +0000 |
commit | 63929cfc099d8a39bf9854dd7fbb1f32490e1147 (patch) | |
tree | 841dcf831655ed805f7572a525e9864532b8555f /test/hpa_automation/heat/hpa_automation.py | |
parent | 0b06f78094bf11112f57d32d741e349108c34042 (diff) |
Fixed Bugs in HPA automtion script
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Issue-ID: INT-1137
Change-Id: I89fefb02d7d58453d490499716c581cb66895b59
Diffstat (limited to 'test/hpa_automation/heat/hpa_automation.py')
-rwxr-xr-x | test/hpa_automation/heat/hpa_automation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/hpa_automation/heat/hpa_automation.py b/test/hpa_automation/heat/hpa_automation.py index 86c908adf..212b8adfc 100755 --- a/test/hpa_automation/heat/hpa_automation.py +++ b/test/hpa_automation/heat/hpa_automation.py @@ -229,7 +229,7 @@ def create_service_model(parameters, vf_unique_id): #VNF Deployment Section def upload_policy_models(parameters): - os.system("python insert_policy_models.py {} {} {}".format(parameters["policy_db_ip"], \ + os.system("python insert_policy_models_heat.py {} {} {}".format(parameters["policy_db_ip"], \ parameters["policy_db_user"], parameters["policy_db_password"])) def add_policies(parameters): @@ -488,8 +488,8 @@ db_dict = query_db(parameters, service_model_uuid, vf_id) #Wait for Service instance to be created then create VNF Instance while True: #Check if service instance has been created" - check_service_instance = os.popen("oclip service-instance-list -u {} -p {} -m {} |grep {}".format(parameters["aai_username"], \ - parameters["aai_password"], parameters["aai_url"], parameters["instance-name"])).read() + check_service_instance = os.popen("oclip service-instance-list -u {} -p {} -m {} |grep {}-{}".format(parameters["aai_username"], \ + parameters["aai_password"], parameters["aai_url"], parameters["instance-name"], parameters["service_name"])).read() if check_service_instance: print "service instance created successfully" #Create VNF Instance |