Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
9a8cf0af
Commit
9a8cf0af
authored
Mar 30, 2020
by
Andrey Vertiprahov
Browse files
Fix black.
parent
ba1085a8
Pipeline
#21457
passed with stages
in 13 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Rotek/RTBSv1/ping.py
View file @
9a8cf0af
...
...
@@ -21,11 +21,11 @@ class Script(BaseScript):
rx_result
=
re
.
compile
(
r
"^(?P<count>\d+) packets transmitted, (?P<success>\d+) (packets received|received),"
r
"(?:\s|\s\S+ errors, )\d+% packet loss."
,
re
.
MULTILINE
r
"(?:\s|\s\S+ errors, )\d+% packet loss."
,
re
.
MULTILINE
,
)
rx_stat
=
re
.
compile
(
r
"^rtt min/avg/max/mdev = (?P<min>.+)/(?P<avg>.+)/(?P<max>.+)/(?P<mdev>.+)\s."
,
re
.
MULTILINE
r
"^rtt min/avg/max/mdev = (?P<min>.+)/(?P<avg>.+)/(?P<max>.+)/(?P<mdev>.+)\s."
,
re
.
MULTILINE
)
def
execute
(
self
,
address
,
count
=
None
,
source_address
=
None
,
size
=
None
,
df
=
None
):
...
...
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