diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-16 21:35:22 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-16 21:35:22 +0900 |
commit | be6f809581ccbcd6411713128a63711eaa2ce6b7 (patch) | |
tree | c62377a36c274d878224dc102562fdfbc10e17be /src/op-mode/vyos-list-dumpable-interfaces.py | |
parent | 99a3049c67005bf5e0ba45db264d56d3b57cb792 (diff) | |
download | vyos-1x-be6f809581ccbcd6411713128a63711eaa2ce6b7.tar.gz vyos-1x-be6f809581ccbcd6411713128a63711eaa2ce6b7.zip |
Use '_' instead of '-' for python scripts for test
Diffstat (limited to 'src/op-mode/vyos-list-dumpable-interfaces.py')
-rwxr-xr-x | src/op-mode/vyos-list-dumpable-interfaces.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/op-mode/vyos-list-dumpable-interfaces.py b/src/op-mode/vyos-list-dumpable-interfaces.py deleted file mode 100755 index 53ee89633..000000000 --- a/src/op-mode/vyos-list-dumpable-interfaces.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python3 - -# Extract the list of interfaces available for traffic dumps from tcpdump -D - -import re -import subprocess - -if __name__ == '__main__': - out = subprocess.check_output(['/usr/sbin/tcpdump', '-D']).decode().strip() - out = out.split("\n") - - intfs = " ".join(map(lambda s: re.search(r'\d+\.(\S+)\s', s).group(1), out)) - - print(intfs) |