From 4407a0e03c999f5729874d48fe6dd6013e4e5812 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Thu, 27 Apr 2023 16:31:51 +0300 Subject: [PATCH] OSMENG-1048 Implement day1 configuration for VDU Change-Id: I63ef565fe417cf22284ea64d89ece96cc3a491b7 Signed-off-by: Gulsum Atici --- .../dataclasses/temporal_dataclasses.py | 34 +++++++++++++++++++ osm_common/temporal_constants.py | 1 + 2 files changed, 35 insertions(+) diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 26797a6..de541f2 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -182,6 +182,8 @@ class VduInstantiateInput: constraints: VduComputeConstraints cloud: VIM cloud type + + config: Config details of application """ vim_uuid: str @@ -189,6 +191,7 @@ class VduInstantiateInput: charm_info: CharmInfo constraints: VduComputeConstraints cloud: str + config: dict @dataclass @@ -210,6 +213,37 @@ class VnfInstantiateInput: model_name: str +@dataclass +class GetNsRecordInput: + """ + Input dataclass for getting NS record activity. + + Attributes: + ----------- + nsr_uuid : + The UUID of the NS record which is stored in the OSM nsrs + collection in Mongo. + + """ + + nsr_uuid: str + + +@dataclass +class GetNsRecordOutput: + """ + Output dataclass for getting NS record activity. + + Attributes: + ----------- + nsr : dict + NS record retrieved from Database.. + + """ + + nsr: dict + + ####################################################################################### # Activity Dataclasses diff --git a/osm_common/temporal_constants.py b/osm_common/temporal_constants.py index 91a45ac..ca1bfc2 100644 --- a/osm_common/temporal_constants.py +++ b/osm_common/temporal_constants.py @@ -30,6 +30,7 @@ ACTIVITY_DELETE_VIM = "delete-vim" ACTIVITY_TEST_VIM_CONNECTIVITY = "test-vim-connectivity" ACTIVITY_UPDATE_VIM_OPERATION_STATE = "update-vim-operation-state" ACTIVITY_UPDATE_VIM_STATE = "update-vim-state" +ACTIVITY_GET_NS_RECORD = "get-ns-record" ACTIVITY_GET_VNF_RECORD_IDS = "get-vnf-record-ids" ACTIVITY_UPDATE_NS_STATE = "update-ns-state" ACTIVITY_CREATE_MODEL = "create-model" -- 2.25.1