From aa159a616a05e24480ab543ef421d57c66145c81 Mon Sep 17 00:00:00 2001
From: gifrerenom <lluis.gifre@cttc.es>
Date: Mon, 17 Mar 2025 07:51:46 +0000
Subject: [PATCH] E2E Orchestrator component:

- Corrected vlink optical service endpoints
---
 .../service/subscriptions/dispatchers/recommendation/Tools.py   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/e2e_orchestrator/service/subscriptions/dispatchers/recommendation/Tools.py b/src/e2e_orchestrator/service/subscriptions/dispatchers/recommendation/Tools.py
index 20665fcb5..12b2069cf 100644
--- a/src/e2e_orchestrator/service/subscriptions/dispatchers/recommendation/Tools.py
+++ b/src/e2e_orchestrator/service/subscriptions/dispatchers/recommendation/Tools.py
@@ -160,7 +160,7 @@ def compose_optical_service(vlink_request : Dict) -> Dict:
         ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY,
         context_id=json_context_id(DEFAULT_CONTEXT_NAME),
         endpoint_ids=[
-            optical_border_endpoint_ids[1], optical_border_endpoint_ids[2]
+            optical_border_endpoint_ids[0], optical_border_endpoint_ids[-1]
         ],
         constraints=constraints,
     )
-- 
GitLab