-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support VPC public gateway rate throttling, built on NIC/network rate persistence and precedence fixes #13325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
498b69b
c8ac2a0
adbdec2
fb7cce0
b684b88
cd349f5
469d391
0a2b534
71d49b8
4e7236c
817c2f9
4c8b4ef
7a4e287
cdf3135
b850965
18c74d3
29b9b76
ec174a1
673fa86
20f686c
8720eb3
d4c3549
0f4c5ef
e1b7a2f
d6198c6
5f8b0dc
dec9da9
1fbbe0f
29415b3
57d4881
d5428f1
8800f0c
f7d3e72
c9b2ce2
01312c7
d005819
5be59e0
f51c873
51f0ded
007bf8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,4 +86,6 @@ public enum State { | |
| Boolean isSpecifyAsNumber(); | ||
|
|
||
| boolean isConserveMode(); | ||
|
|
||
| Integer getPublicNetworkRate(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -168,5 +168,7 @@ public enum ReservationStrategy { | |
|
|
||
| Integer getMtu(); | ||
|
|
||
| Integer getNetworkRate(); | ||
|
|
||
| boolean isEnabled(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,11 @@ public class UpdateVPCOfferingCmd extends BaseAsyncCmd implements DomainAndZoneI | |
| @Parameter(name = ApiConstants.SORT_KEY, type = CommandType.INTEGER, description = "Sort key of the VPC offering, integer") | ||
| private Integer sortKey; | ||
|
|
||
| @Parameter(name = ApiConstants.PUBLIC_NETWORK_RATE, type = CommandType.INTEGER, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. normally we do not change the properties of existing offerings, for example cpu/memor of service offering, size of disk offering, supported network services of network offering, |
||
| since = "4.24.0", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 24.0 |
||
| description = "Data transfer rate in megabits per second allowed for a VPC's public gateway (internet-facing network), created with this offering. Use 0 for unlimited") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
can they be consistent ? |
||
| private Integer publicNetworkRate; | ||
|
|
||
| ///////////////////////////////////////////////////// | ||
| /////////////////// Accessors /////////////////////// | ||
| ///////////////////////////////////////////////////// | ||
|
|
@@ -100,6 +105,10 @@ public Integer getSortKey() { | |
| return sortKey; | ||
| } | ||
|
|
||
| public Integer getPublicNetworkRate() { | ||
| return publicNetworkRate; | ||
| } | ||
|
|
||
| ///////////////////////////////////////////////////// | ||
| /////////////// API Implementation/////////////////// | ||
| ///////////////////////////////////////////////////// | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -311,6 +311,10 @@ public class NetworkResponse extends BaseResponseWithAssociatedNetwork implement | |
| @Param(description = "MTU configured on the network VR's private interfaces") | ||
| private Integer privateMtu; | ||
|
|
||
| @SerializedName(ApiConstants.NETWORKRATE) | ||
| @Param(description = "Network rate (in Mb/s) configured for the Guest interface of this network; -1 if unlimited", since = "4.24.0") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 24.0
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what about |
||
| private Integer networkRate; | ||
|
|
||
| @SerializedName(ApiConstants.IP6_DNS1) | ||
| @Param(description = "The first IPv6 DNS for the network", since = "4.18.0") | ||
| private String ipv6Dns1; | ||
|
|
@@ -707,6 +711,14 @@ public void setPrivateMtu(Integer privateMtu) { | |
| this.privateMtu = privateMtu; | ||
| } | ||
|
|
||
| public Integer getNetworkRate() { | ||
| return networkRate; | ||
| } | ||
|
|
||
| public void setNetworkRate(Integer networkRate) { | ||
| this.networkRate = networkRate; | ||
| } | ||
|
|
||
| public void setIpv6Dns1(String ipv6Dns1) { | ||
| this.ipv6Dns1 = ipv6Dns1; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24.0