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

Less tox errors - not finished yet

parent 5ce8fd9d
Branches
Tags
1 merge request!8Feature/iptrunks prototype
......@@ -14,8 +14,8 @@ class IptrunkType(strEnum):
class IptrunkBlockInactive(ProductBlockModel,
lifecycle=[SubscriptionLifecycle.INITIAL],
product_block_name="IptrunkBlock"):
lifecycle=[SubscriptionLifecycle.INITIAL],
product_block_name="IptrunkBlock"):
geant_s_sid: Optional[str] = None
iptrunk_description: Optional[str] = None
iptrunk_type: Optional[IptrunkType] = None
......@@ -38,7 +38,7 @@ class IptrunkBlockInactive(ProductBlockModel,
class IptrunkBlockProvisioning(IptrunkBlockInactive,
lifecycle=[SubscriptionLifecycle.PROVISIONING]):
lifecycle=[SubscriptionLifecycle.PROVISIONING]):
geant_s_sid: Optional[str] = None
iptrunk_description: Optional[str] = None
iptrunk_type: Optional[IptrunkType] = None
......@@ -61,7 +61,7 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive,
class IptrunkBlock(IptrunkBlockProvisioning,
lifecycle=[SubscriptionLifecycle.ACTIVE]):
lifecycle=[SubscriptionLifecycle.ACTIVE]):
geant_s_sid: str
iptrunk_description: str
iptrunk_type: IptrunkType
......
......@@ -3,7 +3,7 @@ import logging
from gso.products.product_types.device \
import DeviceBlock
from gso import settings
import requests
# import requests
logger = logging.getLogger(__name__)
......
from orchestrator.workflows import LazyWorkflowInstance
LazyWorkflowInstance("gso.workflows.device.create_device", "create_device")
LazyWorkflowInstance("gso.workflows.device.terminate_device", "terminate_device")
LazyWorkflowInstance("gso.workflows.device.terminate_device",
"terminate_device")
LazyWorkflowInstance("gso.workflows.device.get_facts", "get_facts")
LazyWorkflowInstance("gso.workflows.iptrunk.create_iptrunk", "create_iptrunk")
......@@ -172,7 +172,7 @@ def provision_device_real(
# out_splitted = out.splitlines()
#
# return {"real_run_output": out_splitted, "return_code": r.rc}
#provisioning_proxy.provision_node(
# provisioning_proxy.provision_node(
# node_subscription_params=subscription)
# TODO: figure out what to return when we are suspending & waiting
# for the provisioning-proxy to call back
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment