Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Resource Manager
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
Resource Manager
Commits
ec538f50
Commit
ec538f50
authored
2 years ago
by
JORGE SASIAIN
Browse files
Options
Downloads
Patches
Plain Diff
NAT-53: move code from db/__init__.py to db/router.py
parent
9c1c52e0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
resource_management/__init__.py
+0
-8
0 additions, 8 deletions
resource_management/__init__.py
resource_management/db/router.py
+6
-1
6 additions, 1 deletion
resource_management/db/router.py
resource_management/hardware/__init.py__
+0
-0
0 additions, 0 deletions
resource_management/hardware/__init.py__
with
6 additions
and
9 deletions
resource_management/__init__.py
+
0
−
8
View file @
ec538f50
import
logging
from
hardware.router
import
load_router
from
db.router
import
import_routers
logger
=
logging
.
getLogger
(
__name__
)
fqdns
=
[
"
core1.spa.private
"
,
"
core2.spa.private
"
,
"
core3.spa.private
"
]
routers
=
import_routers
(
fqdns
)
list
(
routers
)
This diff is collapsed.
Click to expand it.
resource_management/db/router.py
+
6
−
1
View file @
ec538f50
...
...
@@ -13,4 +13,9 @@ def import_routers(fqdns):
for
fqdn
in
fqdns
:
router
=
load_router
(
fqdn
)
print
(
router
)
yield
router
\ No newline at end of file
yield
router
if
__name__
==
"
__main__
"
:
fqdns
=
[
"
core1.spa.private
"
,
"
core2.spa.private
"
,
"
core3.spa.private
"
]
routers
=
import_routers
(
fqdns
)
list
(
routers
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resource_management/hardware/__init.py__
0 → 100644
+
0
−
0
View file @
ec538f50
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