diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:51:19 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:51:19 +0200 |
commit | 2b066e2cb8fe5340c3f32e4c29c75d4f3282363f (patch) | |
tree | 14e7465716f30f08f3a76f0822e80b1aa89a7bfd /data/templates/openvpn/client.conf.tmpl | |
parent | 4f8ae0d3d51b62caeec856386844074f38935b87 (diff) | |
download | vyos-1x-2b066e2cb8fe5340c3f32e4c29c75d4f3282363f.tar.gz vyos-1x-2b066e2cb8fe5340c3f32e4c29c75d4f3282363f.zip |
openvpn: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/openvpn/client.conf.tmpl')
-rw-r--r-- | data/templates/openvpn/client.conf.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/openvpn/client.conf.tmpl b/data/templates/openvpn/client.conf.tmpl index e6e15b6ad..98c8b0273 100644 --- a/data/templates/openvpn/client.conf.tmpl +++ b/data/templates/openvpn/client.conf.tmpl @@ -3,12 +3,12 @@ {% if ip %} ifconfig-push {{ ip[0] }} {{ server_subnet[0] | netmask_from_cidr }} {% endif %} -{% if push_route is defined and push_route is not none %} +{% if push_route is vyos_defined %} {% for route in push_route %} push "route {{ route | address_from_cidr }} {{ route | netmask_from_cidr }}" {% endfor %} {% endif %} -{% if subnet is defined and subnet is not none %} +{% if subnet is vyos_defined %} {% for network in subnet %} iroute {{ network | address_from_cidr }} {{ network | netmask_from_cidr }} {% endfor %} @@ -26,6 +26,6 @@ push "route-ipv6 {{ route6 }}" iroute-ipv6 {{ net6 }} {% endfor %} {% endif %} -{% if disable is defined %} +{% if disable is vyos_defined %} disable {% endif %} |