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
3a90b9ce
Commit
3a90b9ce
authored
1 year ago
by
Karel van Klink
Committed by
Neda Moeini
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
update iptrunk service model
parent
162dc793
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!83
Clean up the repo a bit, and add some unit tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/products/product_blocks/iptrunk.py
+21
-6
21 additions, 6 deletions
gso/products/product_blocks/iptrunk.py
with
21 additions
and
6 deletions
gso/products/product_blocks/iptrunk.py
+
21
−
6
View file @
3a90b9ce
...
@@ -20,6 +20,24 @@ class IptrunkType(strEnum):
...
@@ -20,6 +20,24 @@ class IptrunkType(strEnum):
T
=
TypeVar
(
"
T
"
,
covariant
=
True
)
T
=
TypeVar
(
"
T
"
,
covariant
=
True
)
class
IptrunkInterfaceBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
IptrunkInterfaceBlock
"
):
# TODO: add validation for interface names, making the type a constrained string
interface_name
:
str
|
None
=
None
interface_description
:
str
|
None
=
None
class
IptrunkInterfaceBlockProvisioning
(
IptrunkInterfaceBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
interface_name
:
str
interface_description
:
str
class
IptrunkInterfaceBlock
(
IptrunkInterfaceBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
interface_name
:
str
interface_description
:
str
class
IptrunkSides
(
UniqueConstrainedList
[
T
]):
# type: ignore[type-var]
class
IptrunkSides
(
UniqueConstrainedList
[
T
]):
# type: ignore[type-var]
min_items
=
2
min_items
=
2
max_items
=
2
max_items
=
2
...
@@ -31,24 +49,21 @@ class IptrunkSideBlockInactive(
...
@@ -31,24 +49,21 @@ class IptrunkSideBlockInactive(
iptrunk_side_node
:
RouterBlockInactive
iptrunk_side_node
:
RouterBlockInactive
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members
:
list
[
IptrunkInterfaceBlockInactive
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members_description
:
list
[
str
]
=
Field
(
default_factory
=
list
)
class
IptrunkSideBlockProvisioning
(
IptrunkSideBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
class
IptrunkSideBlockProvisioning
(
IptrunkSideBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
iptrunk_side_node
:
RouterBlockProvisioning
iptrunk_side_node
:
RouterBlockProvisioning
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members
:
list
[
IptrunkInterfaceBlockProvisioning
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members_description
:
list
[
str
]
=
Field
(
default_factory
=
list
)
class
IptrunkSideBlock
(
IptrunkSideBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
class
IptrunkSideBlock
(
IptrunkSideBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
iptrunk_side_node
:
RouterBlock
iptrunk_side_node
:
RouterBlock
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_iface
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_geant_a_sid
:
str
|
None
=
None
iptrunk_side_ae_members
:
list
[
str
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members
:
list
[
IptrunkInterfaceBlock
]
=
Field
(
default_factory
=
list
)
iptrunk_side_ae_members_description
:
list
[
str
]
=
Field
(
default_factory
=
list
)
class
IptrunkBlockInactive
(
class
IptrunkBlockInactive
(
...
...
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