From f080698b2d4e349543a0a92f993027ef0158435e Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Thu, 31 Oct 2024 08:00:53 +0000
Subject: [PATCH] Debug OFC24, Service and Optical Controller

---
 src/opticalcontroller/RSA.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/opticalcontroller/RSA.py b/src/opticalcontroller/RSA.py
index 256aaff58..a88903ac5 100644
--- a/src/opticalcontroller/RSA.py
+++ b/src/opticalcontroller/RSA.py
@@ -368,7 +368,7 @@ class RSA():
                 # fib = link['fibers'][f]
                 fib = self.get_link_by_name(r_l)["optical_details"]
                 if list_in_list(slots, str_list_to_int(fib[band].keys())):
-                    self.restore_link(fib, slots, band, link=l)
+                    self.restore_link_2(fib, slots, band, link=l)
                     if debug:
                         print(fib[band])
             '''
@@ -381,7 +381,7 @@ class RSA():
                 #rfib = rlink['fibers'][rf]
                 rfib = self.get_fiber_details(rl, fiber_b[rl])
                 if not list_in_list(slots, rfib[band]):
-                    self.restore_link(rfib, slots, band)
+                    self.restore_link_2(rfib, slots, band)
                     if debug:
                         print(rfib[band])
             '''
@@ -423,7 +423,7 @@ class RSA():
             print(f"del_flow { str_list_to_int(fib[band].keys())}")
           
             print(f"invoking restore_link_2 fib: {fib} , slots {slots} , band {band} ")
-            self.restore_link(fib, slots, band)
+            self.restore_link_2(fib, slots, band)
             self.optical_bands[o_b_id]["is_active"]=False
            
             if debug:
@@ -446,7 +446,7 @@ class RSA():
                 # fib = link['fibers'][f]
                 fib = self.get_link_by_name(r_l)["optical_details"]
                 if list_in_list(slots, str_list_to_int(fib[band].keys())):
-                    self.restore_link(fib, slots, band, link=l)
+                    self.restore_link_2(fib, slots, band, link=l)
                     if debug:
                         print(fib[band])
             '''
-- 
GitLab