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

Allow more workflows to be executed on provisioning routers

parent 70deaffd
No related branches found
No related tags found
1 merge request!165router creation flow update
......@@ -36,6 +36,7 @@
}
},
"workflow": {
"activate_router": "Activate router",
"confirm_info": "Please verify this form looks correct.",
"deploy_twamp": "Deploy TWAMP",
"migrate_iptrunk": "Migrate IP Trunk",
......
"""Initialisation class that imports all workflows into :term:`GSO`."""
from orchestrator.services.subscriptions import WF_USABLE_MAP
from orchestrator.workflows import LazyWorkflowInstance
WF_USABLE_MAP.update({
"redeploy_base_config": ["provisioning", "active"],
"update_ibgp_mesh": ["provisioning", "active"],
"activate_router": ["provisioning"],
})
LazyWorkflowInstance("gso.workflows.iptrunk.create_iptrunk", "create_iptrunk")
LazyWorkflowInstance("gso.workflows.iptrunk.deploy_twamp", "deploy_twamp")
LazyWorkflowInstance("gso.workflows.iptrunk.modify_isis_metric", "modify_isis_metric")
......
......@@ -15,7 +15,7 @@ def _initial_input_form(subscription_id: UUIDstr) -> FormGenerator:
router = Router.from_subscription(subscription_id)
class ActivateRouterForm(FormPage):
info_label: Label = "promote?"
info_label: Label = "Start approval process for router activation." # noqa: ignore[assignment]
tt_number: str
user_input = yield ActivateRouterForm
......
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