Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
d8b2d6aa
Commit
d8b2d6aa
authored
2 years ago
by
Simone Spinelli
Browse files
Options
Downloads
Patches
Plain Diff
Try to fix device vendor
parent
24d6f058
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5
Device workflows
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
geant_service_orchestrator/workflows/device/create_device.py
+6
-4
6 additions, 4 deletions
geant_service_orchestrator/workflows/device/create_device.py
with
6 additions
and
4 deletions
geant_service_orchestrator/workflows/device/create_device.py
+
6
−
4
View file @
d8b2d6aa
...
...
@@ -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
store_process_subscription
from
orchestrator.workflows.utils
import
wrap_create_initial_input_form
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
:
class
Create
User
Form
(
FormPage
):
class
Create
Device
Form
(
FormPage
):
class
Config
:
title
=
product_name
fqdn
:
str
ts_address
:
str
ts_address
:
ipaddress
.
IPv4Address
ts_port
:
int
device_vendor
:
DeviceVendor
user_input
=
yield
Create
User
Form
user_input
=
yield
Create
Device
Form
return
user_input
.
dict
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment