From: Fabian Grünbichler Date: Wed, 28 Sep 2022 12:50:48 +0000 (+0200) Subject: schema: take over 'pve-targetstorage' option X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=666b0d869c223c89dab5164398bbe37187ba9c12;hp=41596147d049bb880969d9c6609dbc58018f352b;p=pve-common.git schema: take over 'pve-targetstorage' option from qemu-server, for re-use in pve-container. Signed-off-by: Fabian Grünbichler Reviewed-by: Fiona Ebner --- 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