]> git.proxmox.com Git - pve-network.git/commit
sdn: validate dhcp-range in API
authorStefan Lendl <s.lendl@proxmox.com>
Wed, 22 Nov 2023 13:00:41 +0000 (14:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Nov 2023 13:37:32 +0000 (14:37 +0100)
commitd4938d7aa3a1ed753692bc563867ccbc09008a40
treea5c800dc41c6ea29f533320ac094e0f417b3e225
parentfb045d8c7511e9d895a1092bf362f554f2633a4d
sdn: validate dhcp-range in API

* start- and end-addresses must be valid IPs
* must both be in the subnet's CIDR
* and start needs to smaller (or equal) to end

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
src/PVE/Network/SDN/SubnetPlugin.pm