diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:51:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:51:42 +0200 |
commit | e8a637eec0cc398f78a877ece6b9c7cdca418970 (patch) | |
tree | d5950ea33e209a3a290b617d501807959102a9d0 /data/templates/ipsec/charon/dhcp.conf.tmpl | |
parent | fc36d67b051bad776a5b1d6e9a04f1205487f01f (diff) | |
download | vyos-1x-e8a637eec0cc398f78a877ece6b9c7cdca418970.tar.gz vyos-1x-e8a637eec0cc398f78a877ece6b9c7cdca418970.zip |
ipsec: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ipsec/charon/dhcp.conf.tmpl')
-rw-r--r-- | data/templates/ipsec/charon/dhcp.conf.tmpl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/data/templates/ipsec/charon/dhcp.conf.tmpl b/data/templates/ipsec/charon/dhcp.conf.tmpl index 92774b275..aaa5613fb 100644 --- a/data/templates/ipsec/charon/dhcp.conf.tmpl +++ b/data/templates/ipsec/charon/dhcp.conf.tmpl @@ -1,12 +1,10 @@ dhcp { load = yes -{% if remote_access is defined and remote_access.dhcp is defined %} -{% if remote_access.dhcp.interface is defined %} +{% if remote_access.dhcp.interface is vyos_defined %} interface = {{ remote_access.dhcp.interface }} -{% endif %} -{% if remote_access.dhcp.server is defined %} +{% endif %} +{% if remote_access.dhcp.server is vyos_defined %} server = {{ remote_access.dhcp.server }} -{% endif %} {% endif %} # Always use the configured server address. |