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
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
95e5ab31
Commit
95e5ab31
authored
1 year ago
by
Karel van Klink
Committed by
Neda Moeini
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
move router vendor into product type
parent
dc9f3763
No related branches found
No related tags found
1 merge request
!105
Feature/remodel router product
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gso/products/product_blocks/router.py
+0
-11
0 additions, 11 deletions
gso/products/product_blocks/router.py
gso/products/product_types/router.py
+11
-0
11 additions, 0 deletions
gso/products/product_types/router.py
with
11 additions
and
11 deletions
gso/products/product_blocks/router.py
+
0
−
11
View file @
95e5ab31
...
...
@@ -13,13 +13,6 @@ from gso.products.product_blocks.site import (
)
class
RouterVendor
(
strEnum
):
"""
Enumerator for the different product vendors that are supported.
"""
JUNIPER
=
"
juniper
"
NOKIA
=
"
nokia
"
class
RouterRole
(
strEnum
):
"""
Enumerator for the different types of routers.
"""
...
...
@@ -54,7 +47,6 @@ class RouterBlockInactive(
router_si_ipv4_network
:
ipaddress
.
IPv4Network
|
None
=
None
router_ias_lt_ipv4_network
:
ipaddress
.
IPv4Network
|
None
=
None
router_ias_lt_ipv6_network
:
ipaddress
.
IPv6Network
|
None
=
None
router_vendor
:
RouterVendor
|
None
=
None
router_role
:
RouterRole
|
None
=
None
router_site
:
SiteBlockInactive
|
None
router_is_ias_connected
:
bool
|
None
=
None
...
...
@@ -77,7 +69,6 @@ class RouterBlockProvisioning(RouterBlockInactive, lifecycle=[SubscriptionLifecy
router_si_ipv4_network
:
ipaddress
.
IPv4Network
|
None
=
None
router_ias_lt_ipv4_network
:
ipaddress
.
IPv4Network
|
None
=
None
router_ias_lt_ipv6_network
:
ipaddress
.
IPv6Network
|
None
=
None
router_vendor
:
RouterVendor
|
None
=
None
router_role
:
RouterRole
|
None
=
None
router_site
:
SiteBlockProvisioning
|
None
router_is_ias_connected
:
bool
|
None
=
None
...
...
@@ -104,8 +95,6 @@ class RouterBlock(RouterBlockProvisioning, lifecycle=[SubscriptionLifecycle.ACTI
router_ias_lt_ipv4_network
:
ipaddress
.
IPv4Network
|
None
#: The :term:`IAS` LT IPv6 network of the router.
router_ias_lt_ipv6_network
:
ipaddress
.
IPv6Network
|
None
#: The vendor of the router, can be any of the values defined in :class:`RouterVendor`.
router_vendor
:
RouterVendor
#: The role of the router, which can be any of the values defined in :class:`RouterRole`.
router_role
:
RouterRole
#: The :class:`Site` that this router resides in. Both physically and computationally.
...
...
This diff is collapsed.
Click to expand it.
gso/products/product_types/router.py
+
11
−
0
View file @
95e5ab31
...
...
@@ -2,6 +2,7 @@
from
orchestrator.domain.base
import
SubscriptionModel
from
orchestrator.types
import
SubscriptionLifecycle
from
pydantic_forms.types
import
strEnum
from
gso.products.product_blocks.router
import
(
RouterBlock
,
...
...
@@ -10,19 +11,29 @@ from gso.products.product_blocks.router import (
)
class
RouterVendor
(
strEnum
):
"""
Enumerator for the different product vendors that are supported.
"""
JUNIPER
=
"
juniper
"
NOKIA
=
"
nokia
"
class
RouterInactive
(
SubscriptionModel
,
is_base
=
True
):
"""
An inactive router.
"""
vendor
:
RouterVendor
router
:
RouterBlockInactive
class
RouterProvisioning
(
RouterInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
"""
A router that is being provisioned.
"""
vendor
:
RouterVendor
router
:
RouterBlockProvisioning
class
Router
(
RouterProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
A router that is currently active.
"""
vendor
:
RouterVendor
router
:
RouterBlock
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