from qemu-server, for re-use in pve-container. Signed-off-by: Fabian Grünbichler <f.gruenbich...@proxmox.com> ---
Notes: requires versioned breaks on old qemu-server containing the option, to avoid registering twice src/PVE/JSONSchema.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 65055e0..ec53428 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -317,6 +317,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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel