summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-06 18:44:55 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-06 18:44:55 +0100
commit10a23cd803c0784cbdd80daff6750f02c982df4f (patch)
tree2490d195c8f6407a37f8f9326c24132361f8bb64 /src
parente64b4ad6909bedad8aa72c25b0c0615e4f4046f9 (diff)
downloadvyos-1x-10a23cd803c0784cbdd80daff6750f02c982df4f.tar.gz
vyos-1x-10a23cd803c0784cbdd80daff6750f02c982df4f.zip
openvpn: T3051: fix multiple pushed routes to preconfigured clients
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py6
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)