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
!419
Draft: Resolve
NAT-1150
"Feature/ model commecial peers"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Resolve
NAT-1150
"Feature/ model commecial peers"
feature/NAT-1150-model-commecial-peers
into
develop
Overview
1
Commits
36
Pipelines
40
Changes
1
Open
Neda Moeini
requested to merge
feature/NAT-1150-model-commecial-peers
into
develop
1 month ago
Overview
1
Commits
36
Pipelines
40
Changes
1
Expand
Closes
NAT-1150
0
0
Merge request reports
Viewing commit
68899d73
Show latest version
1 file
+
7
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
68899d73
Add prefix limit to Commercial Peer models
· 68899d73
Neda Moeini
authored
1 month ago
gso/products/product_blocks/commercial_peer.py
+
7
−
3
Options
@@ -2,6 +2,7 @@
from
orchestrator.domain.base
import
ProductBlockModel
from
orchestrator.types
import
SubscriptionLifecycle
from
pydantic
import
NonNegativeInt
from
pydantic_forms.types
import
strEnum
from
gso.products.product_blocks.bgp_session
import
BGPSession
,
BGPSessionInactive
,
BGPSessionProvisioning
@@ -52,16 +53,19 @@ class CommercialPeerBlockInactive(
):
"""
A Commercial Peer that
'
s not yet provisioned. See ``CommercialPeerBlock``.
"""
peering_connection
:
list
[
PeeringConnectionInactive
]
peering_connection
:
list
[
PeeringConnectionInactive
]
# type: ignore[assignment]
prefix_limit
:
NonNegativeInt
|
None
=
None
class
CommercialPeerBlockProvisioning
(
CommercialPeerBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
"""
An CommercialPeer that
'
s being provisioned. See ``CommercialPeerBlock``.
"""
peering_connection
:
list
[
PeeringConnectionProvisioning
]
peering_connection
:
list
[
PeeringConnectionProvisioning
]
# type: ignore[assignment]
prefix_limit
:
NonNegativeInt
|
None
=
None
class
CommercialPeerBlock
(
CommercialPeerBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
An Internet Exchange Port that
'
s active.
"""
peering_connection
:
list
[
PeeringConnection
]
peering_connection
:
list
[
PeeringConnection
]
# type: ignore[assignment]
prefix_limit
:
NonNegativeInt
|
None
=
None
Loading