summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/msapi/gvnfmdriver.py
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/lcm/pub/msapi/gvnfmdriver.py')
-rw-r--r--lcm/lcm/pub/msapi/gvnfmdriver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/pub/msapi/gvnfmdriver.py b/lcm/lcm/pub/msapi/gvnfmdriver.py
index 5446fa3d..4b2b304a 100644
--- a/lcm/lcm/pub/msapi/gvnfmdriver.py
+++ b/lcm/lcm/pub/msapi/gvnfmdriver.py
@@ -59,7 +59,7 @@ def prepare_notification_data(nfinstid, jobid, changetype):
vm = VmInstModel.objects.filter(vmid=vnfc.vmid)
if vm:
vm_resource = {
- 'vimId': vm[0].vimConnectionId,
+ 'vimId': vm[0].vimid,
'resourceId': vm[0].resouceid,
'resourceProviderId': vm[0].vmname, # TODO: is resourceName mapped to resourceProviderId?
'vimLevelResourceType': 'vm'
@@ -96,7 +96,7 @@ def prepare_notification_data(nfinstid, jobid, changetype):
'resourceProviderId': port.name, # TODO: is resourceName mapped to resourceProviderId?
'vimLevelResourceType': 'port'
},
- 'cpInstanceId': port.cpinstanceid
+ 'cpInstanceId': port.cpinstanceid # TODO: port.cpinstanceid is not initiated when create port resource.
}),
affected_vss = []
vss = StorageInstModel.objects.filter(instid=nfinstid)