summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-relay/dhcrelay.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-08 14:48:17 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-08 14:48:17 +0200
commit654dbc9aa3b0d27ec4f3faefff6cbd85fc3e1d1a (patch)
tree45700682fc803d6fba0fd38cbc064d27e9f2cd89 /data/templates/dhcp-relay/dhcrelay.conf.tmpl
parentd8f778456761124683443400a9182a39714268f4 (diff)
downloadvyos-1x-654dbc9aa3b0d27ec4f3faefff6cbd85fc3e1d1a.tar.gz
vyos-1x-654dbc9aa3b0d27ec4f3faefff6cbd85fc3e1d1a.zip
dhcp(v6): T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/dhcp-relay/dhcrelay.conf.tmpl')
-rw-r--r--data/templates/dhcp-relay/dhcrelay.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dhcp-relay/dhcrelay.conf.tmpl b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
index a9d17ed9a..11710bd8e 100644
--- a/data/templates/dhcp-relay/dhcrelay.conf.tmpl
+++ b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
@@ -1,6 +1,6 @@
### Autogenerated by dhcp_relay.py ###
-{% set max_size = '-A ' + relay_options.max_size if relay_options.max_size is defined and relay_options.max_size is not none %}
+{% set max_size = '-A ' ~ relay_options.max_size if relay_options.max_size is vyos_defined %}
{# hop_count and relay_agents_packets is a default option, thus it is always present #}
OPTIONS="-c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"