feat(vm.set): support for cpuCap (#362)
This commit is contained in:
parent
ea1a7f9376
commit
23082f9300
@ -234,6 +234,14 @@ export default {
|
||||
]
|
||||
},
|
||||
|
||||
cpuCap: {
|
||||
addToLimits: true,
|
||||
get: vm => +(vm.VCPUs_params.cap || 0),
|
||||
set (cap, vm) {
|
||||
return this._updateObjectMapProperty(vm, 'VCPUs_params', { cap })
|
||||
}
|
||||
},
|
||||
|
||||
cpusMax: 'cpusStaticMax',
|
||||
cpusStaticMax: {
|
||||
constraints: {
|
||||
|
Loading…
Reference in New Issue
Block a user