Conf mode allow wrong dhcp configuration (intersection ip ranges) and when isc-dhcp-server.service starting it gives error

Hello,

I can define intersecting ip range as shown in below;

vyos@vyos# sh service
dhcp-server {
shared-network-name server1 {
authoritative
subnet 10.121.121.0/24 {
default-router 10.121.121.110
lease 86400
range 1 {
start 10.121.121.60
stop 10.121.121.70
}
range 2 {
start 10.121.121.55
stop 10.121.121.65
}
}
}
}
ssh {
port 22
port 220
}

Then I use "sudo service isc-dhcp-server restart " command to start isc-dhcp-server
The result of setvice start is fail. Corresponding log piece placed in /var/log/messages is shown in below.

isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE
Jun 26 14:31:27 vyos dhcpd[12617]: /run/dhcp-server/dhcpd.conf line 25: lease 10.121.121.63 is declared twice!

Best,

Hi, @utosun
I created a bug report. Ref. https://phabricator.vyos.net/T2669
Thanks for reporting.