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
!64
new IP trunk migration
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
new IP trunk migration
feature/ip-trunk-migration
into
develop
Overview
0
Commits
18
Pipelines
2
Changes
4
Merged
Karel van Klink
requested to merge
feature/ip-trunk-migration
into
develop
1 year ago
Overview
0
Commits
18
Pipelines
2
Changes
4
Expand
Add IP trunk migration, including a refactor of the IP trunk model
0
0
Merge request reports
Viewing commit
bbbd0402
Prev
Next
Show latest version
4 files
+
15
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
bbbd0402
extract PortNumber to shared package
· bbbd0402
Karel van Klink
authored
1 year ago
gso/products/product_blocks/router.py
+
1
−
11
Options
@@ -4,9 +4,9 @@ from typing import Optional
from
orchestrator.domain.base
import
ProductBlockModel
from
orchestrator.types
import
SubscriptionLifecycle
,
strEnum
from
pydantic
import
ConstrainedInt
from
gso.products.product_blocks.site
import
SiteBlock
,
SiteBlockInactive
,
SiteBlockProvisioning
from
gso.products.shared
import
PortNumber
class
RouterVendor
(
strEnum
):
@@ -24,16 +24,6 @@ class RouterRole(strEnum):
AMT
=
"
amt
"
class
PortNumber
(
ConstrainedInt
):
"""
Constrained integer for valid port numbers.
The range from 49152 to 65535 is marked as ephemeral, and can therefore not be selected for permanent allocation.
"""
gt
=
0
le
=
49151
class
RouterBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
RouterBlock
"
):
Loading