blob: 2e46c1a8ca3a0eddbe196a0bcca93888e84dc3f5 [file] [log] [blame]
{%- for subnet_name, subnet in server.subnet.iteritems() %}
subnet {{ subnet.network }} netmask {{ subnet.netmask }} {
{%- if subnet.range is defined %}
pool
{
#failover peer "dhcp-failover";
range {{ subnet.range }};
}
{%- endif %}
option subnet-mask {{ subnet.netmask }};
{%- if subnet.gateway is defined %}
option routers {{ subnet.gateway }};
{%- endif %}
{%- if subnet.pxeserver is defined %}
next-server {{ subnet.pxeserver }};
{%- endif %}
}
{%- endfor %}