Skip to content
Snippets Groups Projects
Verified Commit f6caeb05 authored by Neda Moeini's avatar Neda Moeini Committed by Karel van Klink
Browse files

Add promote P to PE workflow.

parent e3d42a78
No related branches found
No related tags found
No related merge requests found
"""Add promote P to PE workflows..
Revision ID: 88dd5a44150d
Revises: 41fd1ae225aq
Create Date: 2024-08-07 13:54:44.362435
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '88dd5a44150d'
down_revision = '41fd1ae225aq'
branch_labels = None
depends_on = None
from orchestrator.migrations.helpers import create_workflow, delete_workflow
new_workflows = [
{
"name": "promote_p_to_pe",
"target": "MODIFY",
"description": "Promote P router to PE router",
"product_type": "Router"
}
]
def upgrade() -> None:
conn = op.get_bind()
for workflow in new_workflows:
create_workflow(conn, workflow)
def downgrade() -> None:
conn = op.get_bind()
for workflow in new_workflows:
delete_workflow(conn, workflow["name"])
...@@ -44,6 +44,7 @@ LazyWorkflowInstance("gso.workflows.router.modify_connection_strategy", "modify_ ...@@ -44,6 +44,7 @@ LazyWorkflowInstance("gso.workflows.router.modify_connection_strategy", "modify_
LazyWorkflowInstance("gso.workflows.router.import_router", "import_router") LazyWorkflowInstance("gso.workflows.router.import_router", "import_router")
LazyWorkflowInstance("gso.workflows.router.create_imported_router", "create_imported_router") LazyWorkflowInstance("gso.workflows.router.create_imported_router", "create_imported_router")
LazyWorkflowInstance("gso.workflows.router.validate_router", "validate_router") LazyWorkflowInstance("gso.workflows.router.validate_router", "validate_router")
LazyWorkflowInstance("gso.workflows.router.promote_p_to_pe", "promote_p_to_pe")
# Site workflows # Site workflows
LazyWorkflowInstance("gso.workflows.site.create_site", "create_site") LazyWorkflowInstance("gso.workflows.site.create_site", "create_site")
......
This diff is collapsed.
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