]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/CLI/qmrestore.pm
d/control: remove unused dependency
[qemu-server.git] / PVE / CLI / qmrestore.pm
index 7214c2d62987a339dab47ecc6f63cbc812f7316b..9ec0051233cb195beb88675969b005fd2d81c347 100755 (executable)
@@ -14,6 +14,10 @@ use PVE::API2::Qemu;
 
 use base qw(PVE::CLIHandler);
 
+sub setup_environment {
+    PVE::RPCEnvironment->setup_default_cli_env();
+}
+
 __PACKAGE__->register_method({
     name => 'qmrestore', 
     path => 'qmrestore', 
@@ -49,6 +53,12 @@ __PACKAGE__->register_method({
                type => 'string', format => 'pve-poolid',
                description => "Add the VM to the specified pool.",
            },
+           bwlimit => {
+               description => "Override i/o bandwidth limit (in KiB/s).",
+               optional => 1,
+               type => 'number',
+               minimum => '0',
+           }
        },
     },
     returns => {