From b87844c5db971accdc47204b5b879acbea9bf1c1 Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 6 Dec 2019 14:08:54 +0100 Subject: [PATCH] Add support for mbps options in qemu disks --- proxmox/resource_vm_qemu.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/proxmox/resource_vm_qemu.go b/proxmox/resource_vm_qemu.go index 0b8ba395..bfea64ab 100644 --- a/proxmox/resource_vm_qemu.go +++ b/proxmox/resource_vm_qemu.go @@ -238,6 +238,36 @@ func resourceVmQemu() *schema.Resource { Optional: true, Default: false, }, + //Maximum r/w speed in megabytes per second + "mbps": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + //Maximum read speed in megabytes per second + "mbps_rd": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + //Maximum unthrottled read pool in megabytes per second + "mbps_rd_max": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + //Maximum write speed in megabytes per second + "mbps_wr": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + //Maximum unthrottled write pool in megabytes per second + "mbps_wr_max": &schema.Schema{ + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, }, }, },