diff options
author | Haibin Huang <haibin.huang@intel.com> | 2018-11-22 03:15:33 +0000 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-11-22 07:56:50 +0000 |
commit | 0bd22b1852ed5b9f655f08466dee267b8e08bb75 (patch) | |
tree | a457ad529ea61713cda7e6791367865775efea88 /lcm/lcm/nf | |
parent | 789dcca35f52c271f768378b6a3dfb64569c3877 (diff) |
Get flavor id from OOF.
Change-Id: I62f602a1f64cb8bcd7c1741124286955c097037e
Issue-ID: VFC-1193
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
(cherry picked from commit 319fb28898c8bcceb27aa9ee23218c9669eb323e)
Diffstat (limited to 'lcm/lcm/nf')
-rw-r--r-- | lcm/lcm/nf/biz/instantiate_vnf.py | 2 | ||||
-rw-r--r-- | lcm/lcm/nf/const.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/nf/biz/instantiate_vnf.py b/lcm/lcm/nf/biz/instantiate_vnf.py index 101c96fd..682d18b6 100644 --- a/lcm/lcm/nf/biz/instantiate_vnf.py +++ b/lcm/lcm/nf/biz/instantiate_vnf.py @@ -178,7 +178,7 @@ class InstantiateVnf(Thread): if oof_vimid and oof_vimid != "none": vimid = oof_vimid vdu_info.append({"vduName": flavor["resourceProviderId"], - "flavorName": flavor["vimFlavourId"], + "flavorId": flavor["vimFlavourId"], "vimid": vimid}) for resource_type in ['vdus', 'vls', 'cps', 'volume_storages']: diff --git a/lcm/lcm/nf/const.py b/lcm/lcm/nf/const.py index 4a71a4d1..c11c0996 100644 --- a/lcm/lcm/nf/const.py +++ b/lcm/lcm/nf/const.py @@ -757,7 +757,7 @@ vnfdModel = { "vduInfo": [ { "vduName": "VDU_vbng_0", - "flavorName": "flavor_1", + "flavorId": "12345", "directive": "" } ] |