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
5a8e3936
Commit
5a8e3936
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
add documentation to site product block
parent
e7fa4b49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!54
Feature/documentation
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/source/glossary.md
+8
-0
8 additions, 0 deletions
docs/source/glossary.md
docs/vale/.vale.ini
+1
-0
1 addition, 0 deletions
docs/vale/.vale.ini
gso/products/product_blocks/site.py
+25
-0
25 additions, 0 deletions
gso/products/product_blocks/site.py
with
34 additions
and
0 deletions
docs/source/glossary.md
+
8
−
0
View file @
5a8e3936
# Glossary of terms
{.glossary}
BGP
: Border Gateway Protocol: a path vector routing protocol described in
<a
href=
"https://datatracker.ietf.org/doc/html/rfc4271"
target=
"_blank"
>
RFC 4271
</a>
.
CRUD
: Create, Read, Update, Delete
...
...
@@ -26,5 +30,9 @@ LSO
NET
: Network Entity Title: used for {term}
`IS-IS`
routing.
SNMP
: Simple Network Management Protocol: a protocol that's used for gathering data, widely used for network management and
monitoring.
WFO
:
<a
href=
"https://workfloworchestrator.org/"
target=
"_blank"
>
Workflow Orchestrator
</a>
This diff is collapsed.
Click to expand it.
docs/vale/.vale.ini
+
1
−
0
View file @
5a8e3936
...
...
@@ -27,6 +27,7 @@ TokenIgnores = ({term}), (:param \S+:), (:type \S+:)
[*/glossary.md]
; Ignore acronyms being undefined in the file that defines all acronyms by definition.
Microsoft.Acronyms
=
NO
Microsoft.Passive
=
NO
[formats]
py
=
md
This diff is collapsed.
Click to expand it.
gso/products/product_blocks/site.py
+
25
−
0
View file @
5a8e3936
"""
The product block that describes a site subscription.
"""
from
typing
import
Optional
from
orchestrator.domain.base
import
ProductBlockModel
...
...
@@ -5,6 +7,12 @@ from orchestrator.types import SubscriptionLifecycle, strEnum
class
SiteTier
(
strEnum
):
"""
The tier of a site, ranging from 1 to 4.
A lower value generally corresponds to a larger amount of installed equipment, and a higher cardinality of the
connectivity to and from a site.
"""
TIER1
=
1
TIER2
=
2
TIER3
=
3
...
...
@@ -12,6 +20,8 @@ class SiteTier(strEnum):
class
SiteBlockInactive
(
ProductBlockModel
,
lifecycle
=
[
SubscriptionLifecycle
.
INITIAL
],
product_block_name
=
"
SiteBlock
"
):
"""
A site that
'
s currently inactive, see {class}`SiteBlock`.
"""
site_name
:
Optional
[
str
]
=
None
site_city
:
Optional
[
str
]
=
None
site_country
:
Optional
[
str
]
=
None
...
...
@@ -24,6 +34,8 @@ class SiteBlockInactive(ProductBlockModel, lifecycle=[SubscriptionLifecycle.INIT
class
SiteBlockProvisioning
(
SiteBlockInactive
,
lifecycle
=
[
SubscriptionLifecycle
.
PROVISIONING
]):
"""
A site that
'
s currently being provisioned, see {class}`SiteBlock`.
"""
site_name
:
Optional
[
str
]
=
None
site_city
:
Optional
[
str
]
=
None
site_country
:
Optional
[
str
]
=
None
...
...
@@ -36,12 +48,25 @@ class SiteBlockProvisioning(SiteBlockInactive, lifecycle=[SubscriptionLifecycle.
class
SiteBlock
(
SiteBlockProvisioning
,
lifecycle
=
[
SubscriptionLifecycle
.
ACTIVE
]):
"""
A site that
'
s currently available for devices and services to be hosted at.
"""
site_name
:
str
"""
The name of the site, that will dictate part of the {term}`FQDN` of devices that are hosted at this site. For
example: `device.X.Y.geant.net`, where X denotes the name of the site.
"""
site_city
:
str
"""
The city at which the site is located.
"""
site_country
:
str
"""
The country in which the site is located.
"""
site_country_code
:
str
"""
The code of the corresponding country. This is also used for the {term}`FQDN`, following the example given for
the site name, the country code would end up in the Y position.
"""
site_latitude
:
float
"""
The latitude of the site, used for {term}`SNMP` purposes.
"""
site_longitude
:
float
"""
Similar to the latitude, the longitude of a site.
"""
site_internal_id
:
int
"""
The internal ID used within GÉANT to denote a site.
"""
site_bgp_community_id
:
int
"""
The {term}`BGP` community ID of a site, used to advertise routes learned at this site.
"""
site_tier
:
SiteTier
"""
The tier of a site, as described in {class}`SiteTier`.
"""
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