[pve-devel] [PATCH v6 common 1/1] schema: take over 'pve-targetstorage' option
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Sep 28 14:50:48 CEST 2022
from qemu-server, for re-use in pve-container.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner at proxmox.com>
---
Notes:
requires versioned breaks on old qemu-server containing the option, to avoid
registering twice
new in v6/follow-up to v5
src/PVE/JSONSchema.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index 54c149d..527e409 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -318,6 +318,13 @@ my $verify_idpair = sub {
return $input;
};
+PVE::JSONSchema::register_standard_option('pve-targetstorage', {
+ description => "Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value '1' will map each source storage to itself.",
+ type => 'string',
+ format => 'storage-pair-list',
+ optional => 1,
+});
+
# note: this only checks a single list entry
# when using a storage-pair-list map, you need to pass the full parameter to
# parse_idmap
--
2.30.2
More information about the pve-devel
mailing list