]> git.puffer.fish Git - mirror/pve-network.git/commit
subnet: dhcp: improve Net::IP usage
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 7 Mar 2025 12:50:53 +0000 (13:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Apr 2025 16:35:34 +0000 (18:35 +0200)
commit1a698b27f4e959bb2b63b9393a2c223d32fea020
treedaee9ef3005d5988d85fe7a2fd5266997dfe56d1
parent2eb697c39edc9bd95a1ede9f9d3b44c30629ae16
subnet: dhcp: improve Net::IP usage

This simplifies the comparison of IPs by using the object-oriented
interface over the procedural one. Also instantiate the ips using the
new method rather than using new, which isn't a keyword in Perl. This
fixes the respective perlcritic warning.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Hannes Duerr <h.duerr@proxmox.com>
Link: https://lore.proxmox.com/20250307125056.169575-1-s.hanreich@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network/SDN/SubnetPlugin.pm