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

Try to fix device vendor

parent 24d6f058
No related branches found
No related tags found
1 merge request!5Device workflows
...@@ -11,20 +11,22 @@ from orchestrator.workflow import done, init, step, workflow ...@@ -11,20 +11,22 @@ from orchestrator.workflow import done, init, step, workflow
from orchestrator.workflows.steps import resync, set_status from orchestrator.workflows.steps import resync, set_status
from orchestrator.workflows.steps import store_process_subscription from orchestrator.workflows.steps import store_process_subscription
from orchestrator.workflows.utils import wrap_create_initial_input_form from orchestrator.workflows.utils import wrap_create_initial_input_form
from products.product_types.device import DeviceInactive, DeviceProvisioning from products.product_types.device import DeviceInactive, DeviceProvisioning
from products.product_types.device import DeviceVendor
import ipaddress
def initial_input_form_generator(product_name: str) -> FormGenerator: def initial_input_form_generator(product_name: str) -> FormGenerator:
class CreateUserForm(FormPage): class CreateDeviceForm(FormPage):
class Config: class Config:
title = product_name title = product_name
fqdn: str fqdn: str
ts_address: str ts_address: ipaddress.IPv4Address
ts_port: int ts_port: int
device_vendor: DeviceVendor
user_input = yield CreateUserForm user_input = yield CreateDeviceForm
return user_input.dict() return user_input.dict()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment