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

Less tox errors - not finished

parent 2e56aca8
No related branches found
No related tags found
1 merge request!8Feature/iptrunks prototype
from typing import Optional
from typing import List
from pydantic import Field
from orchestrator.domain.base import ProductBlockModel
......@@ -8,36 +7,12 @@ from gso.products.product_blocks.device \
import DeviceBlock, DeviceBlockInactive, DeviceBlockProvisioning
import ipaddress
# - id: GS-00012
# name: AMS2-LON-IPTRUNK-100G
# config:
# common:
# speed: '100'
# is_leased_line: false
# isis_metric: '9000'
# minimum_links: 1
# nodeA:
# name: rt2.ams.nl.geant.net
# ae_name: ae2
# ipv4_address: 62.40.98.164/31
# ipv6_address: 2001:798:cc::5/126
# members:
# - et-0/0/0
# port_id: GA-02036
# nodeB:
# name: mx1.lon.uk.geant.net
# ae_name: ae8
# ipv4_address: 62.40.98.165/31
# ipv6_address: 2001:798:cc::6/126
# members:
# - et-4/0/2
# port_id: GA-01834
class IptrunkType(strEnum):
Dark_fiber = "Dark_fiber"
Leased = "Leased"
class IptrunkBlockInactive(ProductBlockModel,
lifecycle=[SubscriptionLifecycle.INITIAL],
product_block_name="IptrunkBlock"):
......
......
from orchestrator.domain.base import SubscriptionModel
from orchestrator.types import SubscriptionLifecycle, strEnum
from orchestrator.types import SubscriptionLifecycle
from gso.products.product_blocks.iptrunk \
import IptrunkBlock, IptrunkBlockInactive, IptrunkBlockProvisioning
......
......
......@@ -12,7 +12,7 @@ from orchestrator.workflows.steps import resync, set_status
from orchestrator.workflows.steps import store_process_subscription
from orchestrator.workflows.utils import wrap_create_initial_input_form
from gso.products.product_types import device
from gso.services import ipam, provisioning_proxy
# from gso.services import ipam, provisioning_proxy
def initial_input_form_generator(product_name: str) -> FormGenerator:
......
......
import ipaddress
# import ipaddress
from uuid import uuid4
from orchestrator.forms import FormPage
......@@ -14,12 +14,11 @@ from orchestrator.workflows.utils import wrap_create_initial_input_form
from gso.products.product_types import iptrunk
from gso.products.product_blocks import iptrunk as iptrunk_pb
from gso.products.product_types.device import Device
from gso.services import ipam, provisioning_proxy
# from gso.services import ipam, provisioning_proxy
from gso.products.product_types import device
# from gso.products.product_types import device
from orchestrator.db.models import ProductTable, SubscriptionTable
from orchestrator.forms.validators import Choice, choice_list
from typing import List, Optional
def device_selector(choice_value: str) -> list:
......@@ -92,8 +91,6 @@ def get_info_from_ipam(subscription: iptrunk.IptrunkInactive) -> State:
return {"subscription": subscription}
@step("Initialize subscription")
def initialize_subscription(
subscription: iptrunk.IptrunkInactive,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment