diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-10 19:43:38 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-11 11:25:13 +0200 |
commit | a533ca621567150732b58fc5176cd18b608f1f92 (patch) | |
tree | 08f8d935e5886330e9d37fccb6297faf0267345a /data/templates | |
parent | 6a2e75dbe4003c6987c6932296e68c486ff7b380 (diff) | |
download | vyos-1x-a533ca621567150732b58fc5176cd18b608f1f92.tar.gz vyos-1x-a533ca621567150732b58fc5176cd18b608f1f92.zip |
vpn: l2tp: T2264: combine WINS CLI syntax
There is no reason to distinguish between WINS servers in terms of priority.
This is solely a task which can be done in the underlaying Python scripts.
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/l2tp/l2tp.config.tmpl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/data/templates/l2tp/l2tp.config.tmpl b/data/templates/l2tp/l2tp.config.tmpl index bea2943d2..7e15233bb 100644 --- a/data/templates/l2tp/l2tp.config.tmpl +++ b/data/templates/l2tp/l2tp.config.tmpl @@ -39,13 +39,10 @@ dns{{ loop.index }}={{ dns }} {% if wins %} [wins] -{% if wins[0] %} -wins1={{wins[0]}} -{% endif %} -{% if wins[1] %} -wins2={{wins[1]}} +{% for server in wins -%} +wins{{ loop.index }}={{ server }} +{% endfor -%} {% endif %} -{% endif -%} [l2tp] verbose=1 |