5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-21 22:03:53 +03:00

ipam: phpipam: add_range_next_freeip

Currently is not possible in phpipam to search in specific range,
fallback to full subnet search

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2024-01-04 17:11:39 +01:00 committed by Thomas Lamprecht
parent 9e65d5f597
commit e4e8158722

View File

@ -184,6 +184,18 @@ sub add_next_freeip {
return $ip;
}
sub add_range_next_freeip {
my ($class, $plugin_config, $subnet, $range, $data, $noerr) = @_;
#not implemented in phpipam, we search in the full subnet
my $vmid = $data->{vmid};
my $mac = $data->{mac};
my $hostname = $data->{hostname};
return $class->add_next_freeip($plugin_config, undef, $subnet, $hostname, $mac, $vmid);
}
sub del_ip {
my ($class, $plugin_config, $subnetid, $subnet, $ip, $noerr) = @_;