Skip to content

Commit e76c58e

Browse files
Merge branch 'main' into log4j2-refactor-cloud-api-module
2 parents 39f435f + 6dc3d06 commit e76c58e

511 files changed

Lines changed: 22462 additions & 3007 deletions

File tree

Some content is hidden

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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434

3535
- name: Set up JDK 11
36-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
3737
with:
3838
java-version: '11'
3939
distribution: 'adopt'

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ jobs:
179179
"component/test_project_usage
180180
component/test_protocol_number_security_group
181181
component/test_public_ip
182-
component/test_resource_limits",
182+
component/test_resource_limits
183+
component/test_resource_limit_tags",
183184
"component/test_regions_accounts
184185
component/test_routers
185186
component/test_snapshots
@@ -210,7 +211,7 @@ jobs:
210211
fetch-depth: 0
211212

212213
- name: Set up JDK
213-
uses: actions/setup-java@v3
214+
uses: actions/setup-java@v4
214215
with:
215216
java-version: '11'
216217
distribution: 'adopt'

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838

3939
- name: Set up JDK11
40-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v4
4141
with:
4242
distribution: 'temurin'
4343
java-version: '11'

.github/workflows/main-sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 0
3838

3939
- name: Set up JDK11
40-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v4
4141
with:
4242
distribution: 'temurin'
4343
java-version: '11'

.github/workflows/rat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Set up JDK 11
35-
uses: actions/setup-java@v3
35+
uses: actions/setup-java@v4
3636
with:
3737
java-version: '11'
3838
distribution: 'adopt'

.github/workflows/sonar-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fetch-depth: 0
4040

4141
- name: Set up JDK11
42-
uses: actions/setup-java@v3
42+
uses: actions/setup-java@v4
4343
with:
4444
distribution: 'temurin'
4545
java-version: '11'

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ was tested against a CentOS 7 x86_64 setup.
1515

1616
Install tools and dependencies used for development:
1717

18-
# yum -y install git java-11-openjdk java-11-openjdk-devel \
18+
# yum -y install git java-17-openjdk java-17-openjdk-devel \
1919
mysql mysql-server mkisofs git gcc python MySQL-python openssh-clients wget
2020

2121
Set up Maven (3.6.0):

api/src/main/java/com/cloud/agent/api/to/NicTO.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class NicTO extends NetworkTO {
3232
Map<NetworkOffering.Detail, String> details;
3333
boolean dpdkEnabled;
3434
Integer mtu;
35+
Long networkId;
36+
37+
String networkSegmentName;
3538

3639
public NicTO() {
3740
super();
@@ -127,4 +130,20 @@ public Integer getMtu() {
127130
public void setMtu(Integer mtu) {
128131
this.mtu = mtu;
129132
}
133+
134+
public Long getNetworkId() {
135+
return networkId;
136+
}
137+
138+
public void setNetworkId(Long networkId) {
139+
this.networkId = networkId;
140+
}
141+
142+
public String getNetworkSegmentName() {
143+
return networkSegmentName;
144+
}
145+
146+
public void setNetworkSegmentName(String networkSegmentName) {
147+
this.networkSegmentName = networkSegmentName;
148+
}
130149
}

api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public class VirtualMachineTO {
8282

8383
Map<String, String> guestOsDetails = new HashMap<String, String>();
8484
Map<String, String> extraConfig = new HashMap<>();
85+
Map<Long, String> networkIdToNetworkNameMap = new HashMap<>();
8586
DeployAsIsInfoTO deployAsIsInfo;
8687

8788
public VirtualMachineTO(long id, String instanceName, VirtualMachine.Type type, int cpus, Integer speed, long minRam, long maxRam, BootloaderType bootloader,
@@ -392,6 +393,14 @@ public Map<String, String> getExtraConfig() {
392393
return extraConfig;
393394
}
394395

396+
public Map<Long, String> getNetworkIdToNetworkNameMap() {
397+
return networkIdToNetworkNameMap;
398+
}
399+
400+
public void setNetworkIdToNetworkNameMap(Map<Long, String> networkIdToNetworkNameMap) {
401+
this.networkIdToNetworkNameMap = networkIdToNetworkNameMap;
402+
}
403+
395404
public String getBootType() {
396405
return bootType;
397406
}

api/src/main/java/com/cloud/capacity/Capacity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// under the License.
1717
package com.cloud.capacity;
1818

19+
import java.util.List;
20+
1921
import org.apache.cloudstack.api.Identity;
2022
import org.apache.cloudstack.api.InternalIdentity;
2123

@@ -35,6 +37,11 @@ public interface Capacity extends InternalIdentity, Identity {
3537

3638
public static final short CAPACITY_TYPE_CPU_CORE = 90;
3739

40+
public static final List<Short> STORAGE_CAPACITY_TYPES = List.of(CAPACITY_TYPE_STORAGE,
41+
CAPACITY_TYPE_STORAGE_ALLOCATED,
42+
CAPACITY_TYPE_SECONDARY_STORAGE,
43+
CAPACITY_TYPE_LOCAL_STORAGE);
44+
3845
public Long getHostOrPoolId();
3946

4047
public Long getDataCenterId();
@@ -54,4 +61,6 @@ public interface Capacity extends InternalIdentity, Identity {
5461
public Float getUsedPercentage();
5562

5663
public Long getAllocatedCapacity();
64+
65+
public String getTag();
5766
}

0 commit comments

Comments
 (0)