Lior Vernia has uploaded a new change for review. Change subject: engine: Don't resurrect removed bonds for label ......................................................................
engine: Don't resurrect removed bonds for label If a network was attached via label to a bond being removed, the operation would still be blocked by the CanDoAction, this is now fixed. Change-Id: Ie5c0648999a80c313f6565673e7880a2b34f3e53 Bug-Url: https://bugzilla.redhat.com/1084771 Bug-Url: https://bugzilla.redhat.com/1084915 Signed-off-by: Lior Vernia <[email protected]> (cherry picked from commit 433fa09c87eb88d6d5e187f25d7a2dd1e9cb4c35) --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/29/27029/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java index d644bed..5e7605b 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java @@ -112,7 +112,7 @@ for (String network : removedNetworks) { VdsNetworkInterface nic = hostInterfacesByNetworkName.get(network); - if (nic != null) { + if (nic != null && !removedBonds.contains(nic.getName())) { if (NetworkUtils.isVlan(nic)) { nic = nicsByName.get(NetworkUtils.stripVlan(nic.getName())); if (nic == null) { -- To view, visit http://gerrit.ovirt.org/27029 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie5c0648999a80c313f6565673e7880a2b34f3e53 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Lior Vernia <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
