aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg19/dhcp/templates/dhcpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tg19/dhcp/templates/dhcpd.conf')
-rw-r--r--examples/tg19/dhcp/templates/dhcpd.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/tg19/dhcp/templates/dhcpd.conf b/examples/tg19/dhcp/templates/dhcpd.conf
new file mode 100644
index 0000000..e91d8b5
--- /dev/null
+++ b/examples/tg19/dhcp/templates/dhcpd.conf
@@ -0,0 +1,20 @@
+# 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 %}