Commit 20a810f3 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component:

- Replaced algorithm in gRPC method RecomputeConnections to use KSP
parent edbb006a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -252,7 +252,10 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
        # pylint: disable=no-member
        pathcomp_request = PathCompRequest()
        pathcomp_request.services.append(updated_service_with_uuids)
        pathcomp_request.k_disjoint_path.num_disjoint = 100
        #pathcomp_request.k_disjoint_path.num_disjoint = 100
        pathcomp_request.k_shortest_path.k_inspection = 100
        pathcomp_request.k_shortest_path.k_return = 3

        LOGGER.debug('pathcomp_request={:s}'.format(grpc_message_to_json_string(pathcomp_request)))
        pathcomp = PathCompClient()
        pathcomp_reply = pathcomp.Compute(pathcomp_request)