diff options
author | 2018-09-13 10:54:16 +0800 | |
---|---|---|
committer | 2018-09-13 02:55:31 +0000 | |
commit | 9975ee2ab76998715538fa3aeee377b947125b7e (patch) | |
tree | 7a565b330664b3ce1a9149022297012ab6f9f668 /lcm/lcm/pub | |
parent | 5729b6abb1a43319bfa419db6548ae8df6120479 (diff) |
Notification stuffs.
- Send operation and terminate notification using notificationutil.
Change-Id: Id32d6ed37cf8f09c836c90c03819b8125135e69a
Issue-ID: VFC-1095
Signed-off-by: laili <lai.li@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub')
-rw-r--r-- | lcm/lcm/pub/msapi/gvnfmdriver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/lcm/pub/msapi/gvnfmdriver.py b/lcm/lcm/pub/msapi/gvnfmdriver.py index a61227f1..13e8dee5 100644 --- a/lcm/lcm/pub/msapi/gvnfmdriver.py +++ b/lcm/lcm/pub/msapi/gvnfmdriver.py @@ -51,7 +51,7 @@ def notify_lcm_to_nfvo(data): return ret[1] -def prepare_notification_data(nfinstid, jobid, changetype): +def prepare_notification_data(nfinstid, jobid, changetype, operation): logger.info('Send notify request to nfvo') affected_vnfcs = [] vnfcs = VNFCInstModel.objects.filter(instid=nfinstid) @@ -122,7 +122,7 @@ def prepare_notification_data(nfinstid, jobid, changetype): 'notificationStatus': 'RESULT', 'operationState': 'COMPLETED', 'vnfInstanceId': nfinstid, - 'operation': 'INSTANTIATE', + 'operation': operation, 'isAutomaticInvocation': False, 'vnfLcmOpOccId': jobid, 'affectedVnfcs': affected_vnfcs, |