]> git.proxmox.com Git - pve-common.git/commitdiff
Revert "JSONSchema.pm: register new standard option pve-replicate"
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 23 May 2017 11:03:57 +0000 (13:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 May 2017 05:25:52 +0000 (07:25 +0200)
This reverts commit b6501c2fd913d9359a48007594d94a8c8a8745b5.

No longer required, because we use a separate SectionConfig file to
store replication config.

src/PVE/JSONSchema.pm

index 02aa2ab1d0228644b3929ad2541998e836ae4606..921dbb5000d2fb8c6bbc35d8621268dfbd66dddf 100644 (file)
@@ -431,37 +431,6 @@ PVE::JSONSchema::register_standard_option('pve-startup-order', {
     typetext => '[[order=]\d+] [,up=\d+] [,down=\d+] ',
 });
 
-my $replicate_fmt = {
-    target => {
-       default_key => 1,
-       description => "Storage replication target node.",
-       type => 'string', format => 'pve-node',
-       format_description => "node",
-    },
-    rate => {
-       description => "Rate limit in mbps (megabytes per second) as floating point number.",
-       type => 'number',
-       minimum => 1,
-       optional => 1,
-    },
-    interval => {
-       description => "Storage replication sync interval in minutes. If set to zero replication is disabled.",
-       type => 'integer',
-       minimum => 0,
-       maximum => 1440,
-       default => 15,
-       optional => 1,
-    },
-};
-
-PVE::JSONSchema::register_format('pve-replicate', $replicate_fmt);
-
-PVE::JSONSchema::register_standard_option('pve-replicate', {
-    description => "Storage replication settings.",
-    type => 'string', format => 'pve-replicate',
-    optional => 1,
-});
-
 sub check_format {
     my ($format, $value, $path) = @_;