Repository navigation
network: custom DHCP range for isolated networks (API and UI) #14217
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
c831af0
2e6f4e1
e8aa257
98a7ecc
8e89312
861a2a6
c29540d
4222ed4
2504c02
6f38cba
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 |
|---|---|---|
|
|
@@ -110,6 +110,12 @@ public class UpdateNetworkCmd extends BaseAsyncCustomIdCmd implements UserCmd { | |
| type = CommandType.BOOLEAN, since = "4.23.0", authorized = {RoleType.Admin}) | ||
| private Boolean keepMacAddressOnPublicNic; | ||
|
|
||
| @Parameter(name = ApiConstants.START_IP, type = CommandType.STRING, description = "The beginning of the custom DHCP range within the CIDR for a source NAT isolated network. An empty value clears the range so the whole CIDR is used.", since = "4.23.0") | ||
| private String startIp; | ||
|
|
||
| @Parameter(name = ApiConstants.END_IP, type = CommandType.STRING, description = "The end of the custom DHCP range within the CIDR for a source NAT isolated network. Defaults to the start IP when not set.", since = "4.23.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. since 24.0 |
||
| private String endIp; | ||
|
|
||
| ///////////////////////////////////////////////////// | ||
| /////////////////// Accessors /////////////////////// | ||
| ///////////////////////////////////////////////////// | ||
|
|
@@ -145,6 +151,14 @@ public String getGuestVmCidr() { | |
| return guestVmCidr; | ||
| } | ||
|
|
||
| public String getStartIp() { | ||
| return startIp; | ||
| } | ||
|
|
||
| public String getEndIp() { | ||
| return endIp; | ||
| } | ||
|
|
||
| public Boolean getDisplayNetwork() { | ||
| return displayNetwork; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,14 @@ public class NetworkResponse extends BaseResponseWithAssociatedNetwork implement | |
| @Param(description = "CloudStack managed address space, all CloudStack managed Instances get IP address from CIDR") | ||
| private String cidr; | ||
|
|
||
| @SerializedName(ApiConstants.START_IP) | ||
| @Param(description = "the start of the custom DHCP range for an isolated network, within its CIDR", 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. since 24.0 |
||
| private String dhcpStartIp; | ||
|
|
||
| @SerializedName(ApiConstants.END_IP) | ||
| @Param(description = "the end of the custom DHCP range for an isolated network, within its CIDR", 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. since 24.0 |
||
| private String dhcpEndIp; | ||
|
|
||
| @SerializedName(ApiConstants.NETWORK_CIDR) | ||
| @Param(description = "The Network CIDR of the guest Network configured with IP reservation. It is the summation of CIDR and RESERVED_IP_RANGE") | ||
| private String networkCidr; | ||
|
|
@@ -515,6 +523,14 @@ public void setCidr(String cidr) { | |
| this.cidr = cidr; | ||
| } | ||
|
|
||
| public void setDhcpStartIp(String dhcpStartIp) { | ||
| this.dhcpStartIp = dhcpStartIp; | ||
| } | ||
|
|
||
| public void setDhcpEndIp(String dhcpEndIp) { | ||
| this.dhcpEndIp = dhcpEndIp; | ||
| } | ||
|
|
||
| public void setNetworkCidr(String networkCidr) { | ||
| this.networkCidr = networkCidr; | ||
| } | ||
|
|
||
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.
since 24.0