From d17742811ada328bb9c71f8d7b8951c8b4541825 Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Tue, 3 Dec 2024 14:51:17 +0100
Subject: [PATCH] add moodi to l3_core_service create migration

---
 gso/workflows/l3_core_service/create_l3_core_service.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gso/workflows/l3_core_service/create_l3_core_service.py b/gso/workflows/l3_core_service/create_l3_core_service.py
index 70686fb6..b4588383 100644
--- a/gso/workflows/l3_core_service/create_l3_core_service.py
+++ b/gso/workflows/l3_core_service/create_l3_core_service.py
@@ -28,6 +28,7 @@ from gso.utils.shared_enums import APType, SBPType
 from gso.utils.types.ip_address import IPv4AddressType, IPV4Netmask, IPv6AddressType, IPV6Netmask
 from gso.utils.types.tt_number import TTNumber
 from gso.utils.types.virtual_identifiers import VLAN_ID
+from gso.utils.workflow_steps import start_moodi, stop_moodi
 
 
 def initial_input_form_generator(product_name: str) -> FormGenerator:
@@ -325,6 +326,7 @@ def create_l3_core_service() -> StepList:
         >> create_subscription
         >> store_process_subscription(Target.CREATE)
         >> initialize_subscription
+        >> start_moodi()
         >> lso_interaction(provision_sbp_dry)
         >> lso_interaction(provision_sbp_real)
         >> lso_interaction(check_sbp_functionality)
@@ -334,5 +336,6 @@ def create_l3_core_service() -> StepList:
         >> update_dns_records
         >> set_status(SubscriptionLifecycle.ACTIVE)
         >> resync
+        >> stop_moodi()
         >> done
     )
-- 
GitLab