Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-polling-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-polling-manager
Commits
054bfd37
Commit
054bfd37
authored
1 year ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
8ca16b94
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
brian_polling_manager/interface_stats/cli.py
+0
-1
0 additions, 1 deletion
brian_polling_manager/interface_stats/cli.py
test/test_interface_stats.py
+2
-0
2 additions, 0 deletions
test/test_interface_stats.py
with
2 additions
and
1 deletion
brian_polling_manager/interface_stats/cli.py
+
0
−
1
View file @
054bfd37
...
...
@@ -173,7 +173,6 @@ def _main(router_fqdn: str, app_config_params: dict):
netconf_doc
=
juniper
.
get_interface_info_ncrpc
(
router_fqdn
)
netconf_timestamp
=
datetime
.
now
()
influx_params
=
app_config_params
[
'
influx
'
][
'
brian-counters
'
]
points
=
_brian_points
(
router_fqdn
=
router_fqdn
,
...
...
This diff is collapsed.
Click to expand it.
test/test_interface_stats.py
+
2
−
0
View file @
054bfd37
...
...
@@ -73,10 +73,12 @@ def test_validate_logical_counters_schema(router_fqdn, ifc_netconf_rpc):
for
ifc
in
juniper
.
logical_interface_counters
(
doc
):
jsonschema
.
validate
(
ifc
,
interface_stats
.
LOGICAL_INTERFACE_COUNTER_SCHEMA
)
def
poller_interfaces
():
with
open
(
os
.
path
.
join
(
DATA_DIRNAME
,
'
poller-interfaces.json
'
))
as
f
:
return
json
.
load
(
f
)
@pytest.fixture
def
polled_interfaces
(
mocked_poller_interfaces
):
polled
=
{}
...
...
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