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
Merge requests
!314
Feature/vrf
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/vrf
feature/vrf
into
develop
Overview
6
Commits
24
Pipelines
17
Changes
1
All threads resolved!
Hide all comments
Merged
Neda Moeini
requested to merge
feature/vrf
into
develop
3 months ago
Overview
6
Commits
24
Pipelines
17
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
940aa3a5
Prev
Next
Show latest version
1 file
+
40
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
940aa3a5
Improved VRF product block domain model.
· 940aa3a5
Neda Moeini
authored
3 months ago
gso/products/product_blocks/
l3_core_
vrf.py
→
gso/products/product_blocks/vrf.py
+
40
−
0
Options
"""
Product blocks for
Layer 3 Core VRF products
.
"""
"""
Product blocks for
VRF
.
"""
from
orchestrator.domain.base
import
ProductBlockModel
from
orchestrator.types
import
SubscriptionLifecycle
from
pydantic
import
Field
from
gso.products.product_blocks.nren_l3_core_service
import
(
NRENAccessPort
,
NRENAccessPortInactive
,
NRENAccessPortProvisioning
,
)
from
gso.products.product_blocks.router
import
RouterBlock
,
RouterBlockInactive
,
RouterBlockProvisioning
class
L3Core
VRFBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
L3Core
VRFBlock
"
class
VRFBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
VRFBlock
"
):
"""
An inactive
Layer 3 Core VRF service
subscription. See :class:`
L3Core
VRFBlock`.
"""
"""
An inactive
:term:`VRF`
subscription. See :class:`VRFBlock`.
"""
vrf_
ap
_list
:
list
[
NRENAccessPortInactive
]
=
Field
(
default_factory
=
list
)
vrf_
router
_list
:
list
[
RouterBlockInactive
]
vrf_name
:
str
route_distinguisher
:
str
route_target
:
str
class
L3CoreVRFBlockProvisioning
(
L3CoreVRFBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]
class
VRFBlockProvisioning
(
VRFBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]
):
"""
A provisioning
Layer 3 Core VRF service
subscription. See :class:`
L3Core
VRFBlock`.
"""
"""
A provisioning
:term:`VRF`
subscription. See :class:`VRFBlock`.
"""
vrf_
ap
_list
:
list
[
NRENAccessPortProvisioning
]
# type: ignore[assignment
]
vrf_
router
_list
:
list
[
RouterBlockProvisioning
]
vrf_name
:
str
route_distinguisher
:
str
route_target
:
str
class
L3Core
VRFBlock
(
L3Core
VRFBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
Represents an active
Layer 3 Core VRF service
subscription block.
"""
class
VRFBlock
(
VRFBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
Represents an active
:term:`VRF`
subscription block.
"""
#: List of
Access Points associated with this VRF.
nren_ap
_list
:
list
[
NRENAccessPort
]
# type: ignore[assignment
]
#: List of
VRF routers
vrf_router
_list
:
list
[
RouterBlock
]
#: Unique name identifying this VRF.
vrf_name
:
str
#: Route Distinguisher (RD) ensuring unique route identification within this VRF.
Loading