VNF Terminate workflow base class 70/13670/2
authorDaniel Arndt <daniel.arndt@canonical.com>
Thu, 13 Jul 2023 09:59:12 +0000 (06:59 -0300)
committerbeierlm <mark.beierl@canonical.com>
Thu, 13 Jul 2023 17:24:59 +0000 (19:24 +0200)
Change-Id: Icce417ed10e2f3c307e8940ee5c528a0ec5cedc2
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
osm_common/temporal/workflows/vnf.py

index 365f953..cd540a5 100644 (file)
@@ -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