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

fix a bug in SnmpCoordinate, pass linting pipeline

parent 311e6eda
Branches
Tags
1 merge request!64new IP trunk migration
......@@ -23,10 +23,10 @@ class SiteTier(strEnum):
class SnmpCoordinate(ConstrainedStr):
"""An {term}`SNMP` coordinate, modeled as a constrained string.
The coordinate must match the format of `1.35`, `-12.3456`, etc.
The coordinate must match the format of `1.35`, `-123.456`, etc.
"""
regex = re.compile(r"^-?\d{1,2}\.\d+$")
regex = re.compile(r"^-?\d{1,3}\.\d+$")
class SiteBlockInactive(ProductBlockModel, lifecycle=[SubscriptionLifecycle.INITIAL], product_block_name="SiteBlock"):
......
......@@ -2,7 +2,8 @@ from logging import getLogger
from orchestrator import step
from orchestrator.types import State
from gso.products import Iptrunk
from gso.products.product_types.iptrunk import Iptrunk
logger = getLogger(__name__)
......
......@@ -12,8 +12,10 @@ from orchestrator.types import FormGenerator, State, UUIDstr
from orchestrator.workflow import StepList, done, init, inputstep
from orchestrator.workflows.steps import resync, store_process_subscription, unsync
from orchestrator.workflows.utils import wrap_modify_initial_input_form
from gso.products import Iptrunk, Router
from pydantic import validator
from gso.products.product_types.iptrunk import Iptrunk
from gso.products.product_types.router import Router
from gso.services import provisioning_proxy
from gso.services.provisioning_proxy import pp_interaction
from gso.workflows.iptrunk import restore_isis_metric, set_isis_to_9000
......
......@@ -8,10 +8,10 @@ from orchestrator.types import FormGenerator, State, SubscriptionLifecycle, UUID
from orchestrator.workflow import StepList, done, init, step, workflow
from orchestrator.workflows.steps import resync, set_status, store_process_subscription
from orchestrator.workflows.utils import wrap_create_initial_input_form
from gso.products.product_blocks.site import SnmpCoordinate
from pydantic import validator
from gso.products.product_blocks import site as site_pb
from gso.products.product_blocks.site import SnmpCoordinate
from gso.products.product_types import site
from gso.workflows.utils import customer_selector
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment