From aad0f78a5d9b52a36aa26bb4d110c70c980d91df Mon Sep 17 00:00:00 2001 From: Dario Faccin Date: Mon, 17 Apr 2023 16:57:48 +0200 Subject: [PATCH] OSMENG-987: Implement PrepareVnfWorkflow Change-Id: If7a314a14439bb7ee25157d430d76f0628e121b7 Signed-off-by: Dario Faccin --- osm_common/dataclasses/temporal_dataclasses.py | 17 ++--------------- osm_common/temporal_constants.py | 2 +- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 584b5dc..60dac4e 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -171,25 +171,12 @@ class VnfInstantiateInput: The UUID of the VNF which is stored in the OSM vnfrs collection in Mongo. - """ - - vnfr_uuid: str - - -@dataclass -class PrepareVnfInput: - """ - Input dataclass for workflow that prepares a VNF. - - Attributes: - ----------- - vnfr_uuid : str - The UUID of the VNF which is stored in the OSM vnfrs - collection in Mongo. + model_name: str """ vnfr_uuid: str + model_name: str ####################################################################################### diff --git a/osm_common/temporal_constants.py b/osm_common/temporal_constants.py index ff05875..54b670d 100644 --- a/osm_common/temporal_constants.py +++ b/osm_common/temporal_constants.py @@ -30,7 +30,6 @@ 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_PREPARE_VNF_RECORDS = "prepare-vnf-records" ACTIVITY_DEPLOY_NS = "deploy-ns" ACTIVITY_UPDATE_NS_STATE = "update-ns-state" ACTIVITY_CHECK_NS_INSTANTIATION_FINISHED = "check-ns-instantiation-finish" @@ -43,6 +42,7 @@ ACTIVITY_CHANGE_VNF_INSTANTIATION_STATE = "change-vnf-instantiation-state" ACTIVITY_SEND_NOTIFICATION_FOR_VNF = "send-notification-for-vnf" ACTIVITY_GET_TASK_QUEUE = "get_task_queue" ACTIVITY_GET_VNF_DETAILS = "get_vnf_details" +ACTIVITY_SET_VNF_MODEL = "set-vnf-model" # Workflows WORKFLOW_NSLCM_NO_OP = "nslcm-no-op" -- 2.25.1