Moti Asayag has uploaded a new change for review.

Change subject: engine: Consider a removed labeled interface
......................................................................

engine: Consider a removed labeled interface

In case a labeled bond is being removed, the engine
should allow the removal of that network, as the label
seize to exist on the host.

Change-Id: Ib20efa3cf87a4c8f5e94845bd8087cb18285715e
Signed-off-by: Moti Asayag <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/SetupNetworksHelper.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/30/23030/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 ebabafa..17dc471 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
@@ -108,6 +108,9 @@
             if (nic != null) {
                 if (NetworkUtils.isVlan(nic)) {
                     nic = 
nicsByName.get(NetworkUtils.stripVlan(nic.getName()));
+                    if (nic == null) {
+                        continue;
+                    }
                 }
 
                 Network removedNetwork = 
getExistingClusterNetworks().get(network);


-- 
To view, visit http://gerrit.ovirt.org/23030
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib20efa3cf87a4c8f5e94845bd8087cb18285715e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to