from dataclasses import dataclass
from enum import auto, IntEnum
+from typing import List
#######################################################################################
nslcmop: dict
-@dataclass
-class NsInstantiateInput:
- """
- Input dataclass for workflow that instantiate NS.
-
- Attributes:
- -----------
- ns_uuid : str
- The UUID of the NS as stored in the OSM nsr
- collection in Mongo
-
- op_id: str
- The operation (task) id for this workflow. This is used
- by the workflow at the end to update the status of the
- operation in Mongo vim collection.
- """
-
- ns_uuid: str
- op_id: str
-
-
@dataclass
class CharmInfo:
"""
vnfr: dict
vnfd: dict
+
+
+@dataclass
+class GetVnfRecordIdsInput:
+ """
+ Attributes:
+ -----------
+ ns_uuid : str
+ The UUID of the NS from which to retrieve the VNF records.
+ """
+
+ ns_uuid: str
+
+
+@dataclass
+class GetVnfRecordIdsOutput:
+ """
+ Attributes:
+ -----------
+ vnfr_ids : list[str]
+ List of the VNF record IDs associated with the NS.
+ """
+
+ vnfr_ids: List[str]
ACTIVITY_UPDATE_VIM_OPERATION_STATE = "update-vim-operation-state"
ACTIVITY_UPDATE_VIM_STATE = "update-vim-state"
ACTIVITY_DEPLOY_NS = "deploy-ns"
+ACTIVITY_GET_VNF_RECORD_IDS = "get-vnf-record-ids"
ACTIVITY_UPDATE_NS_STATE = "update-ns-state"
ACTIVITY_CHECK_NS_INSTANTIATION_FINISHED = "check-ns-instantiation-finish"
ACTIVITY_CREATE_MODEL = "create-model"