Skip to content
Snippets Groups Projects
Commit 8ac8442a authored by Neda Moeini's avatar Neda Moeini
Browse files

Updated docstr.

parent 48a24740
No related branches found
No related tags found
1 merge request!231Added more steps in router termination including:
Pipeline #87979 passed
......@@ -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 []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment