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

PathComp component - Frontend:

- Corrected get_link_from_endpoint in KDisjointPath algorithm
parent b0bbbacd
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!78Fix CI/CD pipeline
......@@ -19,7 +19,7 @@ from common.proto.pathcomp_pb2 import Algorithm_KDisjointPath, Algorithm_KShorte
from common.tools.grpc.Tools import grpc_message_to_json_string
from pathcomp.frontend.service.algorithms.tools.ComputeSubServices import convert_explicit_path_hops_to_connections
from pathcomp.frontend.service.algorithms.tools.EroPathToHops import eropath_to_hops
from ._Algorithm import _Algorithm
from ._Algorithm import _Algorithm, SRC_END
from .KShortestPathAlgorithm import KShortestPathAlgorithm
Service_Id = Tuple[str, str] # (context_uuid, service_uuid)
......@@ -100,7 +100,7 @@ class KDisjointPathAlgorithm(_Algorithm):
def get_link_from_endpoint(self, endpoint : Dict) -> Tuple[Dict, Link]:
device_uuid = endpoint['device_id']
endpoint_uuid = endpoint['endpoint_uuid']
item = self.endpoint_to_link_dict.get((device_uuid, endpoint_uuid))
item = self.endpoint_to_link_dict.get((device_uuid, endpoint_uuid, SRC_END))
if item is None:
MSG = 'Link for Endpoint({:s}, {:s}) not found'
self.logger.warning(MSG.format(device_uuid, endpoint_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