From 20a810f3f66393290b12e93d8d44562da28e4620 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Thu, 18 May 2023 08:50:34 +0000
Subject: [PATCH] Service component:

- Replaced algorithm in gRPC method RecomputeConnections to use KSP
---
 src/service/service/ServiceServiceServicerImpl.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/service/service/ServiceServiceServicerImpl.py b/src/service/service/ServiceServiceServicerImpl.py
index b2c7d4203..e3c0e4e69 100644
--- a/src/service/service/ServiceServiceServicerImpl.py
+++ b/src/service/service/ServiceServiceServicerImpl.py
@@ -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)
-- 
GitLab