Lior Vernia has uploaded a new change for review. Change subject: core: Changed Bond constructor for backwards compatibility ......................................................................
core: Changed Bond constructor for backwards compatibility Before the Bond subclass was implemented, the old way to check whether a VdsNetworkInterface was to check the value of its "bonded" field. This is now preserved, so that any Bond object would still comply with older code. Change-Id: I93d970df3fe1e22e8116d0b5683e82851037f6c8 Signed-off-by: Lior Vernia <[email protected]> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/Bond.java 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/30/12530/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/Bond.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/Bond.java index f4c2771..9608ce4 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/Bond.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/Bond.java @@ -6,11 +6,12 @@ private static final long serialVersionUID = 268337006285648461L; public Bond() { + setBonded(true); } public Bond(String macAddress, String bondOptions, Integer bondType) { + this(); setMacAddress(macAddress); - setBonded(true); setBondOptions(bondOptions); setBondType(bondType); } -- To view, visit http://gerrit.ovirt.org/12530 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I93d970df3fe1e22e8116d0b5683e82851037f6c8 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
