Add placeholders for Get VNF record IDs 42/13242/5
authorDaniel Arndt <daniel.arndt@canonical.com>
Wed, 19 Apr 2023 17:43:26 +0000 (14:43 -0300)
committerDaniel Arndt <daniel.arndt@canonical.com>
Thu, 20 Apr 2023 10:07:25 +0000 (07:07 -0300)
Change-Id: I44d236056e210b48c9b5b8682a7a434a7ddab165
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
osm_common/dataclasses/temporal_dataclasses.py
osm_common/temporal_constants.py

index 60dac4e..38dfcfa 100644 (file)
@@ -17,6 +17,7 @@
 
 from dataclasses import dataclass
 from enum import auto, IntEnum
+from typing import List
 
 
 #######################################################################################
@@ -102,27 +103,6 @@ class NsLcmOperationInput:
     nslcmop: dict
 
 
-@dataclass
-class NsInstantiateInput:
-    """
-    Input dataclass for workflow that instantiate NS.
-
-    Attributes:
-    -----------
-    ns_uuid : str
-        The UUID of the NS as stored in the OSM nsr
-        collection in Mongo
-
-    op_id: str
-        The operation (task) id for this workflow.  This is used
-        by the workflow at the end to update the status of the
-        operation in Mongo vim collection.
-    """
-
-    ns_uuid: str
-    op_id: str
-
-
 @dataclass
 class CharmInfo:
     """
@@ -499,3 +479,27 @@ class GetVnfDetailsOutput:
 
     vnfr: dict
     vnfd: dict
+
+
+@dataclass
+class GetVnfRecordIdsInput:
+    """
+    Attributes:
+    -----------
+    ns_uuid : str
+        The UUID of the NS from which to retrieve the VNF records.
+    """
+
+    ns_uuid: str
+
+
+@dataclass
+class GetVnfRecordIdsOutput:
+    """
+    Attributes:
+    -----------
+    vnfr_ids : list[str]
+        List of the VNF record IDs associated with the NS.
+    """
+
+    vnfr_ids: List[str]
index 54b670d..6de0d28 100644 (file)
@@ -31,6 +31,7 @@ ACTIVITY_TEST_VIM_CONNECTIVITY = "test-vim-connectivity"
 ACTIVITY_UPDATE_VIM_OPERATION_STATE = "update-vim-operation-state"
 ACTIVITY_UPDATE_VIM_STATE = "update-vim-state"
 ACTIVITY_DEPLOY_NS = "deploy-ns"
+ACTIVITY_GET_VNF_RECORD_IDS = "get-vnf-record-ids"
 ACTIVITY_UPDATE_NS_STATE = "update-ns-state"
 ACTIVITY_CHECK_NS_INSTANTIATION_FINISHED = "check-ns-instantiation-finish"
 ACTIVITY_CREATE_MODEL = "create-model"