aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuoyu Ying <ruoyu.ying@intel.com>2019-02-26 01:30:49 +0800
committerRuoyu Ying <ruoyu.ying@intel.com>2019-02-26 03:04:19 +0000
commita8d111f985265bfd118568603c82ed320c1177ce (patch)
treef4139b449bcf4745ffe8821f9f8025a0eb3e3889
parent8d1842182c9ef4ea15e848436df0ac5521d6fce5 (diff)
Homing with selected VIM
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>
-rw-r--r--lcm/ns_vnfs/biz/create_vnfs.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/lcm/ns_vnfs/biz/create_vnfs.py b/lcm/ns_vnfs/biz/create_vnfs.py
index 04cb3b8b..e4773920 100644
--- a/lcm/ns_vnfs/biz/create_vnfs.py
+++ b/lcm/ns_vnfs/biz/create_vnfs.py
@@ -248,6 +248,21 @@ class CreateVnfs(Thread):
"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,