[pve-devel] [PATCH v2 pve-guest-common 5/5] PVE/ReplicationConfig.pm: add remove_job property

Dietmar Maurer dietmar at proxmox.com
Tue May 30 15:12:35 CEST 2017


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 PVE/ReplicationConfig.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/PVE/ReplicationConfig.pm b/PVE/ReplicationConfig.pm
index 7b437f8..b46e82b 100644
--- a/PVE/ReplicationConfig.pm
+++ b/PVE/ReplicationConfig.pm
@@ -41,6 +41,12 @@ my $defaultData = {
 	    optional => 1,
 	    maxLength => 4096,
 	},
+	remove_job => {
+	    description => "Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file.",
+	    type => 'string',
+	    enum => ['local', 'full']
+	    optional => 1,
+	},
 	guest => get_standard_option('pve-vmid', {
 	    optional => 1,
 	    completion => \&PVE::Cluster::complete_vmid }),
@@ -205,6 +211,7 @@ sub options {
 	comment => { optional => 1 },
 	rate => { optional => 1 },
 	schedule => { optional => 1 },
+	remove_job => { optional => 1 },
     };
 }
 
-- 
2.11.0




More information about the pve-devel mailing list