From 201d962060b06355c86067e3ce4cc85ff7e4af1c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 13 Jul 2023 06:59:12 -0300 Subject: [PATCH] VNF Terminate workflow base class Change-Id: Icce417ed10e2f3c307e8940ee5c528a0ec5cedc2 Signed-off-by: Daniel Arndt --- osm_common/temporal/workflows/vnf.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/osm_common/temporal/workflows/vnf.py b/osm_common/temporal/workflows/vnf.py index 365f953..cd540a5 100644 --- a/osm_common/temporal/workflows/vnf.py +++ b/osm_common/temporal/workflows/vnf.py @@ -85,3 +85,22 @@ class VnfPrepareWorkflow(BaseWorkflow): @abstractmethod async def run(self, workflow_input: Input) -> None: pass + + +class VnfTerminateWorkflow(BaseWorkflow): + @dataclass + class Input: + """ + + Attributes: + ----------- + vnfr_uuid : str + The UUID of the VNF which is stored in the OSM vnfrs + collection in Mongo. + """ + + vnfr_uuid: str + + @abstractmethod + async def run(self, workflow_input: Input) -> None: + pass -- 2.25.1