summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-relay/dhcrelay.conf.j2
blob: c26c263fd632cc185d50f63758a5e2092fd7a634 (plain)
1
2
3
4
5
6
7
8
9
### Autogenerated by dhcp_relay.py ###

{% 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 #}
{% if interface is vyos_defined %}
OPTIONS="-c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -i {{ interface | join(' -i ') }} {{ server | join(' ') }}"
{% else %}
OPTIONS="-c {{ relay_options.hop_count }} -a -m {{ relay_options.relay_agents_packets }} {{ max_size }} -id {{ listen_interface | join(' -id ') }} -iu {{ upstream_interface | join(' -iu ') }} {{ server | join(' ') }}"
{% endif %}