Skip to content

Commit 6bf82a1

Browse files
authored
Merge branch '4.22' into improve-error-messages
2 parents 5c8d2c9 + 128dbe2 commit 6bf82a1

File tree

145 files changed

+1530
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1530
-580
lines changed

api/src/main/java/com/cloud/network/NetworkModel.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public interface NetworkModel {
125125
*/
126126
String getNextAvailableMacAddressInNetwork(long networkConfigurationId) throws InsufficientAddressCapacityException;
127127

128+
String getUniqueMacAddress(long macAddress, long networkId, long datacenterId) throws InsufficientAddressCapacityException;
129+
130+
boolean isMACUnique(String mac, long networkId);
131+
128132
PublicIpAddress getPublicIpAddress(long ipAddressId);
129133

130134
List<? extends Vlan> listPodVlans(long podId);
@@ -364,4 +368,8 @@ List<String[]> generateVmData(String userData, String userDataDetails, String se
364368

365369
boolean checkSecurityGroupSupportForNetwork(Account account, DataCenter zone, List<Long> networkIds,
366370
List<Long> securityGroupsIds);
371+
372+
default long getMacIdentifier(Long dataCenterId) {
373+
return 0;
374+
}
367375
}

api/src/main/java/com/cloud/vm/VmDetailConstants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public interface VmDetailConstants {
5555
String NIC_MULTIQUEUE_NUMBER = "nic.multiqueue.number";
5656
String NIC_PACKED_VIRTQUEUES_ENABLED = "nic.packed.virtqueues.enabled";
5757

58+
// KVM specific, disk controllers
59+
String KVM_SKIP_FORCE_DISK_CONTROLLER = "skip.force.disk.controller";
60+
5861
// Mac OSX guest specific (internal)
5962
String SMC_PRESENT = "smc.present";
6063
String FIRMWARE = "firmware";

api/src/main/java/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ public class ApiConstants {
12151215
public static final String DOCKER_REGISTRY_EMAIL = "dockerregistryemail";
12161216
public static final String ISO_NAME = "isoname";
12171217
public static final String ISO_STATE = "isostate";
1218+
public static final String ISO_URL = "isourl";
12181219
public static final String SEMANTIC_VERSION = "semanticversion";
12191220
public static final String KUBERNETES_VERSION_ID = "kubernetesversionid";
12201221
public static final String KUBERNETES_VERSION_NAME = "kubernetesversionname";

api/src/main/java/org/apache/cloudstack/api/BaseUpdateTemplateOrIsoCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public abstract class BaseUpdateTemplateOrIsoCmd extends BaseCmd {
4242
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = TemplateResponse.class, required = true, description = "The ID of the image file")
4343
private Long id;
4444

45-
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "The name of the image file")
45+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, length = 251, description = "The name of the image file")
4646
private String templateName;
4747

4848
@Parameter(name = ApiConstants.OS_TYPE_ID,

api/src/main/java/org/apache/cloudstack/api/command/admin/network/UpdateNetworkOfferingCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public class UpdateNetworkOfferingCmd extends BaseCmd {
7878

7979
@Parameter(name = ApiConstants.DOMAIN_ID,
8080
type = CommandType.STRING,
81+
length = 4096,
8182
description = "The ID of the containing domain(s) as comma separated string, public for public offerings")
8283
private String domainIds;
8384

api/src/main/java/org/apache/cloudstack/api/command/admin/offering/UpdateDiskOfferingCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public class UpdateDiskOfferingCmd extends BaseCmd {
7575
@Parameter(name = ApiConstants.ZONE_ID,
7676
type = CommandType.STRING,
7777
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
78+
length = 4096,
7879
since = "4.13")
7980
private String zoneIds;
8081

api/src/main/java/org/apache/cloudstack/api/command/admin/offering/UpdateServiceOfferingCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public class UpdateServiceOfferingCmd extends BaseCmd {
7070
@Parameter(name = ApiConstants.ZONE_ID,
7171
type = CommandType.STRING,
7272
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
73+
length = 4096,
7374
since = "4.13")
7475
private String zoneIds;
7576

api/src/main/java/org/apache/cloudstack/api/command/admin/vpc/UpdateVPCOfferingCmd.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public class UpdateVPCOfferingCmd extends BaseAsyncCmd {
6565
@Parameter(name = ApiConstants.ZONE_ID,
6666
type = CommandType.STRING,
6767
description = "The ID of the containing zone(s) as comma separated string, all for all zones offerings",
68+
length = 4096,
6869
since = "4.13")
6970
private String zoneIds;
7071

api/src/main/java/org/apache/cloudstack/api/command/user/backup/ListBackupScheduleCmd.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public class ListBackupScheduleCmd extends BaseListProjectAndAccountResourcesCmd
5959
@Parameter(name = ApiConstants.VIRTUAL_MACHINE_ID,
6060
type = CommandType.UUID,
6161
entityType = UserVmResponse.class,
62-
required = true,
6362
description = "ID of the Instance")
6463
private Long vmId;
6564

api/src/main/java/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class RegisterIsoCmd extends BaseCmd implements UserCmd {
7070
@Parameter(name = ApiConstants.IS_EXTRACTABLE, type = CommandType.BOOLEAN, description = "True if the ISO or its derivatives are extractable; default is false")
7171
private Boolean extractable;
7272

73-
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "The name of the ISO")
73+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, length = 251, description = "The name of the ISO")
7474
private String isoName;
7575

7676
@Parameter(name = ApiConstants.OS_TYPE_ID,

0 commit comments

Comments
 (0)