Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
12b2e80
vmware: Fix fetching chain_info of the volumes. It is used to assume …
harikrishna-patnala Jun 11, 2021
9dd0acf
ui: add action syncStoragePool (#5098)
shwstppr Jun 11, 2021
bc12833
server: Failed to scale between Service Offerings with the same root …
GabrielBrascher Jun 14, 2021
b6e4329
ui: Greek (Hellenic) translation (#5109)
fermosan Jun 15, 2021
006d0fe
ui: show read from ova only for ova format (#5108)
shwstppr Jun 15, 2021
67182dc
vxlan: arp does not work between hosts as multicast group is communic…
weizhouapache Jun 16, 2021
07cabbe
scaleio: Updated PowerFlex/ScaleIO gateway client with some improveme…
sureshanaparti Jun 16, 2021
2e32c2f
travis: allow big contents from error output in marvin tests (#5113)
DaanHoogland Jun 16, 2021
326e03b
ui: Fix typo in error message on login page (#5118)
Pearl1594 Jun 16, 2021
46a3032
server: set correct gateway when update vm nic on shared networks (#5…
weizhouapache Jun 16, 2021
d2ab350
Merge branch '4.15' into main
nvazquez Jun 16, 2021
a3f39db
server: Remove meaningless password regeneration on resetSSHKeyForVir…
GutoVeronezi Jun 17, 2021
85e4abf
ui: Show default nic/network in infocard (#5080)
davidjumani Jun 17, 2021
2ececbf
kvm: Improve logs on agent start (#4958)
GutoVeronezi Jun 17, 2021
8e33cf7
kvm: fix of detach volume while OS is in boot state (#4572)
slavkap Jun 18, 2021
3a51540
ui: Notify vm password on reinstall of VM (for password enabled templ…
Pearl1594 Jun 18, 2021
4f6851f
Some missed inclusivity changes - use inclusive words/terms as approp…
sureshanaparti Jun 18, 2021
fb6cb0a
prepare the template impl
cron-ns Jun 23, 2021
77c39c2
clear the dot record for later test
cron-ns Jun 23, 2021
53c2e19
ui: Fix UI issue when deploying VM with rootdisksize (GB now, not in …
GabrielBrascher Jun 24, 2021
347f8a5
VR: fix source cidr of egress rules are not applied (#5143)
weizhouapache Jun 24, 2021
0eeb094
ui: watch the systemVM for enabling quickview when newly resource (#5…
Jun 24, 2021
faa5743
systemvm: Change logrotate interval to hourly (#5132)
ravening Jun 24, 2021
b9712c6
ui: fix missing component in SearchView (#5123)
shwstppr Jun 24, 2021
5195f8b
packaging: Create cloud user and group if not present (#5115)
davidjumani Jun 24, 2021
a4448b4
ui: Notify users of new VM password on resetting VM's SSH key (#5153)
Pearl1594 Jun 24, 2021
1a7bfa9
Follow consistent vo table name convention (#5004)
davidjumani Jun 24, 2021
29109b4
db: Cleanup obsolete tables (#5002)
davidjumani Jun 24, 2021
d829093
server: Fix of delete of Ceph's snapshots from secondary storage (#5130)
slavkap Jun 25, 2021
5edcf33
vxlan: Fix failure to delete vxlan (#5079)
Pearl1594 Jun 25, 2021
1971a39
checks for VM are implemented
cron-ns Jun 25, 2021
3687110
fix checkstyle
cron-ns Jun 25, 2021
fbb886c
compilation fixed
cron-ns Jun 25, 2021
16d75da
checkClone debug
cron-ns Jun 25, 2021
779681c
server state update
cron-ns Jun 25, 2021
5a81d2b
add and statement
cron-ns Jun 25, 2021
6f4fca9
fix null error
cron-ns Jun 25, 2021
aa80972
Fix configuration of ntp server list in systemVMs (#5160)
Pearl1594 Jun 26, 2021
5396325
server: Bug/false positive success message vm start (#5148)
DK101010 Jun 27, 2021
f58b72f
Merge remote-tracking branch 'origin/4.15'
yadvr Jun 27, 2021
379454c
Updating pom.xml version numbers for release 4.15.1.0
yadvr Jun 28, 2021
896b033
test hit the current vm information
cron-ns Jun 28, 2021
cfd131c
fix typo of star import
cron-ns Jun 28, 2021
9677858
fix the null pt except
cron-ns Jun 28, 2021
85129ee
add vm record creation code
cron-ns Jun 28, 2021
b6607f4
add the user vm db creation code
cron-ns Jun 28, 2021
afae560
add vm creation typo fix
cron-ns Jun 28, 2021
0a1405d
change ip to available
cron-ns Jun 28, 2021
64c0fd5
fix ip issue
cron-ns Jun 28, 2021
e04dc22
fix the vm creation detail
cron-ns Jun 28, 2021
ee2c9ce
tests: Skip test_persistent_networks if kvm and ovs (#5128)
davidjumani Jun 28, 2021
9ac3925
server: list routers by healthchecksfailed (#4886)
ustcweizhou Jun 29, 2021
9fd38c4
server: Display proper names in error message (#5140)
ravening Jun 29, 2021
7835c08
tests: formatting and cleanup fixes for test_volumes (#5146)
DaanHoogland Jun 29, 2021
4645863
tests: Fix test failures for Local storage and Basic zones (#5106)
davidjumani Jul 1, 2021
0d72886
Replace the DB properties having master and slave(s), with source and…
sureshanaparti Jul 1, 2021
9ee6a57
ui: deployvm - Add option to stay on page (#4843)
davidjumani Jul 1, 2021
5fd970d
db, server: refactor host_view to prevent duplicate entries (#4796)
shwstppr Jul 1, 2021
293dd4d
volume: Fix deletion of Uploaded volumes (#5125)
Pearl1594 Jul 1, 2021
7bef87f
template zone addition code
cron-ns Jul 2, 2021
d15f620
trail-issue-1
cron-ns Jul 2, 2021
fee4a95
change test ip address
cron-ns Jul 2, 2021
f81d79d
Updated some offensive words in kubernetes plugin/service with inclus…
sureshanaparti Jul 2, 2021
eecacc0
add template download record
cron-ns Jul 2, 2021
6e8c114
Merge remote-tracking branch 'origin/4.15' into main
yadvr Jul 2, 2021
337e8c7
Merge tag '4.15.1.0' into 4.15
yadvr Jul 2, 2021
d916e41
Updating pom.xml version numbers for release 4.15.2.0-SNAPSHOT
yadvr Jul 2, 2021
0a7dafd
Merge remote-tracking branch 'origin/4.15' into main
yadvr Jul 2, 2021
31824f2
get the template created and prepare for the vm start
cron-ns Jul 4, 2021
e3bf894
fix unknown symbol
cron-ns Jul 4, 2021
99e5043
finish the final private creation
cron-ns Jul 4, 2021
40abfac
add logger information
cron-ns Jul 4, 2021
d235477
add autobox statement
cron-ns Jul 4, 2021
a48d7fa
add template Id setting
cron-ns Jul 5, 2021
7fb0994
use uuid as replacement of template
cron-ns Jul 5, 2021
ed9ac4e
fix the template recording bug
cron-ns Jul 5, 2021
23a53cb
fix instance creation null
cron-ns Jul 5, 2021
53785ed
fix the template creation sequence
cron-ns Jul 5, 2021
50bf286
server: Fix NPE during destroy VM (#5142)
Pearl1594 Jul 5, 2021
6651427
server: Fix NPE when no recipients configured for sending alerts (#5154)
Pearl1594 Jul 5, 2021
f286f01
kvm: fix VM HA on zone-wide storage pools (#5164)
weizhouapache Jul 5, 2021
306a7f4
finish the start vm coding
cron-ns Jul 5, 2021
9533054
ui: Changes of the german translation (#5173)
j-porsche Jul 5, 2021
584c1cf
ui: secondary storage - Display text and change the badge color of th…
Jul 5, 2021
16d0795
Merge remote-tracking branch 'origin/4.15' into main
yadvr Jul 5, 2021
8ecb6a5
fix start virtual machine null pointer bug
cron-ns Jul 5, 2021
a1bf574
add public ip address for kvm host test
cron-ns Jul 5, 2021
9639389
new clone ip added
cron-ns Jul 5, 2021
0871f74
change test ip to 98
cron-ns Jul 5, 2021
f5b896e
fixing the first password issue
cron-ns Jul 7, 2021
8bebd3b
fix the style code
cron-ns Jul 7, 2021
21ac7a7
audit the star
cron-ns Jul 7, 2021
385df67
location type changed
cron-ns Jul 7, 2021
cec1ee9
fix the snapshot policy
cron-ns Jul 7, 2021
d4d7570
add automatic ip assignment-
cron-ns Jul 8, 2021
52f2810
add ip allocation
cron-ns Jul 8, 2021
1a475b3
fix the check-style typo
cron-ns Jul 8, 2021
b64c48b
try null address for vm creation
cron-ns Jul 8, 2021
6b145d1
ignore unused ip
cron-ns Jul 8, 2021
fbf3753
finish the network allocation
cron-ns Jul 8, 2021
63c7c5e
datadisk code added
cron-ns Jul 9, 2021
f7cc3c9
UI - zone wizard - fix undefined property when setting RBD primary st…
Jul 9, 2021
3fd9250
Prevent starting a VM in destroyed state (or any state but Stopped) (…
Pearl1594 Jul 9, 2021
a8cfb77
Document cidrlist parameter deprecation (#4037)
srgoni Jul 9, 2021
fcb8152
fix the import typos
cron-ns Jul 9, 2021
78d5295
fix the service api impl
cron-ns Jul 11, 2021
1414e3a
clear unused import
cron-ns Jul 11, 2021
8771728
ake the data disk shown
cron-ns Jul 11, 2021
c6279ce
data disk snapshot clearance and exception handler
cron-ns Jul 12, 2021
2e376f2
marvin: make deployDataCenter.py script py2/py3 compatible (#5139)
Pearl1594 Jul 13, 2021
b5d7535
expunge vm: Allow expunging a VM in destroyed state (#5183)
Pearl1594 Jul 13, 2021
ca78f5b
Enhance log messages with host name (#4575)
GabrielBrascher Jul 13, 2021
9678c7b
ui: Fix traversal to domain details via domain router-link of a resou…
Pearl1594 Jul 13, 2021
8fd5eb5
resolve main branch conflict
cron-ns Jul 14, 2021
041948c
ui: refactor labels with tooltip in forms (#5133)
shwstppr Jul 15, 2021
0406e27
ui: refactor get api params in forms (#5064)
shwstppr Jul 15, 2021
f98d35d
api: Ensure required parameters are not empty (#5136)
davidjumani Jul 15, 2021
cf0f1fe
configdrive: fix some failures in tests/component/test_configdrive.py…
weizhouapache Jul 15, 2021
476f77a
ui: change `edit traffic type` form of VMware (#5178)
Jul 15, 2021
6b5adb7
ui: register vue component Descriptions (#5197)
mib1185 Jul 15, 2021
7123269
ui: deploy VM - FIX missing custom iops field (#5199)
Jul 15, 2021
757bc2d
vmware: fix migrate vm with volume (#5170)
shwstppr Jul 15, 2021
50a1697
refactor: migrate vm with storage (#5030)
shwstppr Jul 15, 2021
e0141ab
server: fix network access for addNicToVirtualMachine API (#5184)
shwstppr Jul 15, 2021
cc27c70
systemvmtemplate: use latest LTS kernel from buster-ports (#5073)
yadvr Jul 15, 2021
1d831a3
kvmk: KVM NFS disk IO driver supporting IO_URING (#5012)
GabrielBrascher Jul 15, 2021
5228fae
kvm: pre-add 32 PCI controller for hot-plug issue on ARM64 (#5193)
yadvr Jul 15, 2021
5ac184e
Merge remote-tracking branch 'apache/4.15' into main
shwstppr Jul 15, 2021
579fe8a
Merge pull request #1 from atrocitytheme/test
atrocitytheme Jul 15, 2021
a005f1c
Merge branch 'apache:main' into main
atrocitytheme Jul 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4 api/src/main/java/com/cloud/network/NetworkModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ public interface NetworkModel {

List<? extends Network> listNetworksUsedByVm(long vmId, boolean isSystem);

default List<Long> listNetworksUsedByVm(long vmId) {
throw new UnsupportedOperationException();
}

Nic getNicInNetwork(long vmId, long networkId);

List<? extends Nic> getNicsForTraffic(long vmId, TrafficType type);
Expand Down
6 changes: 6 additions & 0 deletions 6 api/src/main/java/com/cloud/storage/VolumeApiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.net.MalformedURLException;
import java.util.Map;

import com.cloud.exception.StorageUnavailableException;
import org.apache.cloudstack.api.command.user.vm.CloneVMCmd;
import org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd;
import org.apache.cloudstack.api.command.user.volume.CreateVolumeCmd;
import org.apache.cloudstack.api.command.user.volume.DetachVolumeCmd;
Expand Down Expand Up @@ -92,6 +94,8 @@ public interface VolumeApiService {

Volume detachVolumeViaDestroyVM(long vmId, long volumeId);

Volume cloneDataVolume(CloneVMCmd cmd, long snapshotId, Volume volume) throws StorageUnavailableException;

Volume detachVolumeFromVM(DetachVolumeCmd cmd);

Snapshot takeSnapshot(Long volumeId, Long policyId, Long snapshotId, Account account, boolean quiescevm, Snapshot.LocationType locationType, boolean asyncBackup, Map<String, String> tags)
Expand All @@ -101,6 +105,8 @@ Snapshot takeSnapshot(Long volumeId, Long policyId, Long snapshotId, Account acc

Volume updateVolume(long volumeId, String path, String state, Long storageId, Boolean displayVolume, String customId, long owner, String chainInfo);

Volume attachVolumeToVm(CloneVMCmd cmd, Long volumeId, Long deviceId);

/**
* Extracts the volume to a particular location.
*
Expand Down
6 changes: 3 additions & 3 deletions 6 api/src/main/java/com/cloud/template/TemplateApiService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.net.URISyntaxException;
import java.util.List;

import com.cloud.exception.ResourceUnavailableException;
import com.cloud.storage.VolumeApiService;
import org.apache.cloudstack.api.BaseListTemplateOrIsoPermissionsCmd;
import org.apache.cloudstack.api.BaseUpdateTemplateOrIsoPermissionsCmd;
import org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd;
Expand Down Expand Up @@ -104,9 +104,9 @@ public interface TemplateApiService {
/**
* create a template record for later usage of creating a real template by createPrivateTemplate
* */
VirtualMachineTemplate createPrivateTemplateRecord(CloneVMCmd cmd, Account templateOwner) throws ResourceAllocationException;
VirtualMachineTemplate createPrivateTemplateRecord(CloneVMCmd cmd, Account templateOwner, VolumeApiService serviceObj) throws ResourceAllocationException;

VirtualMachineTemplate createPrivateTemplateRecord(CloneVMCmd cmd) throws CloudRuntimeException;
VirtualMachineTemplate createPrivateTemplate(CloneVMCmd cmd) throws CloudRuntimeException;

VirtualMachineTemplate createPrivateTemplateRecord(CreateTemplateCmd cmd, Account templateOwner) throws ResourceAllocationException;

Expand Down
9 changes: 7 additions & 2 deletions 9 api/src/main/java/com/cloud/vm/UserVmService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import java.util.Map;
import java.util.Optional;

import com.cloud.storage.VolumeApiService;
import com.cloud.storage.snapshot.SnapshotApiService;
import org.apache.cloudstack.api.BaseCmd.HTTPMethod;
import org.apache.cloudstack.api.command.admin.vm.AssignVMCmd;
import org.apache.cloudstack.api.command.admin.vm.RecoverVMCmd;
Expand Down Expand Up @@ -94,9 +96,9 @@ public interface UserVmService {
* - the command specifying vmId to be cloned
* @return the VM if cloneVM operation is successful
* */
Optional<UserVm> cloneVirtualMachine(CloneVMCmd cmd) throws ResourceUnavailableException, ConcurrentOperationException;
Optional<UserVm> cloneVirtualMachine(CloneVMCmd cmd, VolumeApiService volumeService, SnapshotApiService snapshotService) throws ResourceUnavailableException, ConcurrentOperationException, InsufficientCapacityException, ResourceAllocationException;

void checkCloneCondition(CloneVMCmd cmd) throws ResourceUnavailableException, ConcurrentOperationException;
void checkCloneCondition(CloneVMCmd cmd) throws ResourceUnavailableException, ConcurrentOperationException, ResourceAllocationException;

/**
* Resets the password of a virtual machine.
Expand Down Expand Up @@ -442,6 +444,9 @@ UserVm createAdvancedVirtualMachine(DataCenter zone, ServiceOffering serviceOffe
UserVm createVirtualMachine(DeployVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException,
StorageUnavailableException, ResourceAllocationException;

UserVm recordVirtualMachineToDB(CloneVMCmd cmd) throws InsufficientCapacityException, ResourceUnavailableException, ConcurrentOperationException,
StorageUnavailableException, ResourceAllocationException;

UserVm getUserVm(long vmId);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ public class ApiConstants {
public static final String UCS_BLADE_DN = "bladedn";
public static final String UCS_BLADE_ID = "bladeid";
public static final String VM_GUEST_IP = "vmguestip";
public static final String HEALTHCHECK_FAILED = "healthchecksfailed";
public static final String HEALTHCHECK_RESPONSE_TIMEOUT = "responsetimeout";
public static final String HEALTHCHECK_INTERVAL_TIME = "intervaltime";
public static final String HEALTHCHECK_HEALTHY_THRESHOLD = "healthythreshold";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ public String getCreateEventType() {
public String getCreateEventDescription() {
return null;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import org.apache.cloudstack.acl.RolePermissionEntity.Permission;
import org.apache.cloudstack.acl.Rule;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.Parameter;
Expand All @@ -32,8 +31,7 @@ public abstract class BaseRolePermissionCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////

@Parameter(name = ApiConstants.RULE, type = CommandType.STRING, required = true, description = "The API name or wildcard rule such as list*",
validations = {ApiArgValidator.NotNullOrEmpty})
@Parameter(name = ApiConstants.RULE, type = CommandType.STRING, required = true, description = "The API name or wildcard rule such as list*")
private String rule;

@Parameter(name = ApiConstants.PERMISSION, type = CommandType.STRING, required = true, description = "The rule permission, allow or deny. Default: deny.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.Parameter;
import org.apache.cloudstack.api.ServerApiException;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.response.RoleResponse;
import org.apache.cloudstack.context.CallContext;

Expand All @@ -42,7 +41,7 @@ public class CreateRoleCmd extends RoleCmd {
/////////////////////////////////////////////////////

@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true,
description = "Creates a role with this unique name", validations = {ApiArgValidator.NotNullOrEmpty})
description = "Creates a role with this unique name")
private String roleName;

@Parameter(name = ApiConstants.ROLE_ID, type = CommandType.UUID, entityType = RoleResponse.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.acl.Rule;
import org.apache.cloudstack.api.APICommand;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.ApiServerService;
Expand All @@ -56,7 +55,7 @@ public class ImportRoleCmd extends RoleCmd {
/////////////////////////////////////////////////////

@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true,
description = "Creates a role with this unique name", validations = {ApiArgValidator.NotNullOrEmpty})
description = "Creates a role with this unique name")
private String roleName;

@Parameter(name = ApiConstants.RULES, type = CommandType.MAP, required = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.cloudstack.acl.ProjectRole;
import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.api.APICommand;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.BaseCmd;
Expand All @@ -42,7 +41,7 @@ public class CreateProjectRoleCmd extends ProjectRoleCmd {
/////////////////////////////////////////////////////

@Parameter(name = ApiConstants.NAME, type = BaseCmd.CommandType.STRING, required = true,
description = "creates a project role with this unique name", validations = {ApiArgValidator.NotNullOrEmpty})
description = "creates a project role with this unique name")
private String projectRoleName;

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class CreateProjectRolePermissionCmd extends BaseRolePermissionCmd {
private Long projectRoleId;

@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, required = true, entityType = ProjectResponse.class,
description = "ID of project where project role permission is to be created", validations = {ApiArgValidator.NotNullOrEmpty})
description = "ID of project where project role permission is to be created")
private Long projectId;

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.cloudstack.api.command.admin.acl.project;

import org.apache.cloudstack.acl.ProjectRole;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.Parameter;
Expand All @@ -31,7 +30,7 @@ public abstract class ProjectRoleCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, required = true, entityType = ProjectResponse.class,
description = "ID of project where role is being created", validations = {ApiArgValidator.NotNullOrEmpty})
description = "ID of project where role is being created")
private Long projectId;

@Parameter(name = ApiConstants.DESCRIPTION, type = BaseCmd.CommandType.STRING, description = "The description of the Project role")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class UpdateProjectRolePermissionCmd extends BaseCmd {
private Long projectRoleId;

@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, required = true, entityType = ProjectResponse.class,
description = "ID of project where project role permission is to be updated", validations = {ApiArgValidator.NotNullOrEmpty})
description = "ID of project where project role permission is to be updated")
private Long projectId;

@Parameter(name = ApiConstants.RULE_ORDER, type = CommandType.LIST, collectionType = CommandType.UUID, entityType = ProjectRolePermissionResponse.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ public class RunDiagnosticsCmd extends BaseAsyncCmd {
private Long id;

@Parameter(name = ApiConstants.IP_ADDRESS, type = CommandType.STRING, required = true,
validations = {ApiArgValidator.NotNullOrEmpty},
description = "The IP/Domain address to test connection to")
private String address;

@Parameter(name = ApiConstants.TYPE, type = CommandType.STRING, required = true,
validations = {ApiArgValidator.NotNullOrEmpty},
description = "The system VM diagnostics type valid options are: ping, traceroute, arping")
private String type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class ConfigureHAForHostCmd extends BaseAsyncCmd {
private Long hostId;

@Parameter(name = ApiConstants.PROVIDER, type = CommandType.STRING,
description = "HA provider", required = true, validations = {ApiArgValidator.NotNullOrEmpty})
description = "HA provider", required = true)
private String haProvider;

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.google.common.base.Enums;
import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.api.APICommand;
import org.apache.cloudstack.api.ApiArgValidator;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.BaseCmd;
Expand Down Expand Up @@ -57,7 +56,7 @@ public final class ListHostHAProvidersCmd extends BaseCmd {
/////////////////////////////////////////////////////

@Parameter(name = ApiConstants.HYPERVISOR, type = CommandType.STRING, required = true,
description = "Hypervisor type of the resource", validations = {ApiArgValidator.NotNullOrEmpty})
description = "Hypervisor type of the resource")
private String hypervisorType;

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,19 @@ public class CreateManagementNetworkIpRangeCmd extends BaseAsyncCmd {
@Parameter(name = ApiConstants.GATEWAY,
type = CommandType.STRING,
required = true,
description = "The gateway for the management network.",
validations = {ApiArgValidator.NotNullOrEmpty})
description = "The gateway for the management network.")
private String gateway;

@Parameter(name = ApiConstants.NETMASK,
type = CommandType.STRING,
required = true,
description = "The netmask for the management network.",
validations = {ApiArgValidator.NotNullOrEmpty})
description = "The netmask for the management network.")
private String netmask;

@Parameter(name = ApiConstants.START_IP,
type = CommandType.STRING,
required = true,
description = "The starting IP address.",
validations = {ApiArgValidator.NotNullOrEmpty})
description = "The starting IP address.")
private String startIp;

@Parameter(name = ApiConstants.END_IP,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public class CreateNetworkOfferingCmd extends BaseCmd {

@Parameter(name = ApiConstants.SUPPORTED_SERVICES,
type = CommandType.LIST,
required = true,
collectionType = CommandType.STRING,
description = "services supported by the network offering")
private List<String> supportedServices;
Expand Down Expand Up @@ -205,7 +204,7 @@ public Long getServiceOfferingId() {
}

public List<String> getSupportedServices() {
return supportedServices;
return supportedServices == null ? new ArrayList<String>() : supportedServices;
}

public String getGuestIpType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@ public class DeleteManagementNetworkIpRangeCmd extends BaseAsyncCmd {
@Parameter(name = ApiConstants.START_IP,
type = CommandType.STRING,
required = true,
description = "The starting IP address.",
validations = ApiArgValidator.NotNullOrEmpty)
description = "The starting IP address.")
private String startIp;

@Parameter(name = ApiConstants.END_IP,
type = CommandType.STRING,
required = true,
description = "The ending IP address.",
validations = ApiArgValidator.NotNullOrEmpty)
description = "The ending IP address.")
private String endIp;

@Parameter(name = ApiConstants.VLAN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class IssueOutOfBandManagementPowerActionCmd extends BaseAsyncCmd {
private Long actionTimeout;

@Parameter(name = ApiConstants.ACTION, type = CommandType.STRING, required = true,
validations = {ApiArgValidator.NotNullOrEmpty}, description = "out-of-band management power actions, valid actions are: ON, OFF, CYCLE, RESET, SOFT, STATUS")
description = "out-of-band management power actions, valid actions are: ON, OFF, CYCLE, RESET, SOFT, STATUS")
private String powerAction;

/////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public class ListRoutersCmd extends BaseListProjectAndAccountResourcesCmd {
@Parameter(name = ApiConstants.VERSION, type = CommandType.STRING, description = "list virtual router elements by version")
private String version;

@Parameter(name = ApiConstants.HEALTHCHECK_FAILED, type = CommandType.BOOLEAN, since = "4.16",
description = "if this parameter is passed, list only routers by health check results")
private Boolean healthCheckFailed;

@Parameter(name = ApiConstants.FETCH_ROUTER_HEALTH_CHECK_RESULTS, type = CommandType.BOOLEAN, since = "4.14",
description = "if true is passed for this parameter, also fetch last executed health check results for the router. Default is false")
private Boolean fetchHealthCheckResults;
Expand Down Expand Up @@ -137,6 +141,10 @@ public String getRole() {
return Role.VIRTUAL_ROUTER.toString();
}

public Boolean isHealthCheckFailed() {
return healthCheckFailed;
}

public boolean shouldFetchHealthCheckResults() {
return BooleanUtils.isTrue(fetchHealthCheckResults);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class CreateFirewallRuleCmd extends BaseAsyncCreateCmd implements Firewal
@Parameter(name = ApiConstants.END_PORT, type = CommandType.INTEGER, description = "the ending port of firewall rule")
private Integer publicEndPort;

@Parameter(name = ApiConstants.CIDR_LIST, type = CommandType.LIST, collectionType = CommandType.STRING, description = "the CIDR list to forward traffic from. Multiple entries must be separated by a single comma character (,).")
@Parameter(name = ApiConstants.CIDR_LIST, type = CommandType.LIST, collectionType = CommandType.STRING, description = "the CIDR list to forward traffic from. Multiple entries must be separated by a single comma character (,). This parameter is deprecated. Do not use.")
private List<String> cidrlist;

@Parameter(name = ApiConstants.ICMP_TYPE, type = CommandType.INTEGER, description = "type of the ICMP message being sent")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class CreatePortForwardingRuleCmd extends BaseAsyncCreateCmd implements P
description = "the ID of the virtual machine for the port forwarding rule")
private Long virtualMachineId;

@Parameter(name = ApiConstants.CIDR_LIST, type = CommandType.LIST, collectionType = CommandType.STRING, description = "the cidr list to forward traffic from. Multiple entries must be separated by a single comma character (,).")
@Parameter(name = ApiConstants.CIDR_LIST, type = CommandType.LIST, collectionType = CommandType.STRING, description = "the cidr list to forward traffic from. Multiple entries must be separated by a single comma character (,). This parameter is deprecated. Do not use.")
private List<String> cidrlist;

@Parameter(name = ApiConstants.OPEN_FIREWALL, type = CommandType.BOOLEAN, description = "if true, firewall rule for source/end public port is automatically created; "
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.