xenadmin/XenModel/Actions
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
..
AD Renamed Post2X version to Cloud. Added more Xml docs. 2023-06-13 14:48:23 +01:00
CustomFields Revised Rbac checks for addition/removal of custom fields. 2023-02-28 21:25:02 +00:00
DockerContainer Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
DR Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
Folders Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
GPU Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
HealthCheck CP-42155: Removed HealthCheck service and related dialogs. 2023-02-21 16:05:09 +00:00
Host Stop retrieving values from Messages.resx by passing hardcoded strings to the Messages.ResourceManager. 2023-08-29 20:57:21 +01:00
Network Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
OvfActions 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
Perfmon Rewrote the PerfmonAlertOptionsPage to simplify the code and fix issue whereby the settings were saved even if nothing had changed. 2023-06-05 18:47:18 +01:00
Pool 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
Pool_Patch Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
Pool_update Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
PVS Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
SR Simplified SrAction by splitting it to four different actions. Fixed RBAC permissions when detaching SR and destroying PBDs. 2023-04-03 13:55:02 +01:00
StatusReport CA-375900: Prepend \\?\ to file paths when creating streams for archive generation (#3184) 2023-09-22 15:41:54 +01:00
SupplementalPack Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
Updates Removed obsolete project CFUValidator. 2023-09-12 10:11:58 +01:00
USB Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VBD 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
VDI Missing RBAC permission checks for CreateDiskAction. 2023-02-28 15:36:13 +00:00
VIF Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VM 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
VMAppliances Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VMSS Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
WLB Moved two WLB actions to the same folder as the rest of the WLB actions. Removed obsolete messages. 2023-08-29 20:57:21 +01:00
XCM Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
ActionBase.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
AsyncAction.cs Renamed method to match C# conventions. 2023-08-03 13:46:52 +01:00
CancellingAction.cs CP-40407: Removed fakeAPI and usage of XmlRpcProxy classes in the application. 2023-03-31 14:17:55 +01:00
DelegatedAsyncAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
DummyAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
GetDataSourcesAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
MultipleAction.cs CP-43265: Added new dialog to configure updates for servers. 2023-07-28 09:36:54 +01:00
MultipleActionLauncher.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
ParallelAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
ProduceConsumerQueue.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00
SaveChangesAction.cs Merge remote-tracking branch 'upstream/feature/rebrand' 2023-02-08 16:41:07 +00:00
VtpmAction.cs Updated copyright notice on files. 2023-01-30 16:24:16 +00:00