]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: don't return early from virNetDevTapReattachBridge() if "force" is true
authorLaine Stump <laine@redhat.com>
Tue, 17 Sep 2024 17:28:04 +0000 (13:28 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 19 Sep 2024 17:56:19 +0000 (13:56 -0400)
commite3f8bccea698e5e985f109800c4f1d21194000b8
tree25067c2b4720a225d299ca0a486719e9d5d9b6c0
parenta37bd2a15b8f2e7aa09519c86fe1ba1e59ce113f
util: don't return early from virNetDevTapReattachBridge() if "force" is true

It can be useful to force an interface to be detached/reattached from
its bridge even if it's the same bridge - possibly something like the
virtualport profileID has changed, and a detach/attach cycle will get
it connected with the new profileID.

The one and only current use of virNetDevTapReattachBridge() sets
force to false, to preserve current behavior. An upcoming patch will
use it with force set to true.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c
src/util/virnetdevtap.c
src/util/virnetdevtap.h