Lior Vernia has uploaded a new change for review. Change subject: engine: Modified BLL to enable adding new bonds ......................................................................
engine: Modified BLL to enable adding new bonds Removed a check for the prior existence of the bond. Change-Id: I27fbdf0d3136c78ca90148c377f53cc49a9f474d Signed-off-by: Lior Vernia <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/AddBondCommand.java 1 file changed, 0 insertions(+), 12 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/13478/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/AddBondCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/AddBondCommand.java index 69eb396..4485219 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/AddBondCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/AddBondCommand.java @@ -86,18 +86,6 @@ List<VdsNetworkInterface> interfaces = getDbFacade().getInterfaceDao().getAllInterfacesForVds( getParameters().getVdsId()); - // check that bond exists - VdsNetworkInterface bond = LinqUtils.firstOrNull(interfaces, new Predicate<VdsNetworkInterface>() { - @Override - public boolean eval(VdsNetworkInterface anInterface) { - return anInterface.getName().equals(getParameters().getBondName()); - } - }); - - if (bond == null) { - return failCanDoAction(VdcBllMessages.NETWORK_BOND_NAME_EXISTS); - } - // check that each nic is valid for (final String nic : getParameters().getNics()) { VdsNetworkInterface iface = LinqUtils.firstOrNull(interfaces, new Predicate<VdsNetworkInterface>() { -- To view, visit http://gerrit.ovirt.org/13478 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I27fbdf0d3136c78ca90148c377f53cc49a9f474d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Lior Vernia <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
