diff options
Diffstat (limited to 'examples/tg19/dhcp/templates/fap_dhcp4.conf')
| -rw-r--r-- | examples/tg19/dhcp/templates/fap_dhcp4.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/tg19/dhcp/templates/fap_dhcp4.conf b/examples/tg19/dhcp/templates/fap_dhcp4.conf new file mode 100644 index 0000000..548d921 --- /dev/null +++ b/examples/tg19/dhcp/templates/fap_dhcp4.conf @@ -0,0 +1,14 @@ +{% 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 }} { + option subnet-mask {{ n.subnet4|netmask }}; + option routers {{ n.gw4 }}; + pool { + range {{ n.subnet4|getFirstFapIP}} {{ n.subnet4|getLastDhcpIp }}; + allow members of "fap-vendor-class"; + allow members of "fap-mac"; + } +} + +{% endif %} +{% endfor %}
\ No newline at end of file |
