dhcp-server: T2669: do not allow overlapping ranges to be created
dhcp-server: T2669: do not allow overlapping ranges to be created

set service dhcp-server shared-network-name NET01 authoritative
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 default-router '10.0.0.1'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 lease '86400'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG01 start '10.0.0.60'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG01 stop '10.0.0.70'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG02 start '10.0.0.55'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG02 stop '10.0.0.65'

Will result in a dhcpd.conf:

shared-network NET01 {
    authoritative;
    subnet 10.0.0.0 netmask 255.255.255.0 {
        option routers 10.0.0.1;
        default-lease-time 86400;
        max-lease-time 86400;
        range 10.0.0.60 10.0.0.70;
        range 10.0.0.55 10.0.0.65;
    }
    on commit {
        set shared-networkname = "NET01";

    }
}

This is not allowed by ISC DHCPd:

dhcpd[3307]: /run/dhcp-server/dhcpd.conf line 25: lease 10.0.0.63 is declared twice!
dhcpd[3307]:         range 10.0.0.55 10.0.0.65;

vyos/vyos-1x,vyos/vyos-1x,vyos/vyos-1x,vyos/vyos-1x