summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/charon/dhcp.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-24 23:04:25 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-25 00:15:08 +0200
commit861945045ca04b21e27ad31513b2ff929349ee2e (patch)
tree0feedd3bd0307552bbaf701aba99a83571bcecd1 /data/templates/ipsec/charon/dhcp.conf.tmpl
parent7273a6a0a05a000680ee549b76dd40762b73c2d0 (diff)
downloadvyos-1x-861945045ca04b21e27ad31513b2ff929349ee2e.tar.gz
vyos-1x-861945045ca04b21e27ad31513b2ff929349ee2e.zip
ipsec: T1210: move DHCP server configuration unter remote-access node
As this is only related to remote-access, keeping it under "options" simply feels wrong.
Diffstat (limited to 'data/templates/ipsec/charon/dhcp.conf.tmpl')
-rw-r--r--data/templates/ipsec/charon/dhcp.conf.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/templates/ipsec/charon/dhcp.conf.tmpl b/data/templates/ipsec/charon/dhcp.conf.tmpl
index 96dfd7633..92774b275 100644
--- a/data/templates/ipsec/charon/dhcp.conf.tmpl
+++ b/data/templates/ipsec/charon/dhcp.conf.tmpl
@@ -1,11 +1,11 @@
dhcp {
load = yes
-{% if options is defined and options.remote_access is defined and options.remote_access.dhcp is defined %}
-{% if options.remote_access.dhcp.interface is defined %}
- interface = {{ options.remote_access.dhcp.interface }}
+{% if remote_access is defined and remote_access.dhcp is defined %}
+{% if remote_access.dhcp.interface is defined %}
+ interface = {{ remote_access.dhcp.interface }}
{% endif %}
-{% if options.remote_access.dhcp.server is defined %}
- server = {{ options.remote_access.dhcp.server }}
+{% if remote_access.dhcp.server is defined %}
+ server = {{ remote_access.dhcp.server }}
{% endif %}
{% endif %}