mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 15:29:26 +01:00
afb419af04
* Tidy up `VM` extension: use `var` * Tidy up `VM` extension: remove redundant initialisers * Tidy up `VM` extension: use type keywords when possible * Tidy up `VM` extension: merge conditional expressions * Tidy up `VM` extension: remove redundant qualifiers * Tidy up `VM` extension: remove redundant type arguments * Tidy up `VM` extension: remove redundant `else`s and parentheses * Tidy up `VM` extension: fix naming * Tidy up `VM` extension: misc changes * Tidy up `VM` extension: use `null` propagation * Tidy up `VM` extension: fix whitespace * Tidy up `VM` extension: apply ReSharper Code Cleanup utility * Tidy up `VM` extension: Fix naming of private string array * CP-44767: Ignore VM restriction when fetching `MaxVCPUsAllowed` Instead, fetch the highest available value in all templates for the host. This means that VMs imported from vhd won't automatically default to `DEFAULT_NUM_VCPUS_ALLOWED`, and that VMs that have been kept across XenServer upgrades won't be limited to the number of vCPUs in their own (possibly outdated) restrictions * CP-44766: Use value in template with a matching `reference_label` when checking VM restrictions * Move restriction getters to own region * CP-44766: Use matching templates to fetch VM restrictions - Rewrite `GetRestrictions...` methods to perform simpler operations - Add `GetIntRestrictionValue` and `GetBoolRestrictionValue` wrappers to `GetRestrictionValueFromMatchingTemplate` - Now all calls to a restrictions first check the template value, with a fall-back to defaults * CP-44765: Export `reference-label` when generating OVFs --------- Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com> |
||
---|---|---|
.. | ||
Auth.cs | ||
BadServerResponse.cs | ||
Blob.cs | ||
Bond.cs | ||
Certificate.cs | ||
Failure.cs | ||
GPU_group.cs | ||
Host.cs | ||
HostPowerOnMode.cs | ||
IXenObject.cs | ||
Message.cs | ||
Network.cs | ||
PBD.cs | ||
PGPU.cs | ||
PIF.cs | ||
Pool_patch.cs | ||
Pool_update.cs | ||
Pool.cs | ||
PUSB.cs | ||
PVS_cache_storage.cs | ||
pvs_proxy_status.cs | ||
PVS_proxy.cs | ||
PVS_site.cs | ||
Role.cs | ||
Secret.cs | ||
Session.cs | ||
SM.cs | ||
SR.cs | ||
Subject.cs | ||
Task.cs | ||
VBD.cs | ||
VDI.cs | ||
VGPU_type.cs | ||
VGPU.cs | ||
VIF.cs | ||
VM_appliance.cs | ||
VM_Docker_Info.cs | ||
VM_Docker_Version.cs | ||
VM_guest_metrics.cs | ||
vm_power_state.cs | ||
VM.cs | ||
VMSS.cs | ||
XenObject.cs |