Skip to content

Commit a65a115

Browse files
committed
Merge remote-tracking branch 'apache/main' into feature-ui-logs
2 parents 154a5cf + dc8f465 commit a65a115

File tree

19 files changed

+187
-38
lines changed

19 files changed

+187
-38
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ repos:
8484
^systemvm/agent/certs/realhostip\.key$|
8585
^test/integration/smoke/test_ssl_offloading\.py$
8686
- id: end-of-file-fixer
87-
exclude: \.vhd$
87+
exclude: \.vhd$|\.svg$
8888
- id: file-contents-sorter
8989
args: [--unique]
9090
files: ^\.github/linters/codespell\.txt$

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ public interface PhysicalNetworkTrafficType extends InternalIdentity, Identity {
4141
String getHypervNetworkLabel();
4242

4343
String getOvm3NetworkLabel();
44+
45+
String getVlan();
4446
}

api/src/main/java/org/apache/cloudstack/api/command/admin/usage/ListTrafficTypesCmd.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
import org.apache.cloudstack.api.Parameter;
2727
import org.apache.cloudstack.api.response.ListResponse;
2828
import org.apache.cloudstack.api.response.PhysicalNetworkResponse;
29-
import org.apache.cloudstack.api.response.ProviderResponse;
3029
import org.apache.cloudstack.api.response.TrafficTypeResponse;
3130

3231
import com.cloud.network.PhysicalNetworkTrafficType;
3332
import com.cloud.user.Account;
3433
import com.cloud.utils.Pair;
3534

36-
@APICommand(name = "listTrafficTypes", description = "Lists traffic types of a given physical network.", responseObject = ProviderResponse.class, since = "3.0.0",
35+
@APICommand(name = "listTrafficTypes", description = "Lists traffic types of a given physical network.", responseObject = TrafficTypeResponse.class, since = "3.0.0",
3736
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
3837
public class ListTrafficTypesCmd extends BaseListCmd {
3938

api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/UpdateLBHealthCheckPolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public long getEntityOwnerId() {
6363

6464
@Override
6565
public String getEventDescription() {
66-
return "Update load balancer health check policy ID= " + id;
66+
return "Update load balancer health check policy ID = " + id;
6767
}
6868

6969
@Override

api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/UpdateLBStickinessPolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public long getEntityOwnerId() {
6262

6363
@Override
6464
public String getEventDescription() {
65-
return "Update load balancer stickiness policy ID= " + id;
65+
return "Update load balancer stickiness policy ID = " + id;
6666
}
6767

6868
@Override

api/src/main/java/org/apache/cloudstack/api/command/user/vpn/UpdateVpnConnectionCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public long getEntityOwnerId() {
6666

6767
@Override
6868
public String getEventDescription() {
69-
return "Updating site-to-site VPN connection id= " + id;
69+
return "Updating site-to-site VPN connection ID = " + id;
7070
}
7171

7272
@Override

api/src/main/java/org/apache/cloudstack/api/command/user/vpn/UpdateVpnGatewayCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public long getEntityOwnerId() {
6363

6464
@Override
6565
public String getEventDescription() {
66-
return "Update site-to-site VPN gateway id= " + id;
66+
return "Update site-to-site VPN gateway ID = " + id;
6767
}
6868

6969
@Override

api/src/main/java/org/apache/cloudstack/api/response/TrafficTypeResponse.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ public class TrafficTypeResponse extends BaseResponse {
5656
@Param(description = "The network name label of the physical device dedicated to this traffic on a HyperV host")
5757
private String hypervNetworkLabel;
5858

59+
@SerializedName(ApiConstants.VLAN)
60+
@Param(description = "The VLAN id to be used for Management traffic by VMware host")
61+
private String vlan;
62+
63+
@SerializedName(ApiConstants.ISOLATION_METHODS)
64+
@Param(description = "isolation methods for the physical network traffic")
65+
private String isolationMethods;
66+
5967
@SerializedName(ApiConstants.OVM3_NETWORK_LABEL)
6068
@Param(description = "The network name of the physical device dedicated to this traffic on an OVM3 host")
6169
private String ovm3NetworkLabel;
@@ -128,4 +136,20 @@ public String getOvm3Label() {
128136
public void setOvm3Label(String ovm3Label) {
129137
this.ovm3NetworkLabel = ovm3Label;
130138
}
139+
140+
public String getIsolationMethods() {
141+
return isolationMethods;
142+
}
143+
144+
public void setIsolationMethods(String isolationMethods) {
145+
this.isolationMethods = isolationMethods;
146+
}
147+
148+
public String getVlan() {
149+
return vlan;
150+
}
151+
152+
public void setVlan(String vlan) {
153+
this.vlan = vlan;
154+
}
131155
}

engine/schema/src/main/java/com/cloud/vm/dao/UserVmDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public List<Ternary<Integer, Integer, Integer>> countVmsBySize(long dcId, int li
782782
result.add(new Ternary<Integer, Integer, Integer>(rs.getInt(1), rs.getInt(2), rs.getInt(3)));
783783
}
784784
} catch (Exception e) {
785-
logger.warn("Error counting vms by size for dcId= " + dcId, e);
785+
logger.warn("Error counting vms by size for Data Center ID = " + dcId, e);
786786
}
787787
return result;
788788
}

engine/schema/src/main/java/com/cloud/vm/dao/VMInstanceDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public Long countByZoneAndStateAndHostTag(long dcId, State state, String hostTag
886886
return rs.getLong(1);
887887
}
888888
} catch (Exception e) {
889-
logger.warn(String.format("Error counting vms by host tag for dcId= %s, hostTag= %s", dcId, hostTag), e);
889+
logger.warn(String.format("Error counting vms by host tag for dcId = %s, hostTag = %s", dcId, hostTag), e);
890890
}
891891
return 0L;
892892
}

0 commit comments

Comments
 (0)