Skip to content
Snippets Groups Projects
Commit f080698b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Debug OFC24, Service and Optical Controller

parent eac09e4f
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!285Resolve: "(CNIT) New SBI Driver based on OpenROADM for ROADMs"
......@@ -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])
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment