Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F118310092
list_dumpable_interfaces.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
305 B
Referenced Files
None
Subscribers
None
list_dumpable_interfaces.py
View Options
#!/usr/bin/env python3
# Extract the list of interfaces available for traffic dumps from tcpdump -D
import
re
from
vyos.util
import
cmd
if
__name__
==
'__main__'
:
out
=
cmd
(
'tcpdump -D'
)
.
split
(
'
\n
'
)
intfs
=
" "
.
join
(
map
(
lambda
s
:
re
.
search
(
r'\d+\.(\S+)\s'
,
s
)
.
group
(
1
),
out
))
print
(
intfs
)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Sat, Oct 17, 12:55 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4353310
Default Alt Text
list_dumpable_interfaces.py (305 B)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment