]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: skip the netdev autogenerated name counter past existing devices
authorLaine Stump <laine@redhat.com>
Wed, 16 Dec 2020 19:58:21 +0000 (14:58 -0500)
committerLaine Stump <laine@redhat.com>
Thu, 17 Dec 2020 02:32:12 +0000 (21:32 -0500)
commit4252318bb3e863df52c90cbf9b3c70de11fa1a53
treedfc6410d5dabf70d124dca2b035573e09c0376b0
parent4974872abcbed21ac0e3142474c7e908d93969fe
lxc: skip the netdev autogenerated name counter past existing devices

the lxc driver uses virNetDevGenerateName() for its veth device names
since patch 2dd0fb492, so it should be using virNetDevReserveName()
during daemon restart/reconnect to skip over the device names that are
in use.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_process.c