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

PathComp component - Frontend:

- Added missing name-uuid mapping
parent f4ed75a8
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!71OFC'23 + IETF L2VPN Device Driver + Device Controllers + Multiple small improvements
...@@ -64,6 +64,7 @@ class _Algorithm: ...@@ -64,6 +64,7 @@ class _Algorithm:
_device_uuid = grpc_device.device_id.device_uuid.uuid _device_uuid = grpc_device.device_id.device_uuid.uuid
_device_name = grpc_device.name _device_name = grpc_device.name
self.device_name_mapping[_device_name] = _device_uuid self.device_name_mapping[_device_name] = _device_uuid
self.device_name_mapping[_device_uuid] = _device_uuid
device_endpoint_dict : Dict[str, Tuple[Dict, EndPointId]] = dict() device_endpoint_dict : Dict[str, Tuple[Dict, EndPointId]] = dict()
for json_endpoint,grpc_endpoint in zip(json_device['device_endpoints'], grpc_device.device_endpoints): for json_endpoint,grpc_endpoint in zip(json_device['device_endpoints'], grpc_device.device_endpoints):
...@@ -75,6 +76,8 @@ class _Algorithm: ...@@ -75,6 +76,8 @@ class _Algorithm:
_endpoint_name = grpc_endpoint.name _endpoint_name = grpc_endpoint.name
self.endpoint_name_mapping[(_device_uuid, _endpoint_name)] = _endpoint_uuid self.endpoint_name_mapping[(_device_uuid, _endpoint_name)] = _endpoint_uuid
self.endpoint_name_mapping[(_device_name, _endpoint_name)] = _endpoint_uuid self.endpoint_name_mapping[(_device_name, _endpoint_name)] = _endpoint_uuid
self.endpoint_name_mapping[(_device_uuid, _endpoint_uuid)] = _endpoint_uuid
self.endpoint_name_mapping[(_device_name, _endpoint_uuid)] = _endpoint_uuid
self.endpoint_dict[device_uuid] = device_endpoint_dict self.endpoint_dict[device_uuid] = device_endpoint_dict
......
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