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
4c25cfbe
Commit
4c25cfbe
authored
3 years ago
by
Sam Roberts
Browse files
Options
Downloads
Patches
Plain Diff
rename tag
parent
557a6f34
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory_provider/routes/poller.py
+2
-2
2 additions, 2 deletions
inventory_provider/routes/poller.py
test/test_general_poller_routes.py
+1
-1
1 addition, 1 deletion
test/test_general_poller_routes.py
with
3 additions
and
3 deletions
inventory_provider/routes/poller.py
+
2
−
2
View file @
4c25cfbe
...
@@ -105,7 +105,7 @@ class BRIAN_DASHBOARDS(Enum):
...
@@ -105,7 +105,7 @@ class BRIAN_DASHBOARDS(Enum):
IAS_CUSTOMER
=
auto
()
IAS_CUSTOMER
=
auto
()
IAS_UPSTREAM
=
auto
()
IAS_UPSTREAM
=
auto
()
GWS_PHY_UPSTREAM
=
auto
()
GWS_PHY_UPSTREAM
=
auto
()
TENG_GBS
=
auto
()
GBS_10G
=
auto
()
# aggregate dashboards
# aggregate dashboards
CLS_PEERS
=
auto
()
CLS_PEERS
=
auto
()
...
@@ -434,7 +434,7 @@ def _get_dashboards(interface):
...
@@ -434,7 +434,7 @@ def _get_dashboards(interface):
if
'
SRV_IAS UPSTREAM
'
in
description
:
if
'
SRV_IAS UPSTREAM
'
in
description
:
yield
BRIAN_DASHBOARDS
.
IAS_UPSTREAM
yield
BRIAN_DASHBOARDS
.
IAS_UPSTREAM
if
'
SRV_10GGBS CUSTOMER
'
in
description
:
if
'
SRV_10GGBS CUSTOMER
'
in
description
:
yield
BRIAN_DASHBOARDS
.
TENG_GBS
yield
BRIAN_DASHBOARDS
.
GBS_10G
if
re
.
match
(
'
(SRV_GLOBAL|SRV_L3VPN|LAG) RE_INTERCONNECT
'
,
description
):
if
re
.
match
(
'
(SRV_GLOBAL|SRV_L3VPN|LAG) RE_INTERCONNECT
'
,
description
):
yield
BRIAN_DASHBOARDS
.
RE_PEER
yield
BRIAN_DASHBOARDS
.
RE_PEER
if
re
.
match
(
r
'
(PHY|LAG|SRV_GLOBAL) CUSTOMER
'
,
description
):
if
re
.
match
(
r
'
(PHY|LAG|SRV_GLOBAL) CUSTOMER
'
,
description
):
...
...
This diff is collapsed.
Click to expand it.
test/test_general_poller_routes.py
+
1
−
1
View file @
4c25cfbe
...
@@ -300,7 +300,7 @@ def test_fw_counter_bytes_oid_values(customer, interface_name, expected_oid):
...
@@ -300,7 +300,7 @@ def test_fw_counter_bytes_oid_values(customer, interface_name, expected_oid):
(
'
SRV_L3VPN RE_INTERCONNECT REDCLARA #REDCLARA-MAD-COPERNICUS | ASN27750
'
,
(
'
SRV_L3VPN RE_INTERCONNECT REDCLARA #REDCLARA-MAD-COPERNICUS | ASN27750
'
,
[
'
LHCONE
'
,
'
COPERNICUS
'
,
'
RE_PEER
'
]),
[
'
LHCONE
'
,
'
COPERNICUS
'
,
'
RE_PEER
'
]),
(
'
SRV_10GGBS CUSTOMER REDIRIS CERN #gen-mad-LHC-CERN-REDIRIS-07003 |
'
,
(
'
SRV_10GGBS CUSTOMER REDIRIS CERN #gen-mad-LHC-CERN-REDIRIS-07003 |
'
,
[
'
TENG_GBS
'
])
[
'
GBS_10G
'
])
])
])
def
test_interface_dashboard_mapping
(
description
,
expected_dashboards
):
def
test_interface_dashboard_mapping
(
description
,
expected_dashboards
):
interface
=
{
interface
=
{
...
...
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