xenadmin/XenModel/Actions/VM
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
..
ChangeMemorySettingsAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
ChangeVCPUSettingsAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
ChangeVMISOAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
CreateCdDriveAction.cs CA-375805: Fixed various issues when an unprivileged user tries to add a disk to a VM: 2023-06-08 14:02:22 +01:00
CreateVMAction.cs CA-376894: The allowed_operations are not refreshed after vTPM removal in xapi 23.10.0. 2023-05-05 14:43:12 +01:00
CreateVMFastAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
ExportVmAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
GpuAssignAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
HAUnprotectVMAction.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
HVMBootAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
ImportVmAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
InstallPVToolsAction.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
ResumeAndStartVMsAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
SetHaPrioritiesAction.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
SetVMOtherConfigAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
SetVMStartupOptionsAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
SuspendAndShutdownVMsAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VMCloneAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VMCopyAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VMCrossPoolMigrateAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMDestroyAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMMigrateAction.cs CA-376686: There is no API call "live_migrate". 2023-04-28 10:12:04 +01:00
VMMoveAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VMRebootAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMShutdownAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMSnapshotCreateAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMSnapshotDeleteAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMSnapshotRevertAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMStartAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
VMToTemplateAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00