# Define SERVERS with a list of one or more DHCP servers where
# DHCP packets are to be relayed to and from.  This is mandatory.
#SERVERS="10.11.12.13 10.9.8.7"

SERVERS="%%adresse_ip_dhcp_dhcrelay"
%if 'all' not in %%dhcrelay_interfaces
OPTIONS="%slurp
 %if %%dhcrelay_server_interface not in %%dhcrelay_interfaces
  %for %%dhcrelay_int in %%dhcrelay_interfaces
   %if not %%is_empty(%%dhcrelay_int.dhcrelay_vlan)
-i %%dhcrelay_int%slurp
.%%dhcrelay_int.dhcrelay_vlan %slurp
   %else
-i %%dhcrelay_int %slurp
   %end if
  %end for
-i %%dhcrelay_server_interface"
#OPTIONS="-i %%custom_join(%%dhcrelay_interfaces, ' -i ') -i %%dhcrelay_server_interface"
 %else
  %for %%dhcrelay_int in %%dhcrelay_interfaces
   %if not %%is_empty(%%dhcrelay_int.dhcrelay_vlan)
-i %%dhcrelay_int%slurp
.%%dhcrelay_int.dhcrelay_vlan %slurp
   %else
-i %%dhcrelay_int %slurp
   %end if
  %end for
"
#OPTIONS="-i %%custom_join(%%dhcrelay_interfaces, ' -i ')"
 %end if
%end if

# Define OPTIONS with any other options to pass to the dhcrelay server.
# See dhcrelay(8) for available options and syntax.
#OPTIONS="-q -i eth0 -i eth1"

