Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-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
dashboardv3
inventory-provider
Commits
dd3065b3
Commit
dd3065b3
authored
5 years ago
by
Release Webservice
Browse files
Options
Downloads
Plain Diff
Finished release 0.21.
parents
cb815aae
03b13361
No related branches found
Branches containing commit
Tags
0.21
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog
+1
-0
1 addition, 0 deletions
changelog
inventory_provider/juniper.py
+15
-4
15 additions, 4 deletions
inventory_provider/juniper.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
17 additions
and
5 deletions
changelog
+
1
−
0
View file @
dd3065b3
...
...
@@ -35,3 +35,4 @@
improved address-to-interface lookup performance
added top-level services to responses
0.20: included both v4 & v6 addresses in peering info
0.21: added parsing of 'logical-systems' (DBOARD3-150)
This diff is collapsed.
Click to expand it.
inventory_provider/juniper.py
+
15
−
4
View file @
dd3065b3
...
...
@@ -228,13 +228,24 @@ def list_interfaces(netconf_config):
return
ifc
def
_units
(
base_name
,
node
):
for
u
in
node
.
xpath
(
'
./unit
'
):
unit_info
=
_ifc_info
(
u
)
unit_info
[
'
name
'
]
=
"
%s.%s
"
%
(
base_name
,
unit_info
[
'
name
'
])
yield
unit_info
for
i
in
netconf_config
.
xpath
(
'
//configuration/interfaces/interface
'
):
info
=
_ifc_info
(
i
)
yield
info
for
u
in
i
.
xpath
(
'
./unit
'
):
unit_info
=
_ifc_info
(
u
)
unit_info
[
'
name
'
]
=
"
%s.%s
"
%
(
info
[
'
name
'
],
unit_info
[
'
name
'
])
yield
unit_info
for
u
in
_units
(
info
[
'
name
'
],
i
):
yield
u
for
i
in
netconf_config
.
xpath
(
'
//configuration/logical-systems/interfaces/interface
'
):
name
=
i
.
find
(
'
name
'
)
assert
name
is
not
None
,
'
expected interface
''
name
''
child element
'
for
u
in
_units
(
name
.
text
,
i
):
yield
u
def
list_bgp_routes
(
netconf_config
):
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
dd3065b3
...
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup
(
name
=
'
inventory-provider
'
,
version
=
"
0.2
0
"
,
version
=
"
0.2
1
"
,
author
=
'
GEANT
'
,
author_email
=
'
swd@geant.org
'
,
description
=
'
Dashboard inventory provider
'
,
...
...
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