summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 16:01:38 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-16 16:02:33 +0200
commitd4c10902026b76a6372cf738fc98860b29b39759 (patch)
treec8d3958d564f876b74e80f68727bbe5f02a57aed /src/op_mode
parentbe6f809581ccbcd6411713128a63711eaa2ce6b7 (diff)
downloadvyos-1x-d4c10902026b76a6372cf738fc98860b29b39759.tar.gz
vyos-1x-d4c10902026b76a6372cf738fc98860b29b39759.zip
T644: remove prefixing from all scripts and update environment variables with VyOS paths.
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/dns_forwarding_restart.sh (renamed from src/op_mode/vyos_restart_dns_forwarding.sh)0
-rwxr-xr-xsrc/op_mode/dns_forwarding_statistics.py (renamed from src/op_mode/vyos_dns_forwarding_statistics.py)0
-rwxr-xr-xsrc/op_mode/version.py (renamed from src/op_mode/vyos_show_version.py)0
-rwxr-xr-xsrc/op_mode/vyos_list_dumpable_interfaces.py14
-rwxr-xr-xsrc/op_mode/vyos_list_interfaces.py8
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))