dnsmasq: add dhcp-range tags configuration
authorGrégoire Delattre <gregoire.delattre@gmail.com>
Tue, 20 Jun 2017 09:45:49 +0000 (11:45 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 20 Jun 2017 20:33:41 +0000 (22:33 +0200)
commit680a5c5d3e4737d6d96fc1b34aba93d04d2390b3
tree2ca5e80fa4dcb5853e22784d2abf627fbc847be2
parente3d09e78980ee1954e536f9fccd2804f5f681973
dnsmasq: add dhcp-range tags configuration

dnsmasq can match tags in its dhcp-range configuration, this commit adds
the option to configure it in the dhcp section

uci configuration:
config dhcp 'lan'
        option interface 'lan'
        list tag 'blue'
        list tag '!red'
        option start '10'
        option limit '150'
        option leasetime '12h'

generated dnsmasq configuration:
dhcp-range=tag:blue,tag:!red,set:lan,192.168.1.10,192.168.1.159,255.255.255.0,12h

Signed-off-by: Grégoire Delattre <gregoire.delattre@gmail.com>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init