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
68899d73
Commit
68899d73
authored
1 month ago
by
Neda Moeini
Browse files
Options
Downloads
Patches
Plain Diff
Add prefix limit to Commercial Peer models
parent
6be8e3c3
No related branches found
No related tags found
No related merge requests found
Pipeline
#94173
failed
1 month ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/products/product_blocks/commercial_peer.py
+7
-3
7 additions, 3 deletions
gso/products/product_blocks/commercial_peer.py
with
7 additions
and
3 deletions
gso/products/product_blocks/commercial_peer.py
+
7
−
3
View file @
68899d73
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
from
orchestrator.domain.base
import
ProductBlockModel
from
orchestrator.domain.base
import
ProductBlockModel
from
orchestrator.types
import
SubscriptionLifecycle
from
orchestrator.types
import
SubscriptionLifecycle
from
pydantic
import
NonNegativeInt
from
pydantic_forms.types
import
strEnum
from
pydantic_forms.types
import
strEnum
from
gso.products.product_blocks.bgp_session
import
BGPSession
,
BGPSessionInactive
,
BGPSessionProvisioning
from
gso.products.product_blocks.bgp_session
import
BGPSession
,
BGPSessionInactive
,
BGPSessionProvisioning
...
@@ -52,16 +53,19 @@ class CommercialPeerBlockInactive(
...
@@ -52,16 +53,19 @@ class CommercialPeerBlockInactive(
):
):
"""
A Commercial Peer that
'
s not yet provisioned. See ``CommercialPeerBlock``.
"""
"""
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
]):
class
CommercialPeerBlockProvisioning
(
CommercialPeerBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
"""
An CommercialPeer that
'
s being provisioned. See ``CommercialPeerBlock``.
"""
"""
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
]):
class
CommercialPeerBlock
(
CommercialPeerBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
An Internet Exchange Port that
'
s active.
"""
"""
An Internet Exchange Port that
'
s active.
"""
peering_connection
:
list
[
PeeringConnection
]
peering_connection
:
list
[
PeeringConnection
]
# type: ignore[assignment]
prefix_limit
:
NonNegativeInt
|
None
=
None
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