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

validate_router: subscription serialization

json_dumps
parent 3179d91b
No related branches found
No related tags found
No related merge requests found
"""Router validation workflow. Used in a nightly schedule."""
import json
from orchestrator.targets import Target
from orchestrator.utils.errors import ProcessFailureError
from orchestrator.utils.json import json_dumps
from orchestrator.workflow import StepList, begin, conditional, done, step, workflow
from orchestrator.workflows.steps import resync, store_process_subscription, unsync
from orchestrator.workflows.utils import wrap_modify_initial_input_form
......@@ -67,7 +70,7 @@ def verify_base_config(subscription: Router, callback_route: str) -> None:
callback_route=callback_route,
inventory=subscription.router.router_fqdn,
extra_vars={
"wfo_router_json": subscription,
"wfo_router_json": json.loads(json_dumps(subscription)),
"verb": "deploy",
"dry_run": "true",
"is_verification_workflow": "true",
......@@ -113,7 +116,7 @@ def validate_router() -> StepList:
>> unsync
>> verify_ipam_loopback
>> check_netbox_entry_exists
>> check_librenms_entry_exists
# >> check_librenms_entry_exists
>> anonymous_lso_interaction(verify_base_config)
>> anonymous_lso_interaction(validate_ibgp_mesh_config)
>> resync
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment