]> git.proxmox.com Git - pve-container.git/commit
fix ipv4 replacement of running containers
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 30 Jul 2015 08:54:01 +0000 (10:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Jul 2015 09:41:16 +0000 (11:41 +0200)
commit8d723477b7eb5d7e4497f3e647553f3054a59c19
treecd04637b9b44e81d2a8631801186aaf61de1814b
parentc6b8740b9e8427b600af8be4b39116a10763c010
fix ipv4 replacement of running containers

While the previous strategy was enough for ipv6, ipv4 has
the concept of primary and secondary addresses (and
permanent, deprecated, ...), and so adding additional ip
addresses marked them as 'secondary'. The side effect of
this is that deleting the primary ip deletes all other ip
addresses within the same subnet. To avoid this we need to
temporarily set /proc/sys/net/ipv4/conf/promote_secondaries
to 1 before deleting the old IP address.
src/PVE/LXC.pm