Support homing placement with selected candidateds through OOF,
in order to fulfill the need to home a VNF to a specific VIM chose
by UUI
Change-Id: I94a7793d1f77cea32a414cf94c83b5a14c0f28cc
Issue-ID: VFC-1255
Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
"modelVersionId": modelVersionId
}
}
+
+ if self.vim_id:
+ vim_info = self.vim_id.split("_")
+ identifiers = list()
+ identifiers.append(vim_info[1])
+ cloudOwner = vim_info[0]
+ required_candidate = [
+ {
+ "identifierType": "vimId",
+ "cloudOwner": cloudOwner,
+ "identifiers": identifiers
+ }
+ ]
+ placementDemand["requiredCandidates"] = required_candidate
+
req_body = {
"requestInfo": {
"transactionId": id,