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

Debug OFC24 and Optical Controller

parent 6d4a1e22
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"
......@@ -206,7 +206,11 @@ class TasksScheduler:
classes_service_handlers = self._executor.get_service_handlers(
connection, service, **service_handler_settings
)
if len(classes_service_handlers) != 1:
# TODO: improve to select different service handlers when needed
# By now, assume a single service handler is retrieved for all the
# device types in the path, i.e., all entries carry the same
# service handler, so we choose the first one retrieved.
if len(classes_service_handlers) < 1:
raise Exception('Unsupported case: {:s}'.format(str(classes_service_handlers)))
class_service_handler,_ = classes_service_handlers.values()[0]
if class_service_handler.check_media_channel(connection_uuid):
......
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