Skip to content
Snippets Groups Projects

LSO steps added to the L2c workflows

Merged Aleksandr Kurbatov requested to merge feature/l2c-lso-steps into develop
Files
21
"""Add L2Circuit migration workflow.
Revision ID: 3541c7e57284
Revises: b14f71db2b58
Create Date: 2025-03-27 15:35:39.351436
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '3541c7e57284'
down_revision = 'b14f71db2b58'
branch_labels = None
depends_on = None
from orchestrator.migrations.helpers import create_workflow, delete_workflow
new_workflows = [
{
"name": "migrate_layer_2_circuit",
"target": "MODIFY",
"description": "Migrate Layer 2 Circuit",
"product_type": "Layer2Circuit"
}
]
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"])
Loading