xenadmin/XenModel/XenAPI-Extensions
Danilo Del Busso afb419af04
CP-44767, CP-44766 & CP-44765: Refactor usage of VM restrictions and add reference_label to OVFs (#3211)
* 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>
2023-09-29 03:45:17 +01:00
..
Auth.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
BadServerResponse.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Blob.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Bond.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Certificate.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Failure.cs Renamed method to match C# conventions. 2023-08-03 13:46:52 +01:00
GPU_group.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Host.cs CP-45097: Show product brand alongside the version on the General and Search tabPage. 2023-09-04 10:32:18 +01:00
HostPowerOnMode.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
IXenObject.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Message.cs CP-43070 adds leaf coalesce alert (#3164) 2023-07-28 13:55:05 +01:00
Network.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PBD.cs Removed integrated storage link code. The feature was removed long ago. 2023-03-30 16:38:56 +01:00
PGPU.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PIF.cs More fixes including CA-381728, CA-381618, CA-381225 (#3205) 2023-08-21 13:35:49 +01:00
Pool_patch.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Pool_update.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Pool.cs Merge branch 'master' into feature/merge 2023-06-13 15:08:36 +01:00
PUSB.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PVS_cache_storage.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
pvs_proxy_status.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PVS_proxy.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PVS_site.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Role.cs Exclude internal roles from friendly listing on UI and logs. 2023-08-03 13:46:52 +01:00
Secret.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Session.cs Renamed method to match C# conventions. 2023-08-03 13:46:52 +01:00
SM.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
SR.cs CA-380218: It was not possible to create VMs with VDIs smaller than the max disk size when the summed size exceeded the latter limit. 2023-07-25 12:24:55 +01:00
Subject.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Task.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VBD.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VDI.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VGPU_type.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VGPU.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VIF.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VM_appliance.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VM_Docker_Info.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VM_Docker_Version.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VM_guest_metrics.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
vm_power_state.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VM.cs CP-44767, CP-44766 & CP-44765: Refactor usage of VM restrictions and add reference_label to OVFs (#3211) 2023-09-29 03:45:17 +01:00
VMSS.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
XenObject.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00