From ecf94bd7d3df14de07debce02cd85e9983927299 Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 9 Jan 2020 12:40:45 +0000 Subject: [PATCH] update initial status of NS and NSLCMOP Change-Id: Iba004c8cb47fbaa6b6223684611226895d59b340 Signed-off-by: tierno --- osm_nbi/instance_topics.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 139ced7..09a8c1b 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -232,6 +232,14 @@ class NsrTopic(BaseTopic): "name-ref": ns_request["nsName"], "short-name": ns_request["nsName"], "admin-status": "ENABLED", + "nsState": "NOT_INSTANTIATED", + "currentOperation": "IDLE", + "currentOperationID": None, + "errorDescription": None, + "errorDetail": None, + "deploymentStatus": None, + "configurationStatus": None, + "vcaStatus": None, "nsd": nsd, "datacenter": ns_request["vimAccountId"], "resource-orchestrator": "osmopenmano", @@ -921,6 +929,10 @@ class NsLcmOpTopic(BaseTopic): "id": _id, "_id": _id, "operationState": "PROCESSING", # COMPLETED,PARTIALLY_COMPLETED,FAILED_TEMP,FAILED,ROLLING_BACK,ROLLED_BACK + "queuePosition": None, + "stage": None, + "errorMessage": None, + "detailedStatus": None, "statusEnteredTime": now, "nsInstanceId": nsr_id, "lcmOperationType": operation, -- 2.25.1