qemu-server/PVE
Stefan Hanreich 0565f489ff config: net: avoid duplicate ipam entries on nic update
Updating the NIC of a VM when the following conditions were met:
* VM is turned off
* NIC is on a bridge that uses automatic dhcp
* Leave bridge unchanged

led to duplicate IPAM entries for the same network device.

This is due to the fact that the add_next_free_cidr always ran on
applying pending network changes.

Now we only add a new ipam entry if either:
* the value of the bridge or mac address changed
* the network device has been newly added

This way no duplicate IPAM entries should get created.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
2024-07-22 18:38:05 +02:00
..
API2 api: fix typo reported by perlcritic 2024-07-03 14:49:12 +02:00
CLI cli: qm: increase timeout for monitor commands to 30 seconds 2024-06-11 13:56:44 +02:00
QemuServer drive: tpm: fix default version in schema 2024-07-01 10:37:48 +02:00
VZDump backup: prepare: remove outdated QEMU version check 2024-07-03 15:08:51 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm config: define machine schema as property-string 2024-04-11 10:18:27 +02:00
QemuMigrate.pm migration: handle replication: remove outdated and inaccurate check for QEMU version 2024-07-03 15:08:47 +02:00
QemuServer.pm config: net: avoid duplicate ipam entries on nic update 2024-07-22 18:38:05 +02:00
QMPClient.pm QMP client: sort commands with 10 minutes timeout alphabetically 2024-03-08 14:37:29 +01:00