Skip to content
Snippets Groups Projects
Commit b14d198a authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Add workflow for modify IPtrunk

parent 0c053585
No related branches found
No related tags found
4 merge requests!35Feature/nat178 modify capacity iptrunk,!34Feature/nat178 modify capacity iptrunk,!33Feature/nat178 modify capacity iptrunk,!32Feature/nat178 modify capacity iptrunk
"""add Iptrunk modify workflow.
Revision ID: e57ebfade80b
Revises: 7694b98571f8
Create Date: 2023-06-26 12:20:16.828055
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'e57ebfade80b'
down_revision = '7694b98571f8'
branch_labels = None
depends_on = None
from orchestrator.migrations.helpers import create_workflow, delete_workflow
new_workflows = [
{
"name": "modify_generic",
"target": "MODIFY",
"description": "Modify IP trunk",
"product_type": "Iptrunk"
}
]
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"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment