Roy Golan has uploaded a new change for review. Change subject: engine-core: setupNetworks api change ......................................................................
engine-core: setupNetworks api change Introducing the new api of setupNetworks. The new form to attach/detach multiple network/bond is REST style: Take a list of interfaces and changes on them are translated to 4 lists, networks, bonds, removedNetworks, removedBonds (what was the old api style) e.g: current list of interfaces: | name | networkName | bonded | bondName | ip ... | eth0 | ovirtmgmt | false | | ... | eth1 | | false | | ... | eth2 | otherNet | false | | ... to bond ovirtmgmt over eth0 and eth1 and detach "otherNet" send: | bond0| ovirtmgmt | | | | eth0 | ovirtmgmt | true | bond0 | | eth1 | ovirtmgmt | true | bond0 | | eth2 | | | ... | Change-Id: I6b6e2482876764c0a6384cffc02afaa980192317 --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetupNetworksCommand.java A backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SetupNetworksHelper.java A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/SetupNetworksHelperTest.java A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/SetupNetworksParametersTest.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/SetupNetworksParameters.java M backend/manager/modules/common/src/test/java/org/ovirt/engine/core/common/utils/ValidationUtilsTest.java 7 files changed, 777 insertions(+), 123 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/61/1061/1 -- To view, visit http://gerrit.ovirt.org/1061 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6b6e2482876764c0a6384cffc02afaa980192317 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Roy Golan <rgo...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches