update initial status of NS and NSLCMOP 66/8466/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 9 Jan 2020 12:40:45 +0000 (12:40 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 9 Jan 2020 12:41:13 +0000 (12:41 +0000)
Change-Id: Iba004c8cb47fbaa6b6223684611226895d59b340
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_nbi/instance_topics.py

index 139ced7..09a8c1b 100644 (file)
@@ -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,