]> git.proxmox.com Git - qemu-server.git/commitdiff
nic hotplug: add_dhcp_mapping
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 17 Nov 2023 11:40:03 +0000 (12:40 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 21 Nov 2023 12:24:48 +0000 (13:24 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index 2d72513f97337f84c895df683bea277247b8323a..b376612bea59e212f74fa259ea5de5ada9ac4f6c 100644 (file)
@@ -5369,6 +5369,7 @@ sub vmconfig_update_net {
        if ($have_sdn) {
            PVE::Network::SDN::Vnets::add_next_free_cidr($newnet->{bridge}, $conf->{name}, $newnet->{macaddr}, $vmid, undef, 1);
        }
+       PVE::Network::SDN::Vnets::add_dhcp_mapping($newnet->{bridge}, $newnet->{macaddr});
        vm_deviceplug($storecfg, $conf, $vmid, $opt, $newnet, $arch, $machine_type);
     } else {
        die "skip\n";