From 456a70047298a816d8bc6e0500871d800fc9e768 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Tue, 3 Dec 2024 12:54:43 +0100
Subject: [PATCH] Update PE router list attribute in ibgp mesh update

---
 gso/workflows/router/update_ibgp_mesh.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gso/workflows/router/update_ibgp_mesh.py b/gso/workflows/router/update_ibgp_mesh.py
index 23379ba0..5469f781 100644
--- a/gso/workflows/router/update_ibgp_mesh.py
+++ b/gso/workflows/router/update_ibgp_mesh.py
@@ -125,7 +125,7 @@ def add_all_pe_to_p_dry(subscription: dict[str, Any]) -> LSOState:
     extra_vars = {
         "dry_run": True,
         "subscription": subscription,
-        "pe_router_list": generate_inventory_for_routers(RouterRole.PE),
+        "pe_router_list": generate_inventory_for_routers(RouterRole.PE)["all"]["hosts"],
         "verb": "add_pe_to_p",
     }
 
@@ -142,7 +142,7 @@ def add_all_pe_to_p_real(subscription: dict[str, Any], tt_number: str, process_i
     extra_vars = {
         "dry_run": False,
         "subscription": subscription,
-        "pe_router_list": generate_inventory_for_routers(RouterRole.PE),
+        "pe_router_list": generate_inventory_for_routers(RouterRole.PE)["all"]["hosts"],
         "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Update iBGP mesh",
         "verb": "add_pe_to_p",
     }
-- 
GitLab