Skip to content
Snippets Groups Projects

Added more steps in router termination including:

Merged Neda Moeini requested to merge feature/NAT-578-update-ibgp-mesh-on-terminating-router into develop
All threads resolved!
+ 4
9
@@ -311,15 +311,10 @@ def generate_inventory_for_active_routers(
Contains all active routers of a specific role. Optionally, routers can be excluded from the inventory.
Args:
----
router_role (RouterRole): The role of the routers to include in the inventory.
exclude_routers (list): List of routers to exclude from the inventory.
Returns:
-------
dict[str, Any]: A dictionary representing the inventory of active routers.
:param RouterRole router_role: The role of the routers to include in the inventory.
:param list exclude_routers: List of routers to exclude from the inventory.
:return: A dictionary representing the inventory of active routers.
:rtype: dict[str, Any]
"""
all_routers = [Router.from_subscription(r["subscription_id"]) for r in get_active_router_subscriptions()]
exclude_routers = exclude_routers or []
Loading