From 0f7d232d68a92b02007d6039d9c518361feb1300 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Fri, 12 Jul 2024 15:20:45 +0200 Subject: [PATCH] Fixed the migration down revision after rebasing with develop and update the code base to make the linter happy. --- .../2023-09-22_6c986f219e3f_add_router_validation_task.py | 5 ++--- .../2024-06-19_fvd7mfcfbs1q_update_modify_isis_workflow.py | 2 +- gso/utils/workflow_steps.py | 2 +- gso/workflows/router/validate_router.py | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/gso/migrations/versions/2023-09-22_6c986f219e3f_add_router_validation_task.py b/gso/migrations/versions/2023-09-22_6c986f219e3f_add_router_validation_task.py index 54a07175d..266db20ae 100644 --- a/gso/migrations/versions/2023-09-22_6c986f219e3f_add_router_validation_task.py +++ b/gso/migrations/versions/2023-09-22_6c986f219e3f_add_router_validation_task.py @@ -1,16 +1,15 @@ """Add router validation task. Revision ID: 6c986f219e3f -Revises: 1ec810b289c0 +Revises: f6a38f9e9e18 Create Date: 2023-09-22 17:13:01.223133 """ -import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '6c986f219e3f' -down_revision = '1ec810b289c0' +down_revision = 'f6a38f9e9e18' branch_labels = None depends_on = None diff --git a/gso/migrations/versions/2024-06-19_fvd7mfcfbs1q_update_modify_isis_workflow.py b/gso/migrations/versions/2024-06-19_fvd7mfcfbs1q_update_modify_isis_workflow.py index 96a189577..d38ddcb47 100644 --- a/gso/migrations/versions/2024-06-19_fvd7mfcfbs1q_update_modify_isis_workflow.py +++ b/gso/migrations/versions/2024-06-19_fvd7mfcfbs1q_update_modify_isis_workflow.py @@ -1,7 +1,7 @@ """ Modify ISIS metric workflow description Revision ID: fvd7mfcfbs1q -Revises: +Revises: 1ec810b289c0 Create Date: 2024-06-19 11:17:08.539591 """ diff --git a/gso/utils/workflow_steps.py b/gso/utils/workflow_steps.py index f62558247..176b83258 100644 --- a/gso/utils/workflow_steps.py +++ b/gso/utils/workflow_steps.py @@ -124,7 +124,7 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator: @step("[DRY RUN] Add all PE routers to P router iBGP group") -def add_all_pe_to_p_dry(subscription: dict[str, Any], callback_route: str, process_id: UUIDstr) -> None: +def add_all_pe_to_p_dry(subscription: dict[str, Any], callback_route: str) -> None: """Perform a dry run of adding the list of all PE routers to the new P router.""" extra_vars = { "dry_run": True, diff --git a/gso/workflows/router/validate_router.py b/gso/workflows/router/validate_router.py index 81ceee92a..f5f078db0 100644 --- a/gso/workflows/router/validate_router.py +++ b/gso/workflows/router/validate_router.py @@ -12,7 +12,6 @@ from orchestrator.workflows.utils import wrap_modify_initial_input_form from pydantic_forms.types import State, UUIDstr from gso.products.product_types.router import Router -from gso.services import infoblox from gso.services import infoblox, lso_client, subscriptions from gso.services.librenms_client import LibreNMSClient from gso.services.lso_client import anonymous_lso_interaction, execute_playbook @@ -53,7 +52,7 @@ def check_netbox_entry_exists(subscription: Router) -> None: @step("Verify BGP configuration on P router") -def verify_p_ibgp(subscription: dict[str, Any], callback_route: str, process_id: UUIDstr) -> None: +def verify_p_ibgp(subscription: dict[str, Any], callback_route: str) -> None: """Perform a dry run of adding the list of all PE routers to the new P router.""" extra_vars = { "dry_run": True, -- GitLab