Commit bd90b6ed authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent f1f7ce2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -66,8 +66,8 @@ class DltRecordSender:
        for dlt_record_uuid in self.dlt_record_uuids:
        for dlt_record_uuid in self.dlt_record_uuids:
            topology_id,dlt_record = self.dlt_record_uuid_to_data[dlt_record_uuid]
            topology_id,dlt_record = self.dlt_record_uuid_to_data[dlt_record_uuid]
            if isinstance(dlt_record, Device):
            if isinstance(dlt_record, Device):
                device_id = self.context_client.SetDevice(dlt_record) # Se retriggerea el Evento.
                #device_id = self.context_client.SetDevice(dlt_record) # Se retriggerea el Evento.
                LOGGER.debug('DEVICE_ID: ({:s})'.format(grpc_message_to_json_string(device_id)))
                #LOGGER.debug('DEVICE_ID: ({:s})'.format(grpc_message_to_json_string(device_id)))
                if self.dlt_connector_client is None: continue
                if self.dlt_connector_client is None: continue
                dlt_device_id = DltDeviceId()
                dlt_device_id = DltDeviceId()
                dlt_device_id.topology_id.CopyFrom(topology_id)     # pylint: disable=no-member
                dlt_device_id.topology_id.CopyFrom(topology_id)     # pylint: disable=no-member
+2 −2
Original line number Original line Diff line number Diff line
@@ -118,7 +118,7 @@ class DLTRecorder(threading.Thread):
        if ((context_uuid == DEFAULT_CONTEXT_NAME) or (context_name == DEFAULT_CONTEXT_NAME)) and \
        if ((context_uuid == DEFAULT_CONTEXT_NAME) or (context_name == DEFAULT_CONTEXT_NAME)) and \
                (topology_uuid not in topology_uuids) and (topology_name not in topology_uuids):
                (topology_uuid not in topology_uuids) and (topology_name not in topology_uuids):
            for device in topology_details.devices:
            for device in topology_details.devices:
                LOGGER.debug('DEVICE INFO({:s})'.format(grpc_message_to_json_string(device)))
                #LOGGER.debug('DEVICE INFO({:s})'.format(grpc_message_to_json_string(device)))
                dlt_record_sender.add_device(topology_id, device)
                dlt_record_sender.add_device(topology_id, device)


            for link in topology_details.links:
            for link in topology_details.links:
@@ -150,7 +150,7 @@ class DLTRecorder(threading.Thread):
        device = self.context_client.GetDevice(device_id)
        device = self.context_client.GetDevice(device_id)
        topology_id = self.find_topology_for_device(device_id)
        topology_id = self.find_topology_for_device(device_id)
        if topology_id:
        if topology_id:
            LOGGER.debug('DEVICE_INFO({:s}), DEVICE_ID ({:s})'.format(grpc_message_to_json_string(device), grpc_message_to_json_string(device_id)))
            LOGGER.debug('DEVICE_INFO({:s}), DEVICE_ID ({:s})'.format(str(device.device_id.device_uuid.uuid), grpc_message_to_json_string(device_id)))


            dlt_record_sender.add_device(topology_id, device)
            dlt_record_sender.add_device(topology_id, device)
        else:
        else: