|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 09 of 21] CP-1704: vmpp.archive-now
ocaml/idl/datamodel.ml | 6 ++++++
ocaml/xapi/xapi_vmpp.ml | 15 ++++-----------
2 files changed, 10 insertions(+), 11 deletions(-)
# HG changeset patch
# User Marcus Granado <marcus.granado@xxxxxxxxxx>
# Date 1282322886 -3600
# Node ID 80f7b258edfb52f34e2caa0bfb00e32ea208bc99
# Parent e4c575199627ef88a921a25ffe706868cfc8b5ab
CP-1704: vmpp.archive-now
Signed-off-by: Marcus Granado <marcus.granado@xxxxxxxxxxxxx>
diff -r e4c575199627 -r 80f7b258edfb ocaml/idl/datamodel.ml
--- a/ocaml/idl/datamodel.ml
+++ b/ocaml/idl/datamodel.ml
@@ -5894,6 +5894,12 @@
"cifs", "CIFS target config";
"nfs", "NFS target config";
])
+let vmpp_schedule_min = "min"
+let vmpp_schedule_hour = "hour"
+let vmpp_schedule_days = "days"
+let vmpp_archive_target_config_location = "location"
+let vmpp_archive_target_config_username = "username"
+let vmpp_archive_target_config_password = "password"
let vmpp_set_is_backup_running = call ~flags:[`Session]
~name:"set_is_backup_running"
~in_oss_since:None
diff -r e4c575199627 -r 80f7b258edfb ocaml/xapi/xapi_vmpp.ml
--- a/ocaml/xapi/xapi_vmpp.ml
+++ b/ocaml/xapi/xapi_vmpp.ml
@@ -69,22 +69,15 @@
"protect_now"
args
-let archive_now ~__context ~snapshot = ""
-(*
- let archive_target_config
+let archive_now ~__context ~snapshot =
+ let snapshot_uuid = Db.VM.get_uuid ~__context ~self:snapshot in
+ let args = [ "snapshot_uuid", snapshot_uuid ] in
Xapi_plugins.call_plugin
(Context.get_session_id __context)
vmpr_plugin
- "mount_archive_target"
+ "archive_now"
args
- Xapi_plugins.call_plugin
- (Context.get_session_id __context)
- vmpr_plugin
- "unmount_archive_target"
- args
-*)
-
let set_is_backup_running ~__context ~self ~value =
Db.VMPP.set_is_backup_running ~__context ~self ~value
let set_is_archive_running ~__context ~self ~value =
xen-api.hg-09.patch
Description: Text Data
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 04 of 21] CP-1801: modify VM import/export to wipe the policy pointer field information, (continued)
- [Xen-API] [PATCH 09 of 21] CP-1704: vmpp.archive-now,
Marcus Granado <=
- [Xen-API] [PATCH 01 of 21] CP-1739: create XAPI datamodel stubs for PR-1031 (VM protection policy), Marcus Granado
- [Xen-API] [PATCH 11 of 21] CP-1835: add optional task-uuid parameter to cli vm-export, Marcus Granado
- [Xen-API] [PATCH 21 of 21] CP-1880: cli autocompletion for vmpp fields, Marcus Granado
- [Xen-API] [PATCH 18 of 21] CP-1739: vmpp.{backup, archive}-last-run-time should be for local-root only, Marcus Granado
- [Xen-API] [PATCH 10 of 21] CP-1800: CLI support for PR-1031 (VM protection policy), Marcus Granado
- [Xen-API] [PATCH 17 of 21] CP-1860: add license checks, Marcus Granado
- [Xen-API] [PATCH 19 of 21] CP-1739: vmpp retention value should be between 1 and 10, Marcus Granado
- [Xen-API] [PATCH 20 of 21] CP-1879: compress data contents in vmpp.create_alert, Marcus Granado
- [Xen-API] [PATCH 15 of 21] CP-1858: add new vmpp message types to api-messages, Marcus Granado
- [Xen-API] [PATCH 13 of 21] CP-1841: add new api call vmpp.get_alerts, Marcus Granado
|
|
|
|
|