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
bb127b5f
Commit
bb127b5f
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
document IP trunk product block
parent
6fd4db49
No related branches found
No related tags found
1 merge request
!49
Feature/document iptrunk block
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/products/product_blocks/iptrunk.py
+26
-3
26 additions, 3 deletions
gso/products/product_blocks/iptrunk.py
with
26 additions
and
3 deletions
gso/products/product_blocks/iptrunk.py
+
26
−
3
View file @
bb127b5f
"""
IP trunk product block that has all parameters of a subscription throughout its lifecycle.
"""
import
ipaddress
import
ipaddress
from
typing
import
Optional
from
typing
import
Optional
...
@@ -9,13 +11,15 @@ from gso.products.product_blocks.device import DeviceBlock, DeviceBlockInactive,
...
@@ -9,13 +11,15 @@ from gso.products.product_blocks.device import DeviceBlock, DeviceBlockInactive,
class
IptrunkType
(
strEnum
):
class
IptrunkType
(
strEnum
):
D
ark_fiber
=
"
Dark_fiber
"
D
ARK_FIBER
=
"
Dark_fiber
"
L
eased
=
"
Leased
"
L
EASED
=
"
Leased
"
class
IptrunkBlockInactive
(
class
IptrunkBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
IptrunkBlock
"
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
IptrunkBlock
"
):
):
"""
A trunk that
'
s currently inactive, see {class}`IptrunkBlock`.
"""
geant_s_sid
:
Optional
[
str
]
=
None
geant_s_sid
:
Optional
[
str
]
=
None
iptrunk_description
:
Optional
[
str
]
=
None
iptrunk_description
:
Optional
[
str
]
=
None
iptrunk_type
:
Optional
[
IptrunkType
]
=
None
iptrunk_type
:
Optional
[
IptrunkType
]
=
None
...
@@ -39,6 +43,8 @@ class IptrunkBlockInactive(
...
@@ -39,6 +43,8 @@ class IptrunkBlockInactive(
class
IptrunkBlockProvisioning
(
IptrunkBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
class
IptrunkBlockProvisioning
(
IptrunkBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
"""
A trunk that
'
s currently being provisioned, see {class}`IptrunkBlock`.
"""
geant_s_sid
:
Optional
[
str
]
=
None
geant_s_sid
:
Optional
[
str
]
=
None
iptrunk_description
:
Optional
[
str
]
=
None
iptrunk_description
:
Optional
[
str
]
=
None
iptrunk_type
:
Optional
[
IptrunkType
]
=
None
iptrunk_type
:
Optional
[
IptrunkType
]
=
None
...
@@ -62,22 +68,39 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive, lifecycle=[SubscriptionLife
...
@@ -62,22 +68,39 @@ class IptrunkBlockProvisioning(IptrunkBlockInactive, lifecycle=[SubscriptionLife
class
IptrunkBlock
(
IptrunkBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
class
IptrunkBlock
(
IptrunkBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
A trunk that
'
s currently deployed in the network.
"""
geant_s_sid
:
str
geant_s_sid
:
str
"""
GÉANT service ID associated with this trunk.
"""
iptrunk_description
:
str
iptrunk_description
:
str
"""
A human-readable description of this trunk.
"""
iptrunk_type
:
IptrunkType
iptrunk_type
:
IptrunkType
iptrunk_speed
:
str
"""
The type of trunk, can be either dark fibre or leased capacity.
"""
iptrunk_speed
:
str
# FIXME: should be of PhyPortCapacity type
"""
The speed of the trunk, measured per interface associated with it.
"""
iptrunk_minimum_links
:
int
iptrunk_minimum_links
:
int
"""
The minimum amount of links the trunk should consist of.
"""
iptrunk_isis_metric
:
int
iptrunk_isis_metric
:
int
"""
The {term}`IS-IS` metric of this link
"""
iptrunk_ipv4_network
:
ipaddress
.
IPv4Network
iptrunk_ipv4_network
:
ipaddress
.
IPv4Network
"""
The IPv4 network used for this trunk.
"""
iptrunk_ipv6_network
:
ipaddress
.
IPv6Network
iptrunk_ipv6_network
:
ipaddress
.
IPv6Network
"""
The IPv6 network used for this trunk.
"""
#
#
iptrunk_sideA_node
:
DeviceBlock
iptrunk_sideA_node
:
DeviceBlock
"""
The router that hosts the A side of the trunk.
"""
iptrunk_sideA_ae_iface
:
str
iptrunk_sideA_ae_iface
:
str
"""
The name of the interface on which the trunk connects.
"""
iptrunk_sideA_ae_geant_a_sid
:
str
iptrunk_sideA_ae_geant_a_sid
:
str
"""
The service ID of the interface.
"""
iptrunk_sideA_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_sideA_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
"""
A list of interface members that make up the aggregated Ethernet interface.
"""
iptrunk_sideA_ae_members_description
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_sideA_ae_members_description
:
list
[
str
]
=
Field
(
default_factory
=
list
)
"""
The list of descriptions that describe the list of interface members.
"""
#
#
iptrunk_sideB_node
:
DeviceBlock
iptrunk_sideB_node
:
DeviceBlock
"""
The router that hosts the B side of the trunk. It possesses the same attributes as the A-side, including the
interfaces and its descriptions.
"""
iptrunk_sideB_ae_iface
:
str
iptrunk_sideB_ae_iface
:
str
iptrunk_sideB_ae_geant_a_sid
:
str
iptrunk_sideB_ae_geant_a_sid
:
str
iptrunk_sideB_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_sideB_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
...
...
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