Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mapping Provider
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
geant-swd
Next Generation Map
Mapping Provider
Merge requests
!1
Feature/get graph data from gap
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/get graph data from gap
feature/get-graph-data-from-gap
into
master
Overview
0
Commits
7
Pipelines
0
Changes
11
Merged
Neda Moeini
requested to merge
feature/get-graph-data-from-gap
into
master
1 month ago
Overview
0
Commits
7
Pipelines
0
Changes
11
Expand
0
0
Merge request reports
Compare
master
version 5
34d60e17
1 month ago
version 4
9c801a1b
1 month ago
version 3
c41975a4
1 month ago
version 2
320c9f0c
1 month ago
version 1
7f35eef1
1 month ago
master (base)
and
latest version
latest version
4762a014
7 commits,
1 month ago
version 5
34d60e17
6 commits,
1 month ago
version 4
9c801a1b
5 commits,
1 month ago
version 3
c41975a4
4 commits,
1 month ago
version 2
320c9f0c
3 commits,
1 month ago
version 1
7f35eef1
2 commits,
1 month ago
11 files
+
273
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
mapping_provider/api/network_graph.py
0 → 100644
+
12
−
0
Options
from
fastapi
import
APIRouter
from
mapping_provider.dependencies
import
config_dep
from
mapping_provider.services.gap
import
load_routers
,
load_trunks
router
=
APIRouter
()
@router.get
(
"
/network-graph
"
)
def
get_network_graph
(
config
:
config_dep
)
->
dict
[
str
,
list
[
str
]
|
list
[
list
[
str
]]]:
"""
Network graph endpoint.
"""
return
{
"
routers
"
:
load_routers
(
config
),
"
trunks
"
:
load_trunks
(
config
)}
Loading