From 0feae05575e67163a34997b070cbd7457e4e19c4 Mon Sep 17 00:00:00 2001 From: ismaeel Date: Wed, 22 Oct 2025 06:24:39 +0000 Subject: [PATCH 1/2] premerge code cleaning --- src/context/service/database/OpticalConfig.py | 94 +++++++++---------- .../drivers/oc_driver/templates/VPN/roadms.py | 94 ++----------------- .../service/ServiceServiceServicerImpl.py | 24 ++--- .../service_handlers/oc/OCServiceHandler.py | 1 - .../service/service_handlers/oc/OCTools.py | 3 - .../tasks/Task_OpticalConnectionConfigure.py | 15 --- 6 files changed, 66 insertions(+), 165 deletions(-) diff --git a/src/context/service/database/OpticalConfig.py b/src/context/service/database/OpticalConfig.py index fe47df193..6c63f18c8 100644 --- a/src/context/service/database/OpticalConfig.py +++ b/src/context/service/database/OpticalConfig.py @@ -83,27 +83,27 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig): for interface in config['interfaces']: interface_name=interface["name"] if "name" in interface else None interfaces.append({ - "transponder_uuid" : transponder_get_uuid(device_id), - 'interface_uuid':interface_get_uuid(interface_name,device_uuid), - "name" :interface_name, - "status":interface["status"] if "status" in interface else None, - "operation_status":interface["operation_status"] if "operation_status" in interface else None, - "ifindex":interface["ifindex"] if "ifindex" in interface else None, - "in_octets":interface["in_octets"] if "in_octets" in interface else None, - "in_pkts":interface["in_pkts"] if "in_pkts" in interface else None, - "in_unicast_pkts":interface["in_unicast_pkts"] if "in_unicast_pkts" in interface else None, - "in_broadcast_pkts":interface["in_broadcast_pkts"] if "in_broadcast_pkts" in interface else None, - "in_multicast_pkts":interface["in_multicast_pkts"] if "in_multicast_pkts" in interface else None, - "out_discards":interface["out_discards"] if "out_discards" in interface else None, - "out_errors":interface["out_errors"] if "out_errors" in interface else None, - "in_discards":interface["in_discards"] if "in_discards" in interface else None, - "in_errors":interface["in_errors"] if "in_errors" in interface else None, - "out_octets":interface["out_octets"] if "out_octets" in interface else None, - "out_pkts":interface["out_pkts"] if "out_pkts" in interface else None, - "out_unicast_pkts":interface["out_unicast_pkts"] if "out_unicast_pkts" in interface else None, - "out_broadcast_pkts":interface["out_broadcast_pkts"] if "out_broadcast_pkts" in interface else None, - "out_multicast_pkts":interface["out_multicast_pkts"] if "out_multicast_pkts" in interface else None, - "last_clear":interface["last_clear"] if "last_clear" in interface else None + "transponder_uuid" : transponder_get_uuid(device_id), + 'interface_uuid' : interface_get_uuid(interface_name,device_uuid), + "name" : interface_name, + "status" : interface["status"] if "status" in interface else None, + "operation_status" : interface["operation_status"] if "operation_status" in interface else None, + "ifindex" : interface["ifindex"] if "ifindex" in interface else None, + "in_octets" : interface["in_octets"] if "in_octets" in interface else None, + "in_pkts" : interface["in_pkts"] if "in_pkts" in interface else None, + "in_unicast_pkts" : interface["in_unicast_pkts"] if "in_unicast_pkts" in interface else None, + "in_broadcast_pkts" : interface["in_broadcast_pkts"] if "in_broadcast_pkts" in interface else None, + "in_multicast_pkts" : interface["in_multicast_pkts"] if "in_multicast_pkts" in interface else None, + "out_discards" : interface["out_discards"] if "out_discards" in interface else None, + "out_errors" : interface["out_errors"] if "out_errors" in interface else None, + "in_discards" : interface["in_discards"] if "in_discards" in interface else None, + "in_errors" : interface["in_errors"] if "in_errors" in interface else None, + "out_octets" : interface["out_octets"] if "out_octets" in interface else None, + "out_pkts" : interface["out_pkts"] if "out_pkts" in interface else None, + "out_unicast_pkts" : interface["out_unicast_pkts"] if "out_unicast_pkts" in interface else None, + "out_broadcast_pkts" : interface["out_broadcast_pkts"] if "out_broadcast_pkts" in interface else None, + "out_multicast_pkts" : interface["out_multicast_pkts"] if "out_multicast_pkts" in interface else None, + "last_clear" : interface["last_clear"] if "last_clear" in interface else None }) if 'channels' in config and len(config['channels']) > 0: @@ -360,27 +360,27 @@ def update_opticalconfig(db_engine : Engine, request : OpticalConfig): for interface in config['new_config']['interfaces']: interface_name=interface["name"] if "name" in interface else None interfaces.append({ - "transponder_uuid" : transponder_get_uuid(device_id), - 'interface_uuid':interface_get_uuid(interface_name,device_uuid), - "name" :interface_name, - "status":interface["status"] if "status" in interface else None, - "operation_status":interface["operation_status"] if "operation_status" in interface else None, - "ifindex":interface["ifindex"] if "ifindex" in interface else None, - "in_octets":interface["in_octets"] if "in_octets" in interface else None, - "in_pkts":interface["in_pkts"] if "in_pkts" in interface else None, - "in_unicast_pkts":interface["in_unicast_pkts"] if "in_unicast_pkts" in interface else None, - "in_broadcast_pkts":interface["in_broadcast_pkts"] if "in_broadcast_pkts" in interface else None, - "in_multicast_pkts":interface["in_multicast_pkts"] if "in_multicast_pkts" in interface else None, - "out_discards":interface["out_discards"] if "out_discards" in interface else None, - "out_errors":interface["out_errors"] if "out_errors" in interface else None, - "in_discards":interface["in_discards"] if "in_discards" in interface else None, - "in_errors":interface["in_errors"] if "in_errors" in interface else None, - "out_octets":interface["out_octets"] if "out_octets" in interface else None, - "out_pkts":interface["out_pkts"] if "out_pkts" in interface else None, - "out_unicast_pkts":interface["out_unicast_pkts"] if "out_unicast_pkts" in interface else None, - "out_broadcast_pkts":interface["out_broadcast_pkts"] if "out_broadcast_pkts" in interface else None, - "out_multicast_pkts":interface["out_multicast_pkts"] if "out_multicast_pkts" in interface else None, - "last_clear":interface["last_clear"] if "last_clear" in interface else None + "transponder_uuid" : transponder_get_uuid(device_id), + 'interface_uuid' : interface_get_uuid(interface_name,device_uuid), + "name" : interface_name, + "status" : interface["status"] if "status" in interface else None, + "operation_status" : interface["operation_status"] if "operation_status" in interface else None, + "ifindex" : interface["ifindex"] if "ifindex" in interface else None, + "in_octets" : interface["in_octets"] if "in_octets" in interface else None, + "in_pkts" : interface["in_pkts"] if "in_pkts" in interface else None, + "in_unicast_pkts" : interface["in_unicast_pkts"] if "in_unicast_pkts" in interface else None, + "in_broadcast_pkts" : interface["in_broadcast_pkts"] if "in_broadcast_pkts" in interface else None, + "in_multicast_pkts" : interface["in_multicast_pkts"] if "in_multicast_pkts" in interface else None, + "out_discards" : interface["out_discards"] if "out_discards" in interface else None, + "out_errors" : interface["out_errors"] if "out_errors" in interface else None, + "in_discards" : interface["in_discards"] if "in_discards" in interface else None, + "in_errors" : interface["in_errors"] if "in_errors" in interface else None, + "out_octets" : interface["out_octets"] if "out_octets" in interface else None, + "out_pkts" : interface["out_pkts"] if "out_pkts" in interface else None, + "out_unicast_pkts" : interface["out_unicast_pkts"] if "out_unicast_pkts" in interface else None, + "out_broadcast_pkts" : interface["out_broadcast_pkts"] if "out_broadcast_pkts" in interface else None, + "out_multicast_pkts" : interface["out_multicast_pkts"] if "out_multicast_pkts" in interface else None, + "last_clear" : interface["last_clear"] if "last_clear" in interface else None }) if 'channels' in config['new_config'] and len(config['new_config']['channels']) > 0: @@ -682,11 +682,11 @@ def delete_opticalchannel(db_engine : Engine, messagebroker : MessageBroker, req stmt = stmt.on_conflict_do_update( index_elements=[OpticalChannelModel.channel_uuid ], set_=dict( - channel_name= stmt.excluded.channel_name , - frequency = stmt.excluded.frequency, - operational_mode=stmt.excluded.operational_mode, - target_output_power=stmt.excluded.target_output_power, - status=stmt.excluded.status + channel_name = stmt.excluded.channel_name , + frequency = stmt.excluded.frequency, + operational_mode = stmt.excluded.operational_mode, + target_output_power = stmt.excluded.target_output_power, + status = stmt.excluded.status ) ) stmt = stmt.returning(OpticalChannelModel.channel_uuid) diff --git a/src/device/service/drivers/oc_driver/templates/VPN/roadms.py b/src/device/service/drivers/oc_driver/templates/VPN/roadms.py index efa0efc8d..313cbc003 100644 --- a/src/device/service/drivers/oc_driver/templates/VPN/roadms.py +++ b/src/device/service/drivers/oc_driver/templates/VPN/roadms.py @@ -43,8 +43,6 @@ def create_media_channel (resources): with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): with tag('media-channels'): - - src,dest=flow with tag('channel', operation="create"): #with tag('channel'): @@ -61,8 +59,7 @@ def create_media_channel (resources): with tag('admin-status'):text(resource['value']) else: with tag(resource['resource_key']):text(resource['value']) - - + if src is not None and src != '0': with tag('source'): with tag('config'): @@ -71,11 +68,8 @@ def create_media_channel (resources): with tag('dest'): with tag('config'): with tag('port-name'):text(dest) - - n+=1 - - + n+=1 result = indent( doc.getvalue(), indentation = ' '*2, @@ -93,25 +87,17 @@ def create_optical_band (resources) : ,'frequency','optical-band-parent' ,'handled_flow','bidir'] config,ports,index= filter_config(resources,unwanted_keys=unwanted_keys) - - #with tag('config'): n = 0 for flow in ports: doc, tag, text = Doc().tagtext() with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): with tag('optical-bands',xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on"): - - - #with tag('optical-band', operation="create"): src,dest=flow - with tag('optical-band'): if index is not None: with tag('index'):text(str(int(index)+n)) with tag('config'): - #if index is not None: - # with tag('index'):text(str(int(index)+i)) for resource in config: if resource['resource_key'] == "index": with tag('index'):text(str(int(index)+n)) @@ -128,8 +114,6 @@ def create_optical_band (resources) : with tag('config'): with tag('port-name'):text(src) n +=1 - - result = indent( doc.getvalue(), indentation = ' '*2, @@ -161,22 +145,7 @@ def disable_media_channel (resources): with tag('config'): with tag('index'):text(str(int(index) + n)) - n +=1 - - - - - ''' - doc, tag, text = Doc().tagtext() - #with tag('config'): - with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): - with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): - with tag('media-channels'): - with tag("channel",operation="delete"): - with tag('index'):text(str(int(index))) - with tag('config'): - with tag('index'):text(str(int(index))) - ''' + n +=1 result = indent( doc.getvalue(), indentation = ' '*2, @@ -192,7 +161,7 @@ def disable_optical_band (resources:list,state:str): ,'channel_namespace','frequency' ,'operational-mode', 'optical-band-parent' ,"bidir"] - config,ports,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) + _,_,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) doc, tag, text = Doc().tagtext() #with tag('config'): with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): @@ -218,7 +187,7 @@ def disable_optical_band (resources:list,state:str): def disable_optical_band_v2 (resources:list,state:str): results=[] unwanted_keys=['destination_port','source_port','channel_namespace','frequency','operational-mode', 'optical-band-parent'] - config,ports,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) + _,ports,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) n = 0 for flow in ports: doc, tag, text = Doc().tagtext() @@ -232,21 +201,6 @@ def disable_optical_band_v2 (resources:list,state:str): with tag('index'):text(str(int(index) + n)) n +=1 - - - ''' - doc, tag, text = Doc().tagtext() - #with tag('config'): - with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): - with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): - with tag('optical-bands',xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on"): - with tag('optical-band',operation="delete"): - if index is not None: - with tag('index'):text(index) - with tag('config'): - with tag('index'):text(index) - - ''' result = indent( doc.getvalue(), indentation = ' '*2, @@ -260,26 +214,7 @@ def disable_optical_band_v2 (resources:list,state:str): def delete_optical_band (resources:list): results=[] unwanted_keys=['destination_port','source_port','channel_namespace','frequency','operational-mode', 'optical-band-parent'] - config,ports,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) - # doc, tag, text = Doc().tagtext() - # #with tag('config'): - # with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): - # with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): - # with tag('optical-bands',xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on"): - # with tag('optical-band',operation="delete"): - # if index is not None: - # with tag('index'):text(index) - # with tag('config'): - # with tag('index'):text(index) - - # result = indent( - # doc.getvalue(), - # indentation = ' '*2, - # newline = '' - # ) - # results.append(result) - # return results - + _,ports,index= seperate_port_config(resources,unwanted_keys=unwanted_keys) n = 0 for key,v in ports.items(): if isinstance(v,list): @@ -297,24 +232,9 @@ def delete_optical_band (resources:list): with tag('index'):text(str(int(index) + n)) n +=1 - - - ''' - doc, tag, text = Doc().tagtext() - #with tag('config'): - with tag('config',xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"): - with tag('wavelength-router', xmlns="http://openconfig.net/yang/wavelength-router"): - with tag('optical-bands',xmlns="http://flex-scale-project.eu/yang/flex-scale-mg-on"): - with tag('optical-band',operation="delete"): - if index is not None: - with tag('index'):text(index) - with tag('config'): - with tag('index'):text(index) - - ''' result = indent( doc.getvalue(), - indentation = ' '*2, + indentation = ' '*2, newline = '' ) results.append(result) diff --git a/src/service/service/ServiceServiceServicerImpl.py b/src/service/service/ServiceServiceServicerImpl.py index 03a3db969..315d3d9af 100644 --- a/src/service/service/ServiceServiceServicerImpl.py +++ b/src/service/service/ServiceServiceServicerImpl.py @@ -373,12 +373,12 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): if service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY: params={ - "src":None, - "dst":None, - "bitrate":None, - 'ob_id':None, - 'bidir': None, - 'flow_id':None + "src" : None, + "dst" : None, + "bitrate": None, + 'ob_id' : None, + 'bidir' : None, + 'flow_id': None } devs = [] @@ -414,12 +414,12 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): flow_id = c_rules_dict["flow_id"] #if ("ob_id" in c_rules_dict): # ob_id = c_rules_dict["ob_id"] - params['bitrate']=bitrate - params['dst']=dst - params['src']=src - params['ob_id']=ob_id - params['flow_id']=flow_id - params['bidir'] = bidir + params['bitrate'] = bitrate + params['dst' ] = dst + params['src' ] = src + params['ob_id' ] = ob_id + params['flow_id'] = flow_id + params['bidir' ] = bidir tasks_scheduler = TasksScheduler(self.service_handler_factory) diff --git a/src/service/service/service_handlers/oc/OCServiceHandler.py b/src/service/service/service_handlers/oc/OCServiceHandler.py index 89946130c..55d703c03 100644 --- a/src/service/service/service_handlers/oc/OCServiceHandler.py +++ b/src/service/service/service_handlers/oc/OCServiceHandler.py @@ -175,7 +175,6 @@ class OCServiceHandler(_ServiceHandler): except Exception as e: # pylint: disable=broad-except LOGGER.exception('Unable to DeleteEndpoint({:s})'.format(str(endpoint))) results.append(e) - LOGGER.info(f"delete_endpoints_flows-> {flows}") for device_uuid, dev_flows in flows.items(): try: channel_indexes= [] diff --git a/src/service/service/service_handlers/oc/OCTools.py b/src/service/service/service_handlers/oc/OCTools.py index b7ed410c7..a0b9fc348 100644 --- a/src/service/service/service_handlers/oc/OCTools.py +++ b/src/service/service/service_handlers/oc/OCTools.py @@ -398,9 +398,6 @@ def conn_flows(endpoints : List[Tuple[str, str, Optional[str]]], bidir : int): - - - def endpoints_to_flows(endpoints : List[Tuple[str, str, Optional[str]]], bidir : int, is_ob: bool)->Dict: if is_ob: entries = ob_flows(endpoints, bidir) diff --git a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py index a71761fb4..8a991326c 100644 --- a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py +++ b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py @@ -54,32 +54,17 @@ class Task_OpticalConnectionConfigure(_Task): service_handler=None service_handlers = self._task_executor.get_service_handlers(connection, service, **service_handler_settings) for _, (handler, connection_devices) in service_handlers.items(): - logging.info(f"type_servicehandler {type(handler)}") if service_handler is None : service_handler=handler else : if type(handler) != type(service_handler) : raise Exception("Devices are not compatible ") connection_uuid = connection.connection_id.connection_uuid.uuid - logging.info(f"connection-> uuid{connection_uuid}") endpointids_to_set = endpointids_to_raw(connection.path_hops_endpoint_ids) - logging.info(f" _endpointids_to_set-> {endpointids_to_set}") errors = list() connection_uuid = connection.connection_id.connection_uuid.uuid results_setendpoint = service_handler.SetEndpoint(endpointids_to_set, connection_uuid=connection_uuid) - - # for _, (service_handler, connection_devices) in service_handlers.items(): - # logging.info(f" connection_devices-> {connection_devices}") - # _endpointids_to_set = [ - # (device_uuid, endpoint_uuid, topology_uuid) - # for device_uuid, endpoint_uuid, topology_uuid in endpointids_to_set - # if device_uuid in connection_devices - # ] - # logging.info(f" results_endpointids_to_set-> {_endpointids_to_set}") - # results_setendpoint = service_handler.SetEndpoint( - # _endpointids_to_set, connection_uuid=connection_uuid - # ) errors.extend(check_errors_setendpoint(endpointids_to_set, results_setendpoint)) if len(errors) > 0: -- GitLab From f43880590484182340eb603277384d7481f26b0c Mon Sep 17 00:00:00 2001 From: ismaeel Date: Wed, 22 Oct 2025 06:25:06 +0000 Subject: [PATCH 2/2] pre merge code cleaning --- .../models/OpticalConfig/OpticalBandModel.py | 26 +++++++++---------- src/opticalcontroller/OpticalController.py | 6 ----- src/opticalcontroller/tools.py | 3 --- src/webui/service/optical_link/routes.py | 2 -- 4 files changed, 12 insertions(+), 25 deletions(-) diff --git a/src/context/service/database/models/OpticalConfig/OpticalBandModel.py b/src/context/service/database/models/OpticalConfig/OpticalBandModel.py index 2ff4ae97f..735869738 100644 --- a/src/context/service/database/models/OpticalConfig/OpticalBandModel.py +++ b/src/context/service/database/models/OpticalConfig/OpticalBandModel.py @@ -25,26 +25,24 @@ class OpticalBandModel(_Base): __tablename__ = 'opticalband' ob_uuid = Column(UUID(as_uuid=False), primary_key=True) - connection_uuid = Column(ForeignKey('connection.connection_uuid', ondelete='CASCADE'), nullable=False) - channel_uuid = Column(ForeignKey('channel.channel_uuid', ondelete='CASCADE'), nullable=False) - created_at = Column(DateTime, nullable=False) - - - ob_channel = relationship('ChannelModel') # back_populates='connections' - ob_connection = relationship('ConnectionModel') # lazy='joined', back_populates='connection' + connection_uuid = Column(ForeignKey('connection.connection_uuid', ondelete='CASCADE'), nullable=False) + channel_uuid = Column(ForeignKey('channel.channel_uuid', ondelete='CASCADE'), nullable=False) + created_at = Column(DateTime, nullable=False) + ob_channel = relationship('ChannelModel') # back_populates='connections' + ob_connection = relationship('ConnectionModel') # lazy='joined', back_populates='connection' def dump_id(self) -> Dict: return {'opticalband_uuid': {'uuid': self.ob_uuid}} def dump(self) -> Dict: return { - 'opticalband_id' : self.dump_id(), - 'channel_id' : self.ob_channel.dump_id(), - 'connection_id' : self.ob_connection.dump_id(), - 'service_id' : self.ob_connection.connection_service.dump_id(), - 'channel': json.dumps(self.ob_channel.dump()), - 'connection':self.ob_connection.dump(), - "service" : self.ob_connection.connection_service.dump() + 'opticalband_id': self.dump_id(), + 'channel_id' : self.ob_channel.dump_id(), + 'connection_id' : self.ob_connection.dump_id(), + 'service_id' : self.ob_connection.connection_service.dump_id(), + 'channel' : json.dumps(self.ob_channel.dump()), + 'connection' : self.ob_connection.dump(), + "service" : self.ob_connection.connection_service.dump() } diff --git a/src/opticalcontroller/OpticalController.py b/src/opticalcontroller/OpticalController.py index 075de5956..018ccadfa 100644 --- a/src/opticalcontroller/OpticalController.py +++ b/src/opticalcontroller/OpticalController.py @@ -125,10 +125,7 @@ class DelFLightpath(Resource): ob_id = flow["parent_opt_band"] flow['is_active']=False if flow is not None: - - bidir = flow["bidir"] - if bidir: match2 = flow["src"] == dst and flow["dst"] == src and flow["bitrate"] == bitrate if match1 or match2: @@ -187,10 +184,7 @@ class DelOpticalBand(Resource): ob_id=o_band_id if flow is not None: - - bidir = flow["bidir"] - if bidir: match1 = flow["src"] == src and flow["dst"] == dst and flow["bitrate"] match2 = flow["src"] == dst and flow["dst"] == src and flow["bitrate"] diff --git a/src/opticalcontroller/tools.py b/src/opticalcontroller/tools.py index 651a73de7..db6f89fbc 100644 --- a/src/opticalcontroller/tools.py +++ b/src/opticalcontroller/tools.py @@ -271,13 +271,10 @@ def handle_slot (slot_field, slot): def update_optical_band (optical_bands,optical_band_id,band,link): key_list = optical_bands[optical_band_id][band].keys() corrected_slots=optical_bands[optical_band_id][band] - print(f"band {band}") - print(f"corrected_slots_before {corrected_slots}") if (len(key_list) < 20): corrected_slots=correct_slot(optical_bands[optical_band_id][band]) fib={} - print(f"corrected_slots_after {corrected_slots}") fib['c_slots']=link['optical_details']['c_slots'] fib['l_slots']=link['optical_details']['l_slots'] fib['s_slots']=link['optical_details']['s_slots'] diff --git a/src/webui/service/optical_link/routes.py b/src/webui/service/optical_link/routes.py index e7c20e6e0..80cdd73b2 100644 --- a/src/webui/service/optical_link/routes.py +++ b/src/webui/service/optical_link/routes.py @@ -150,8 +150,6 @@ def get_optical_links (): sorted_dict = {key: v[key] for key in sorted_keys} link['optical_details'][k] = sorted_dict - - logging.info(f"reply {optical_links}") except Exception as e : logging.info(f"error {e}") finally: -- GitLab