diff options
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/dns_forwarding_restart.sh (renamed from src/op_mode/vyos_restart_dns_forwarding.sh) | 0 | ||||
-rwxr-xr-x | src/op_mode/dns_forwarding_statistics.py (renamed from src/op_mode/vyos_dns_forwarding_statistics.py) | 0 | ||||
-rwxr-xr-x | src/op_mode/version.py (renamed from src/op_mode/vyos_show_version.py) | 0 | ||||
-rwxr-xr-x | src/op_mode/vyos_list_dumpable_interfaces.py | 14 | ||||
-rwxr-xr-x | src/op_mode/vyos_list_interfaces.py | 8 |
5 files changed, 0 insertions, 22 deletions
diff --git a/src/op_mode/vyos_restart_dns_forwarding.sh b/src/op_mode/dns_forwarding_restart.sh index 12106fcc1..12106fcc1 100755 --- a/src/op_mode/vyos_restart_dns_forwarding.sh +++ b/src/op_mode/dns_forwarding_restart.sh diff --git a/src/op_mode/vyos_dns_forwarding_statistics.py b/src/op_mode/dns_forwarding_statistics.py index 3d1e30aee..3d1e30aee 100755 --- a/src/op_mode/vyos_dns_forwarding_statistics.py +++ b/src/op_mode/dns_forwarding_statistics.py diff --git a/src/op_mode/vyos_show_version.py b/src/op_mode/version.py index ce3b3b54f..ce3b3b54f 100755 --- a/src/op_mode/vyos_show_version.py +++ b/src/op_mode/version.py 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) diff --git a/src/op_mode/vyos_list_interfaces.py b/src/op_mode/vyos_list_interfaces.py deleted file mode 100755 index 59c9dffad..000000000 --- a/src/op_mode/vyos_list_interfaces.py +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env python3 - -import netifaces - -if __name__ == '__main__': - interfaces = netifaces.interfaces() - - print(" ".join(interfaces)) |