diff options
author | 2020-10-28 15:19:33 +0800 | |
---|---|---|
committer | 2020-10-28 15:50:39 +0800 | |
commit | 2c57fdc3462fb59fd2643faade6355e278bfc014 (patch) | |
tree | b230eee4ac7e1a6157e17ca27eca5eda0ee1a66e /lcm/ns_vnfs/biz/grant_vnf.py | |
parent | 33e2dbde71544baad683d5240cda3e7b32bc5795 (diff) |
Don't write information to resmanagement
Change-Id: I9f866be27166b0c6154d9fe1649398f61de2a5de
Issue-ID: VFC-1762
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
Diffstat (limited to 'lcm/ns_vnfs/biz/grant_vnf.py')
-rw-r--r-- | lcm/ns_vnfs/biz/grant_vnf.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lcm/ns_vnfs/biz/grant_vnf.py b/lcm/ns_vnfs/biz/grant_vnf.py index 9c869ea1..40442e92 100644 --- a/lcm/ns_vnfs/biz/grant_vnf.py +++ b/lcm/ns_vnfs/biz/grant_vnf.py @@ -20,7 +20,6 @@ from lcm.pub.database.models import NfInstModel, OOFDataModel from lcm.pub.exceptions import NSLCMException from lcm.pub.msapi.sdc_run_catalog import query_vnfpackage_by_id from lcm.pub.utils.values import ignore_case_get -from lcm.pub.msapi import resmgr from lcm.ns_vnfs.const import SCALAR_UNIT_DICT logger = logging.getLogger(__name__) @@ -90,17 +89,17 @@ class GrantVnf(object): break req_param[grant_type].append(grant_res) self.data = req_param - tmp = resmgr.grant_vnf(self.data) - vimConnections.append( - { - "id": tmp["vim"]["vimId"], - "vimId": tmp["vim"]["vimId"], - "vimType": None, - "interfaceInfo": None, - "accessInfo": tmp["vim"]["accessInfo"], - "extra": None - } - ) + # tmp = resmgr.grant_vnf(self.data) + # vimConnections.append( + # { + # "id": tmp["vim"]["vimId"], + # "vimId": tmp["vim"]["vimId"], + # "vimType": None, + # "interfaceInfo": None, + # "accessInfo": tmp["vim"]["accessInfo"], + # "extra": None + # } + # ) grant_resp = { "id": str(uuid.uuid4()), |