From d6974be8d96cae21dde6bfa40fe568db3d3ef04f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 29 Nov 2020 12:29:08 +0100 Subject: dhcp-relay: T3095: migrate service to get_config_dict() --- data/templates/dhcp-relay/dhcrelay.conf.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/templates/dhcp-relay/dhcrelay.conf.tmpl') 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(' ') }}" -- cgit v1.2.3