Skip to content
Snippets Groups Projects
Verified Commit 8b153ad4 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Update playbook verbs for pre- and post-deployment checks in P to PE promotion

parent fd2b3ef9
No related branches found
No related tags found
1 merge request!317Update playbook verbs for pre- and post-deployment checks in P to PE promotion
Pipeline #90711 passed
This commit is part of merge request !317. Comments created here will be created in the context of that merge request.
...@@ -60,14 +60,14 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: ...@@ -60,14 +60,14 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
return user_input.model_dump() | {"subscription": subscription} return user_input.model_dump() | {"subscription": subscription}
@step("Evacuate the router by setting isis_overload") @step("Run pre-deployment checks")
def set_isis_overload(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState: def run_pre_checks(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState:
"""Evacuate the router by setting isis overload.""" """Run pre-deployment checks."""
extra_vars = { extra_vars = {
"dry_run": False, "dry_run": False,
"subscription": subscription, "subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Set ISIS overload", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - pre-deployment checks",
"verb": "set_isis_overload", "verb": "pre_checks",
} }
return { return {
...@@ -199,14 +199,14 @@ def deploy_routing_instances_real(subscription: dict[str, Any], tt_number: str, ...@@ -199,14 +199,14 @@ def deploy_routing_instances_real(subscription: dict[str, Any], tt_number: str,
} }
@step("Remove ISIS overload") @step("Run post-deployment checks")
def remove_isis_overload(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState: def run_post_checks(subscription: dict[str, Any], tt_number: str, process_id: UUIDstr) -> LSOState:
"""Remove :term:`ISIS` overload.""" """Run post-deployment checks."""
extra_vars = { extra_vars = {
"dry_run": False, "dry_run": False,
"subscription": subscription, "subscription": subscription,
"commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Remove ISIS overload", "commit_comment": f"GSO_PROCESS_ID: {process_id} - TT_NUMBER: {tt_number} - Run post-deployment checks",
"verb": "remove_isis_overload", "verb": "post_checks",
} }
return { return {
...@@ -271,7 +271,7 @@ def promote_p_to_pe() -> StepList: ...@@ -271,7 +271,7 @@ def promote_p_to_pe() -> StepList:
begin begin
>> store_process_subscription(Target.MODIFY) >> store_process_subscription(Target.MODIFY)
>> unsync >> unsync
>> lso_interaction(set_isis_overload) >> lso_interaction(run_pre_checks)
>> lso_interaction(deploy_pe_base_config_dry) >> lso_interaction(deploy_pe_base_config_dry)
>> lso_interaction(deploy_pe_base_config_real) >> lso_interaction(deploy_pe_base_config_real)
>> prompt_insert_in_earl >> prompt_insert_in_earl
...@@ -294,7 +294,7 @@ def promote_p_to_pe() -> StepList: ...@@ -294,7 +294,7 @@ def promote_p_to_pe() -> StepList:
>> lso_interaction(add_pe_to_all_p_real) >> lso_interaction(add_pe_to_all_p_real)
>> lso_interaction(delete_default_routes_dry) >> lso_interaction(delete_default_routes_dry)
>> lso_interaction(delete_default_routes_real) >> lso_interaction(delete_default_routes_real)
>> lso_interaction(remove_isis_overload) >> lso_interaction(run_post_checks)
>> update_subscription_model >> update_subscription_model
>> resync >> resync
>> done >> done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment