5 from testscripts.const import VNF_PROFILE_ID, VIM_ID, MSB_BASE_URL
7 ns_instance_Id = sys.argv[1]
9 "additionalParamForNs": {
10 "sdnControllerId": "2"
12 "locationConstraints": [{
13 "vnfProfileId": VNF_PROFILE_ID,
14 "locationConstraints": {
19 headers = {'content-type': 'application/json', 'accept': 'application/json'}
21 auth_type = "rest_no_auth"
22 http = httplib2.Http(ca_certs=ca_certs, disable_ssl_certificate_validation=(auth_type == "rest_no_auth"))
23 http.follow_all_redirects = True
24 resp, resp_content = http.request(MSB_BASE_URL + '/api/nslcm/v1/ns/' + ns_instance_Id + '/instantiate',
25 method="POST", body=json.dumps(data), headers=headers)
26 print(resp['status'], resp_content)