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
940aa3a5
Commit
940aa3a5
authored
4 months ago
by
Neda Moeini
Browse files
Options
Downloads
Patches
Plain Diff
Improved VRF product block domain model.
parent
432a89fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!314
Feature/vrf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/products/product_blocks/vrf.py
+40
-0
40 additions, 0 deletions
gso/products/product_blocks/vrf.py
with
40 additions
and
0 deletions
gso/products/product_blocks/
l3_core_
vrf.py
→
gso/products/product_blocks/vrf.py
+
40
−
0
View file @
940aa3a5
"""
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.
...
...
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