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
Merge requests
!12
Add sites, and add integration of IPtrunks and routers with LSO deployment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add sites, and add integration of IPtrunks and routers with LSO deployment
feature/new_device_model_and_sites_and_orgs
into
develop
Overview
0
Commits
25
Pipelines
0
Changes
1
Merged
Karel van Klink
requested to merge
feature/new_device_model_and_sites_and_orgs
into
develop
2 years ago
Overview
0
Commits
25
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
bab2fa1b
Prev
Next
Show latest version
1 file
+
11
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
bab2fa1b
update create IP trunk in pp
· bab2fa1b
Karel van Klink
authored
2 years ago
gso/services/provisioning_proxy.py
+
11
−
11
Options
@@ -36,29 +36,29 @@ def _send_request(endpoint: str, parameters: dict, process_id: UUIDstr):
raise
AssertionError
(
post_request
.
text
)
def
_provision_service
(
endpoint
:
str
,
def
provision_device
(
subscription
:
SubscriptionModel
,
process_id
:
UUIDstr
,
dry_run
:
bool
):
dry_run
:
bool
=
True
):
parameters
=
{
'
dry_run
'
:
dry_run
,
'
subscription
'
:
json
.
loads
(
json_dumps
(
subscription
))
}
_send_request
(
endpoint
,
parameters
,
process_id
)
def
provision_device
(
subscription
:
DeviceProvisioning
,
process_id
:
UUIDstr
,
dry_run
:
bool
=
True
):
_provision_service
(
'
device
'
,
subscription
,
process_id
,
dry_run
)
_send_request
(
'
device
'
,
parameters
,
process_id
)
def
provision_ip_trunk
(
subscription
:
IptrunkProvisioning
,
process_id
:
UUIDstr
,
dry_run
:
bool
=
True
):
_provision_service
(
'
ip_trunk
'
,
subscription
,
process_id
,
dry_run
)
parameters
=
{
'
subscription
'
:
json
.
loads
(
json_dumps
(
subscription
)),
'
dry_run
'
:
dry_run
,
'
verb
'
:
''
,
# FIXME
'
object
'
:
''
# FIXME
}
_send_request
(
'
ip_trunk
'
,
parameters
,
process_id
)
@inputstep
(
'
Await provisioning proxy results
'
,
assignee
=
Assignee
(
'
SYSTEM
'
))
Loading