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
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
9d9b8f23
Verified
Commit
9d9b8f23
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
update formatting of create_site
parent
cf0a30dc
No related branches found
Branches containing commit
Tags
2.13
Tags containing commit
1 merge request
!12
Add sites, and add integration of IPtrunks and routers with LSO deployment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/site/create_site.py
+10
-11
10 additions, 11 deletions
gso/workflows/site/create_site.py
with
10 additions
and
11 deletions
gso/workflows/site/create_site.py
+
10
−
11
View file @
9d9b8f23
...
...
@@ -2,16 +2,15 @@ from uuid import uuid4
from
orchestrator.forms
import
FormPage
from
orchestrator.targets
import
Target
# from orchestrator.workflow import inputstep
# from orchestrator.forms.validators import Accept
from
orchestrator.types
import
FormGenerator
,
State
from
orchestrator.types
import
SubscriptionLifecycle
,
UUIDstr
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
gso.products.product_types
import
site
from
gso.products.product_blocks
import
site
as
site_pb
from
gso.products.product_types
import
site
def
initial_input_form_generator
(
product_name
:
str
)
->
FormGenerator
:
...
...
@@ -79,16 +78,16 @@ def initialize_subscription(
@workflow
(
"
Create Site
"
,
initial_input_form
=
wrap_create_initial_input_form
(
initial_input_form_generator
),
initial_input_form_generator
),
target
=
Target
.
CREATE
,
)
def
create_site
():
return
(
init
>>
create_subscription
>>
store_process_subscription
(
Target
.
CREATE
)
>>
initialize_subscription
>>
set_status
(
SubscriptionLifecycle
.
ACTIVE
)
>>
resync
>>
done
init
>>
create_subscription
>>
store_process_subscription
(
Target
.
CREATE
)
>>
initialize_subscription
>>
set_status
(
SubscriptionLifecycle
.
ACTIVE
)
>>
resync
>>
done
)
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