From: Daniel Arndt Date: Wed, 19 Apr 2023 17:43:26 +0000 (-0300) Subject: Add placeholders for Get VNF record IDs X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=58076cae2f6b550af6c00ab301e1e026c5833423;p=osm%2Fcommon.git Add placeholders for Get VNF record IDs Change-Id: I44d236056e210b48c9b5b8682a7a434a7ddab165 Signed-off-by: Daniel Arndt --- diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 60dac4e..38dfcfa 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -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] diff --git a/osm_common/temporal_constants.py b/osm_common/temporal_constants.py index 54b670d..6de0d28 100644 --- a/osm_common/temporal_constants.py +++ b/osm_common/temporal_constants.py @@ -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"