diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-06 18:44:55 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-06 18:44:55 +0100 |
commit | 10a23cd803c0784cbdd80daff6750f02c982df4f (patch) | |
tree | 2490d195c8f6407a37f8f9326c24132361f8bb64 /src | |
parent | e64b4ad6909bedad8aa72c25b0c0615e4f4046f9 (diff) | |
download | vyos-1x-10a23cd803c0784cbdd80daff6750f02c982df4f.tar.gz vyos-1x-10a23cd803c0784cbdd80daff6750f02c982df4f.zip |
openvpn: T3051: fix multiple pushed routes to preconfigured clients
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 0c6acf4e5..b507afcc0 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -481,7 +481,11 @@ def generate(openvpn): client_file = os.path.join(ccd_dir, client) # Our client need's to know its subnet mask ... - client_config['subnet'] = dict_search('server.subnet', openvpn) + client_config['server_subnet'] = dict_search('server.subnet', openvpn) + + import pprint + pprint.pprint(client_config) + render(client_file, 'openvpn/client.conf.tmpl', client_config, trim_blocks=True, user=user, group=group) |