Skip to content
Snippets Groups Projects
Commit 3958df4d authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Add necessary step and playbook call to execute checks after installing base config

parent bf2feedf
No related branches found
No related tags found
1 merge request!133Add checks to baseconfig
Pipeline #85225 failed
......@@ -88,3 +88,19 @@ def set_isis_to_90000(subscription: Iptrunk, process_id: UUIDstr, callback_route
"subscription": subscription,
"old_isis_metric": old_isis_metric,
}
@step("[CHECK] Run show commands after base config install")
def run_checks_after_base_config(
subscription: dict[str, Any],
callback_route: str
) -> None:
"""Workflow step for running show commands after installing base config"""
execute_playbook(
playbook_name="base_config_checks.yaml",
callback_route=callback_route,
inventory = subscription["router"]["router_fqdn"]
)
return {
"subscription": subscription,
}
\ No newline at end of file
......@@ -24,7 +24,7 @@ from gso.services.crm import customer_selector
from gso.services.netbox_client import NetboxClient
from gso.services.provisioning_proxy import pp_interaction
from gso.utils.helpers import iso_from_ipv4
from gso.utils.workflow_steps import deploy_base_config_dry, deploy_base_config_real
from gso.utils.workflow_steps import deploy_base_config_dry, deploy_base_config_real, run_checks_after_base_config
def _site_selector() -> Choice:
......@@ -169,6 +169,7 @@ def create_router() -> StepList:
>> pp_interaction(deploy_base_config_real)
>> verify_ipam_loopback
>> router_is_nokia(create_netbox_device)
>> pp_interaction(run_checks_after_base_config)
>> set_status(SubscriptionLifecycle.ACTIVE)
>> resync
>> done
......
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