Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-dashboard-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
Show more breadcrumbs
geant-swd
brian
brian-dashboard-manager
Commits
e44d90e4
Commit
e44d90e4
authored
2 years ago
by
Robert Latta
Browse files
Options
Downloads
Patches
Plain Diff
handled missing dashboards_info data
parent
cfff9f10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
brian_dashboard_manager/grafana/provision.py
+5
-0
5 additions, 0 deletions
brian_dashboard_manager/grafana/provision.py
with
5 additions
and
0 deletions
brian_dashboard_manager/grafana/provision.py
+
5
−
0
View file @
e44d90e4
...
...
@@ -291,6 +291,11 @@ def _provision_interfaces(config, org_config, ds_name, token):
desc
=
interface
[
'
description
'
].
lower
()
lab
=
'
lab.office
'
in
interface
[
'
router
'
].
lower
()
to_exclude
=
any
(
nren
.
lower
()
in
desc
for
nren
in
excluded_nrens
)
if
not
(
to_exclude
or
lab
):
if
'
dashboards_info
'
not
in
interface
:
to_exclude
=
True
logger
.
info
(
f
'
No
"
dashboards_info
"
for
'
f
'
{
interface
[
"
router
"
]
}
:
{
interface
[
"
name
"
]
}
'
)
return
not
(
to_exclude
or
lab
)
relevant_interfaces
=
list
(
filter
(
excluded
,
interfaces
))
...
...
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