NST selection |
| NST selection | Closed | Load optimization policies for NST selection Create NSTs in SDC and distribute them Trigger NST Selection API curl -X POST -H "Accept:application/json" -H "Content-Type: application/json" -k https://192.168.200.27:30248/api/oof/v1/selection/nst -d'{
"requestInfo":{
"transactionId":"c86b3019-39f4-4cd3-b847-b22afe9f36dc",
"requestId":"c86b3019-39f4-4cd3-b847-b22afe9f36dc",
"sourceId":"so",
"timeout":600,
"callbackUrl":"http://so-oof-adapter.onap:8090/so/adapters/oof/callback/v1/NSTSelectionResponse/e095a613- a601-4c29-9af3-c59f539ef3f1"
},
"serviceProfile":{
"latency":20,
"areaTrafficCapDL" : 10000
}}'
Check the response for the NST solution Nst Selection Response |Received response [code: 200, headers: {'Server': 'nginx/1.18.0', 'Date': 'Tue, 09 Mar 2021 09:12:03 GMT', 'Content-Type': 'application/json', 'Content-Length': '1375', 'Connection': 'keep-alive', 'X-MinorVersion': '0', 'X-PatchVersion': '3', 'X-LatestVersion': '2.1.3'}, data: {'_content': b'{"plans": [{"name": "c86b3019-39f4-4cd3-b847-b22afe9f36dc", "id": "c10ca430-06e7-473a-a199-fc1dac02fa4e", "status": "done", "message": "No \'*\' wild card entry found in country latency table. No solution will be provided", "recommendations": [{"nst": {"inventory_provider": "aai", "service_resource_id": null, "candidate": {"candidate_id": "e9701d13-6159-4ddb-acf9-0667ee528cdf", "inventory_provider": "aai", "inventory_type": "nst", "uniqueness": "true", "cost": 1.0, "model_invariant_id": "1278c6dd-e739-491d-9a66-152eec22a3bc", "model_type": "service", "model_role": "NST", "model_version_id": "e9701d13-6159-4ddb-acf9-0667ee528cdf", "model_name": "EmbbNst", "model_version": "2.0", "distribution_status": "DISTRIBUTION_COMPLETE_ERROR", "model_description": "nst", "skip_post_instantiation_configuration": true, "controller_actor": "SO-REF-DATA", "areaTrafficCapDL": 15000, "latency": 15, "expDataRateUL": 15000, "areaTrafficCapUL": 15000, "expDataRateDL": 15000, "resourceSharingLevel": "shared", "name": "nst", "node_id": "nst e9701d13-6159-4ddb-acf9-0667ee528cdf", "constraints": [{"name": "nst_Threshold_nst", "status": "passed", "constraint_type": "threshold"}]}, "attributes": {"physical-location-id": null, "cloud_owner": null, "aic_version": null}}}], "links": [[{"href": "https://oof-has-api:8091/v1/plans/c10ca430-06e7-473a-a199-fc1dac02fa4e", "rel": "self"}]]}]}', '_content_consumed': True, '_next': None, 'status_code': 200, 'headers': {'Server': 'nginx/1.18.0', 'Date': 'Tue, 09 Mar 2021 09:12:03 GMT', 'Content-Type': 'application/json', 'Content-Length': '1375', 'Connection': 'keep-alive', 'X-MinorVersion': '0', 'X-PatchVersion': '3', 'X-LatestVersion': '2.1.3'}, 'raw': <urllib3.response.HTTPResponse object at 0x7fa4249b8d60>, 'url': 'https://oof-has-api:8091/v1/plans/c10ca430-06e7-473a-a199-fc1dac02fa4e', 'encoding': None, 'history': [], 'reason': 'OK', 'cookies': <RequestsCookieJar[]>, 'elapsed': datetime.timedelta(seconds=2, microseconds=352000), 'request': <PreparedRequest [GET]>, 'connection': <requests.adapters.HTTPAdapter object at 0x7fa424990880>}]
|