Skip to content
Snippets Groups Projects
Commit 15c00654 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

`promote_p_to_pe`: `add_pe_to_all_p`

inventory: need to exclude this router from inventory generator, because
at this point in WF it is still `P` role.
parent 75db2b9d
No related branches found
No related tags found
1 merge request!263`promote_p_to_pe`: update in `add_all_p_to_pe`
Pipeline #88857 passed
...@@ -484,7 +484,7 @@ def add_all_p_to_pe_real( ...@@ -484,7 +484,7 @@ def add_all_p_to_pe_real(
) )
@step("[DRY RUN] Add PE to all P") @step("[DRY RUN] Add this new PE to all P")
def add_pe_to_all_p_dry(subscription: dict[str, Any], callback_route: str, tt_number: str, process_id: UUIDstr) -> None: def add_pe_to_all_p_dry(subscription: dict[str, Any], callback_route: str, tt_number: str, process_id: UUIDstr) -> None:
"""Perform a dry run of adding promoted router to all PE routers in iGEANT/iGEANT6.""" """Perform a dry run of adding promoted router to all PE routers in iGEANT/iGEANT6."""
extra_vars = { extra_vars = {
...@@ -498,12 +498,14 @@ def add_pe_to_all_p_dry(subscription: dict[str, Any], callback_route: str, tt_nu ...@@ -498,12 +498,14 @@ def add_pe_to_all_p_dry(subscription: dict[str, Any], callback_route: str, tt_nu
lso_client.execute_playbook( lso_client.execute_playbook(
playbook_name="update_ibgp_mesh.yaml", playbook_name="update_ibgp_mesh.yaml",
callback_route=callback_route, callback_route=callback_route,
inventory=generate_inventory_for_active_routers(RouterRole.P), inventory=generate_inventory_for_active_routers(
RouterRole.P, exclude_routers=[subscription["router"]["router_fqdn"]]
),
extra_vars=extra_vars, extra_vars=extra_vars,
) )
@step("[FOR REAL] Add PE to all P") @step("[FOR REAL] Add this new PE to all P")
def add_pe_to_all_p_real( def add_pe_to_all_p_real(
subscription: dict[str, Any], callback_route: str, tt_number: str, process_id: UUIDstr subscription: dict[str, Any], callback_route: str, tt_number: str, process_id: UUIDstr
) -> None: ) -> None:
...@@ -519,7 +521,9 @@ def add_pe_to_all_p_real( ...@@ -519,7 +521,9 @@ def add_pe_to_all_p_real(
lso_client.execute_playbook( lso_client.execute_playbook(
playbook_name="update_ibgp_mesh.yaml", playbook_name="update_ibgp_mesh.yaml",
callback_route=callback_route, callback_route=callback_route,
inventory=generate_inventory_for_active_routers(RouterRole.P), inventory=generate_inventory_for_active_routers(
RouterRole.P, exclude_routers=[subscription["router"]["router_fqdn"]]
),
extra_vars=extra_vars, extra_vars=extra_vars,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment