OSMENG-987: Implement PrepareVnfWorkflow 05/13205/3
authorDario Faccin <dario.faccin@canonical.com>
Mon, 17 Apr 2023 14:57:48 +0000 (16:57 +0200)
committerbeierlm <mark.beierl@canonical.com>
Tue, 18 Apr 2023 17:02:43 +0000 (19:02 +0200)
Change-Id: If7a314a14439bb7ee25157d430d76f0628e121b7
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
osm_common/dataclasses/temporal_dataclasses.py
osm_common/temporal_constants.py

index 584b5dc..60dac4e 100644 (file)
@@ -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
 
 
 #######################################################################################
index ff05875..54b670d 100644 (file)
@@ -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"