]> git.proxmox.com Git - pve-container.git/commit
hotplug network: Only change IPAM when MAC or bridge changes
authorStefan Hanreich <s.hanreich@proxmox.com>
Mon, 20 Nov 2023 19:19:51 +0000 (20:19 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 21 Nov 2023 08:31:13 +0000 (09:31 +0100)
commit32de2c46c892f08c81e3cf801835a2c136ea1103
tree67b3fa80117f48d87e3a0f39c5454616569556c5
parente77973f46e4a1946c961c0e90a0c7d6fab6350ad
hotplug network: Only change IPAM when MAC or bridge changes

Currently a new IPAM entry is created everytime a NIC config changes.
When editing properties other than MAC or Bridge this could lead to
duplicated entries in the IPAM. Only reserve a new IP when the bridge
or MAC changes or the NIC is completely new.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/LXC.pm