Merge pull request #125 from V-Paranoiaque/feature/mbps

Add parameters to the disk to set read/write limits
This commit is contained in:
Grant Gongaware 2019-12-16 12:34:06 -08:00 committed by GitHub
commit 7adcc1b554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,6 +248,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,
},
},
},
},