# Autogenerated dhcpd.conf from gondul {% for (network, n) in objects["read/networks"].networks|dictsort %} {% if n != None and n.subnet4 != None and n.vlan != 666 %} # {{network}} subnet {{ n.subnet4|networkId }} netmask {{ n.subnet4|netmask }} { range {{ n.subnet4|getFirstDhcpIp }} {{ n.subnet4|getLastDhcpIp }}; option subnet-mask {{ n.subnet4|netmask }}; option routers {{ n.gw4 }}; option domain-name "{{network}}.tg19.gathering.org"; ddns-domainname "{{network}}.tg19.gathering.org"; } zone {{network}}.tg19.gathering.org { primary 127.0.0.1; key DHCP_UPDATER; } {% endif %} {% endfor %}