summaryrefslogtreecommitdiff
path: root/src/op_mode/show_openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-03 14:56:21 +0200
committerGitHub <noreply@github.com>2020-10-03 14:56:21 +0200
commit0cc3e6f1bdcb907cecf2bf958c49e5d66adcbf13 (patch)
treea6ab5943c0fb5c162718e278319e561ad8735133 /src/op_mode/show_openvpn.py
parentb8c19bc47c56610dc2827a1d1895e89275c300b7 (diff)
parenta2f66afca8ff4ef483b39a62c2a9ac9458cd6e08 (diff)
downloadvyos-1x-0cc3e6f1bdcb907cecf2bf958c49e5d66adcbf13.tar.gz
vyos-1x-0cc3e6f1bdcb907cecf2bf958c49e5d66adcbf13.zip
openvpn: T2957: fix path to openvpn status file
Diffstat (limited to 'src/op_mode/show_openvpn.py')
-rwxr-xr-xsrc/op_mode/show_openvpn.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/show_openvpn.py b/src/op_mode/show_openvpn.py
index 32918ddce..1da4c7ecb 100755
--- a/src/op_mode/show_openvpn.py
+++ b/src/op_mode/show_openvpn.py
@@ -51,7 +51,7 @@ def bytes2HR(size):
return output
def get_status(mode, interface):
- status_file = '/opt/vyatta/etc/openvpn/status/{}.status'.format(interface)
+ status_file = '/var/run/openvpn/{}.status'.format(interface)
# this is an empirical value - I assume we have no more then 999999
# current OpenVPN connections
routing_table_line = 999999
@@ -175,4 +175,3 @@ if __name__ == '__main__':
tmpl = jinja2.Template(outp_tmpl)
print(tmpl.render(data))
-