summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-29 12:29:08 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-29 12:29:08 +0100
commitd6974be8d96cae21dde6bfa40fe568db3d3ef04f (patch)
treef8ef550ce8f6b9eb575d554dc3bdb41bf1e0665d /data
parent8f8629227c0631cf75d896af1e1413b330f82781 (diff)
downloadvyos-1x-d6974be8d96cae21dde6bfa40fe568db3d3ef04f.tar.gz
vyos-1x-d6974be8d96cae21dde6bfa40fe568db3d3ef04f.zip
dhcp-relay: T3095: migrate service to get_config_dict()
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-relay/dhcrelay.conf.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/templates/dhcp-relay/dhcrelay.conf.tmpl b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
index 721a238a6..df990207b 100644
--- a/data/templates/dhcp-relay/dhcrelay.conf.tmpl
+++ b/data/templates/dhcp-relay/dhcrelay.conf.tmpl
@@ -1,5 +1,6 @@
### Autogenerated by dhcp_relay.py ###
-# Defaults for isc-dhcp-relay.service
-OPTIONS="-4 {{ options | join(' ') }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"
+{% set max_size = '-A ' + relay_options.max_size if relay_options.max_size is defined and relay_options.max_size is not none %}
+{# hop_count and relay_agents_packets is a default option, thus it is always present #}
+OPTIONS="-4 -c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"