Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrey Yemelyanov
noc
Commits
6b836c91
Commit
6b836c91
authored
Sep 25, 2018
by
Dmitry Lukhtionov
Browse files
Fix DCN.DCWL.get_metrics script
parent
07ed285a
Changes
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/DCN/DCWL/get_metrics.py
View file @
6b836c91
...
...
@@ -120,6 +120,8 @@ class Script(GetMetricsScript):
"tx-errors"
:
"Interface | Errors | Out"
}
c
=
self
.
cli
(
"get interface all detail"
)
for
block
in
c
.
split
(
"
\n\n
"
):
if
not
block
:
continue
ifaces
+=
[
dict
(
line
.
split
(
None
,
1
)
for
line
in
block
.
splitlines
()
if
len
(
line
.
split
(
None
,
1
))
==
2
)]
self
.
get_beacon_iface
(
ifaces
)
...
...
@@ -159,6 +161,8 @@ class Script(GetMetricsScript):
r_metrics
=
defaultdict
(
dict
)
w
=
self
.
cli
(
"get radio all detail"
)
for
block
in
w
.
split
(
"
\n\n
"
):
if
not
block
:
continue
data
=
dict
(
line
.
split
(
None
,
1
)
for
line
in
block
.
splitlines
()
if
len
(
line
.
split
(
None
,
1
))
==
2
)
iface
=
data
[
"name"
].
strip
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment