From 1c901dbf16420a7a7f927507ec9ab040fe10e81a Mon Sep 17 00:00:00 2001
From: ismaeel <mohammad.ismaael@cnit.it>
Date: Fri, 1 Nov 2024 04:05:36 +0000
Subject: [PATCH] media channels bugs fixed

---
 .../service/service_handlers/oc/OCServiceHandler.py    | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/service/service/service_handlers/oc/OCServiceHandler.py b/src/service/service/service_handlers/oc/OCServiceHandler.py
index 277080d65..3931c97c7 100644
--- a/src/service/service/service_handlers/oc/OCServiceHandler.py
+++ b/src/service/service/service_handlers/oc/OCServiceHandler.py
@@ -62,16 +62,20 @@ class OCServiceHandler(_ServiceHandler):
         # settings = self.__settings_handler.get('/settings')
 
         #flow is the new variable that stores input-output relationship
-        #flows = convert_endpoints_to_flows(endpoints)
-        flows = endpoints_to_flows(endpoints, bidir, is_opticalband)
+        flows = convert_endpoints_to_flows(endpoints)
+        LOGGER.info(f"endpoints {endpoints} is_opticalband {is_opticalband} ")
+        #flows = endpoints_to_flows(endpoints, bidir, is_opticalband)
         #handled_flows=handle_flows_names(flows=flows,task_executor=self.__task_executor)
 
         results = []
-
+        LOGGER.info(f"flows {flows} ")
+        LOGGER.info(f"settings {settings} ")
+        
         #new cycle for setting optical devices
         for device_uuid, dev_flows in flows.items():
             try:
                 device_obj = self.__task_executor.get_device(DeviceId(**json_device_id(device_uuid)))
+                LOGGER.info(f"device {device_obj.name} ")
                 if settings:
                     self.__task_executor.configure_optical_device(device_obj, settings, dev_flows, is_opticalband)
                 results.append(True)
-- 
GitLab