@dataclass
class PrepareVnfInput:
"""
- Input dataclass for workflow that instantiates a VNF.
+ Input dataclass for workflow that prepares a VNF.
Attributes:
-----------
@dataclass
class ChangeVnfStateInput:
"""
- Input dataclass for changing NF State.
+ Input dataclass for changing VNF State.
Attributes:
-----------
@dataclass
class ChangeVnfInstantiationStateInput:
"""
- Input dataclass for changing NF Instantiation State.
+ Input dataclass for changing VNF Instantiation State.
Attributes:
-----------
@dataclass
class GetTaskQueueInput:
"""
- Input dataclass for creating a Juju Model.
+ Input dataclass for get task queue activity.
Attributes:
-----------
"""
task_queue: str
+
+
+@dataclass
+class GetVnfDetailsInput:
+ """
+ Input dataclass for get vnf details activity.
+
+ Attributes:
+ -----------
+ vnfr_uuid : str
+ The UUID of the VNF which is stored in the OSM vnfrs
+ collection in Mongo.
+ """
+
+ vnfr_uuid: str
+
+
+@dataclass
+class GetVnfDetailsOutput:
+ """
+ Output dataclass for get vnf details activity.
+
+ Attributes:
+ -----------
+ vnfr : dict
+ VNF record retrieved from Database.
+
+ vnfd : dict
+ VNF descriptor retrieved from Database.
+ """
+
+ vnfr: dict
+ vnfd: dict
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"
# Workflows
WORKFLOW_NSLCM_NO_OP = "nslcm-no-op"