Change in ovirt-engine[master]: restapi: backward compatibility for cluster's scheduling pol...

gchaplik at redhat.com gchaplik at redhat.com
Thu Jul 18 07:58:29 UTC 2013


Gilad Chaplik has submitted this change and it was merged.

Change subject: restapi: backward compatibility for cluster's scheduling policy
......................................................................


restapi: backward compatibility for cluster's scheduling policy

The engine implementation for cluster policy has changed, thus
changing the cluster mapper to handle it, without breaking compatibility.

* scheduling_policy_type will be mapped to cluster_policy_name and vice-versa.
* thresholds will be mapped to properties map and vice-versa.

* also, currently in case of 'none' policy, user will see:
<scheduling_policy/>
altered the mapper to show 'none' instead of empty entity.

Change-Id: I4edd7313401670ca225b32d19dd7ad961ccd1b6a
Signed-off-by: Gilad Chaplik <gchaplik at redhat.com>
---
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/ClusterMapper.java
M backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/ClusterMapperTest.java
2 files changed, 40 insertions(+), 49 deletions(-)

Approvals:
  Gilad Chaplik: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4edd7313401670ca225b32d19dd7ad961ccd1b6a
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck at redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik at redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhornyak at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list