Ales Komarek | e653a10 | 2014-09-21 17:36:15 +0200 | [diff] [blame^] | 1 | {%- for subnet_name, subnet in server.subnet.iteritems() %} |
| 2 | |
| 3 | subnet {{ 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 %} |