From a2f66afca8ff4ef483b39a62c2a9ac9458cd6e08 Mon Sep 17 00:00:00 2001 From: Marcus Hoff Date: Sat, 3 Oct 2020 14:42:46 +0200 Subject: openvpn: T2957: Status file directory for show command was wrong, resulting in no output. Now points to '/var/run/openvpn/{}.status' --- src/op_mode/show_openvpn.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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)) - -- cgit v1.2.3