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

Update validate_router with vrf_list

parent d137a52c
No related branches found
No related tags found
1 merge request!359Fix/nat 1009/validate router with vprn
Pipeline #91917 passed
......@@ -16,6 +16,7 @@ from gso.services.kentik_client import KentikClient
from gso.services.librenms_client import LibreNMSClient
from gso.services.lso_client import LSOState, anonymous_lso_interaction
from gso.services.netbox_client import NetboxClient
from gso.services.subscriptions import get_active_vrfs_linked_to_router
from gso.utils.helpers import generate_inventory_for_routers
from gso.utils.shared_enums import Vendor
......@@ -154,11 +155,13 @@ def check_kentik_entry_exists(subscription: Router) -> None:
@step("Check base config for drift")
def verify_base_config(subscription: dict[str, Any]) -> LSOState:
"""Workflow step for running a playbook that checks whether base config has drifted."""
vrf_list = get_active_vrfs_linked_to_router(str(subscription["subscription_id"]))
return {
"playbook_name": "gap_ansible/playbooks/base_config.yaml",
"inventory": {"all": {"hosts": {subscription["router"]["router_fqdn"]: None}}},
"extra_vars": {
"wfo_router_json": subscription,
"vrf_list": vrf_list,
"verb": "deploy",
"dry_run": "true",
"is_verification_workflow": "true",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment