blob: 6160b2befa69bf3b9de7af5405ccaf110f77caf4 [file] [log] [blame]
Ales Komareke653a102014-09-21 17:36:15 +02001{%- for subnet_name, subnet in server.subnet.iteritems() %}
2
3subnet {{ subnet.network }} netmask {{ subnet.netmask }} {
4 {%- if subnet.range is defined %}
5 pool
6 {
7 range {{ subnet.range }};
8 }
9 {%- endif %}
10
11 option subnet-mask {{ subnet.netmask }};
12 {%- if subnet.gateway is defined %}
13 option routers {{ subnet.gateway }};
14 {%- endif %}
15 {%- if subnet.pxeserver is defined %}
16 next-server {{ subnet.pxeserver }};
17 {%- endif %}
18}
19
20{%- endfor %}