Skip to content
Snippets Groups Projects
Commit bd90b6ed authored by Javier Diaz's avatar Javier Diaz
Browse files

debugging

parent f1f7ce2f
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!259Resolve "(CTTC) Replace DLT Gateway functionality with an opensource and Hyper Ledger v2.4+ compliant version"
...@@ -66,8 +66,8 @@ class DltRecordSender: ...@@ -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
......
...@@ -118,7 +118,7 @@ class DLTRecorder(threading.Thread): ...@@ -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): ...@@ -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:
......
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