OSMENG-988: Create ACTIVITY_SEND_NOTIFICATION_FOR_NF 98/13198/2
authorDario Faccin <dario.faccin@canonical.com>
Fri, 14 Apr 2023 08:24:38 +0000 (10:24 +0200)
committerDario Faccin <dario.faccin@canonical.com>
Fri, 14 Apr 2023 16:04:23 +0000 (18:04 +0200)
Change-Id: I6257c47240cfa6bd2c90f08760bad6a9b8d645f9
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
osm_common/dataclasses/temporal_dataclasses.py
osm_common/temporal_constants.py

index a0e3d19..8694fa7 100644 (file)
@@ -384,9 +384,9 @@ class ModelInfo:
 
 
 @dataclass
-class ChangeNFStateInput:
+class ChangeVnfStateInput:
     """
-    Input dataclass for creating a Juju Model.
+    Input dataclass for changing NF State.
 
     Attributes:
     -----------
@@ -394,7 +394,7 @@ class ChangeNFStateInput:
         The UUID of the VNF which is stored in the OSM vnfrs
         collection in Mongo.
 
-    nf_state : VnfState
+    state : VnfState
         A representation of the VNF state (STOPPED or STARTED).
     """
 
@@ -403,9 +403,9 @@ class ChangeNFStateInput:
 
 
 @dataclass
-class ChangeNFInstantiationStateInput:
+class ChangeVnfInstantiationStateInput:
     """
-    Input dataclass for creating a Juju Model.
+    Input dataclass for changing NF Instantiation State.
 
     Attributes:
     -----------
@@ -413,7 +413,7 @@ class ChangeNFInstantiationStateInput:
         The UUID of the VNF which is stored in the OSM vnfrs
         collection in Mongo.
 
-    nf_instantiation_state : VnfInstantiationState
+    state : VnfInstantiationState
         A representation of the VNF instantiation state (NOT_INSTANTIATED or INSTANTIATED).
 
     """
index a953119..a4697a2 100644 (file)
@@ -38,9 +38,9 @@ ACTIVITY_CREATE_MODEL = "create-model"
 ACTIVITY_GET_MODEL_INFO = "get-model-info"
 ACTIVITY_DEPLOY_CHARM = "deploy-charm"
 ACTIVITY_CHECK_CHARM_STATUS = "check-charm-status"
-ACTIVITY_CHANGE_NF_STATE = "change_nf_state"
-ACTIVITY_CHANGE_NF_INSTANTIATION_STATE = "change_nf_instantiation_state"
-ACTIVITY_CHANGE_NF_NOTIFICATION_STATE = "change_nf_notification_state"
+ACTIVITY_CHANGE_VNF_STATE = "change-vnf-state"
+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"
 
 # Workflows