blob: 73058105c1ea2c41bfc0096e175ee28702d711c4 [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 %}
jan kaufman821d3e92016-03-07 17:25:29 +01007 range {{ subnet.range }};
Ales Komareke653a102014-09-21 17:36:15 +02008 {%- endif %}
9
10 option subnet-mask {{ subnet.netmask }};
11 {%- if subnet.gateway is defined %}
12 option routers {{ subnet.gateway }};
13 {%- endif %}
14 {%- if subnet.pxeserver is defined %}
15 next-server {{ subnet.pxeserver }};
16 {%- endif %}
17}
18
jan kaufman821d3e92016-03-07 17:25:29 +010019{%- endfor %}