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
9d2ac637
Commit
9d2ac637
authored
2 years ago
by
Hakan Calim
Browse files
Options
Downloads
Patches
Plain Diff
NAT-66-cli: add test file to parse JSON of line card and ports
parent
d4694c5d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_parse_router.py
+10
-0
10 additions, 0 deletions
test/test_parse_router.py
with
10 additions
and
0 deletions
test/test_parse_router.py
0 → 100644
+
10
−
0
View file @
9d2ac637
from
resource_management.db
import
model
# Parse line card and ports from one router
def
test_parse_router
(
load_router
):
fqdn
=
"
core1.router
"
line_card
,
ports
=
load_router
for
key
,
value
in
line_card
.
items
():
print
(
key
,
value
)
\ No newline at end of file
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