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
No related branches found
No related tags found
1 merge request!8Feature/iptrunks prototype
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
...@@ -14,8 +14,8 @@ class IptrunkType(strEnum): ...@@ -14,8 +14,8 @@ class IptrunkType(strEnum):
class IptrunkBlockInactive(ProductBlockModel, class IptrunkBlockInactive(ProductBlockModel,
lifecycle=[SubscriptionLifecycle.INITIAL], lifecycle=[SubscriptionLifecycle.INITIAL],
product_block_name="IptrunkBlock"): product_block_name="IptrunkBlock"):
geant_s_sid: Optional[str] = None geant_s_sid: Optional[str] = None
iptrunk_description: Optional[str] = None iptrunk_description: Optional[str] = None
iptrunk_type: Optional[IptrunkType] = None iptrunk_type: Optional[IptrunkType] = None
...@@ -38,7 +38,7 @@ class IptrunkBlockInactive(ProductBlockModel, ...@@ -38,7 +38,7 @@ class IptrunkBlockInactive(ProductBlockModel,
class IptrunkBlockProvisioning(IptrunkBlockInactive, class IptrunkBlockProvisioning(IptrunkBlockInactive,
lifecycle=[SubscriptionLifecycle.PROVISIONING]): lifecycle=[SubscriptionLifecycle.PROVISIONING]):
geant_s_sid: Optional[str] = None geant_s_sid: Optional[str] = None
iptrunk_description: Optional[str] = None iptrunk_description: Optional[str] = None
iptrunk_type: Optional[IptrunkType] = None iptrunk_type: Optional[IptrunkType] = None
...@@ -61,7 +61,7 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive, ...@@ -61,7 +61,7 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive,
class IptrunkBlock(IptrunkBlockProvisioning, class IptrunkBlock(IptrunkBlockProvisioning,
lifecycle=[SubscriptionLifecycle.ACTIVE]): lifecycle=[SubscriptionLifecycle.ACTIVE]):
geant_s_sid: str geant_s_sid: str
iptrunk_description: str iptrunk_description: str
iptrunk_type: IptrunkType iptrunk_type: IptrunkType
......
...@@ -3,7 +3,7 @@ import logging ...@@ -3,7 +3,7 @@ import logging
from gso.products.product_types.device \ from gso.products.product_types.device \
import DeviceBlock import DeviceBlock
from gso import settings from gso import settings
import requests # import requests
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
......
from orchestrator.workflows import LazyWorkflowInstance from orchestrator.workflows import LazyWorkflowInstance
LazyWorkflowInstance("gso.workflows.device.create_device", "create_device") 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.device.get_facts", "get_facts")
LazyWorkflowInstance("gso.workflows.iptrunk.create_iptrunk", "create_iptrunk") LazyWorkflowInstance("gso.workflows.iptrunk.create_iptrunk", "create_iptrunk")
...@@ -172,7 +172,7 @@ def provision_device_real( ...@@ -172,7 +172,7 @@ def provision_device_real(
# out_splitted = out.splitlines() # out_splitted = out.splitlines()
# #
# return {"real_run_output": out_splitted, "return_code": r.rc} # return {"real_run_output": out_splitted, "return_code": r.rc}
#provisioning_proxy.provision_node( # provisioning_proxy.provision_node(
# node_subscription_params=subscription) # node_subscription_params=subscription)
# TODO: figure out what to return when we are suspending & waiting # TODO: figure out what to return when we are suspending & waiting
# for the provisioning-proxy to call back # 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