aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/optimizers/placementopt/conductor/conductor.py
diff options
context:
space:
mode:
authorRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:30:15 +0800
committerRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:32:10 +0800
commit6ae89d5df37c626d7bd6f1fcf94571e718f10b02 (patch)
tree8054d725df42b1cc450f1c10374a0f20fd170911 /osdf/optimizers/placementopt/conductor/conductor.py
parenta014bc832ce5e59b6dd52a6ac9dd5cea03a0ceec (diff)
Update sample response and resolve directives
Update the sample conductor response and add name_map to resolve directives. Also updated functest payload and localpolicies with the new policy model. Change-Id: I5255c40fb714558261efffabbdf44da535171cbf Issue-ID: OPTFRA-322 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
Diffstat (limited to 'osdf/optimizers/placementopt/conductor/conductor.py')
-rwxr-xr-xosdf/optimizers/placementopt/conductor/conductor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdf/optimizers/placementopt/conductor/conductor.py b/osdf/optimizers/placementopt/conductor/conductor.py
index 29f0bbc..357efd1 100755
--- a/osdf/optimizers/placementopt/conductor/conductor.py
+++ b/osdf/optimizers/placementopt/conductor/conductor.py
@@ -136,7 +136,7 @@ def conductor_response_processor(conductor_response, raw_response, req_id):
name_map = {"physical-location-id": "cloudClli", "host_id": "vnfHostName",
"cloud_version": "cloudVersion", "cloud_owner": "cloudOwner",
"cloud": "cloudRegionId", "service": "serviceInstanceId", "is_rehome": "isRehome",
- "location_id": "locationId", "location_type": "locationType"}
+ "location_id": "locationId", "location_type": "locationType", "directives": "oof_directives"}
for reco in conductor_response['plans'][0]['recommendations']:
for resource in reco.keys():
c = reco[resource]['candidate']