blob: b1f6774659fa694eafb25ad136c3f871f12e7ab0 [file] [log] [blame]
Ales Komarek5fff5522014-09-21 17:52:22 +02001{%- from "isc_dhcp/map.jinja" import server with context %}
2
Ales Komareke653a102014-09-21 17:36:15 +02003{%- for subnet_name, subnet in server.subnet.iteritems() %}
4
5subnet {{ subnet.network }} netmask {{ subnet.netmask }} {
6 {%- if subnet.range is defined %}
7 pool
8 {
Ales Komarek9b602932014-09-21 17:45:06 +02009 #failover peer "dhcp-failover";
Ales Komareke653a102014-09-21 17:36:15 +020010 range {{ subnet.range }};
11 }
12 {%- endif %}
13
14 option subnet-mask {{ subnet.netmask }};
15 {%- if subnet.gateway is defined %}
16 option routers {{ subnet.gateway }};
17 {%- endif %}
18 {%- if subnet.pxeserver is defined %}
19 next-server {{ subnet.pxeserver }};
20 {%- endif %}
21}
22
23{%- endfor %}