-
Notifications
You must be signed in to change notification settings - Fork 1.2k
UI: Option to choose the isolation method when creating the public IP range #12000
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: 4.20
Are you sure you want to change the base?
UI: Option to choose the isolation method when creating the public IP range #12000
Conversation
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12000 +/- ##
=============================================
- Coverage 16.18% 4.00% -12.18%
=============================================
Files 5657 402 -5255
Lines 498473 32675 -465798
Branches 60501 5814 -54687
=============================================
- Hits 80663 1309 -79354
+ Misses 408830 31211 -377619
+ Partials 8980 155 -8825
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
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.
Pull Request Overview
This pull request adds support for selecting an isolation method (VLAN or VXLAN) when creating public IP ranges in the UI, allowing users to specify the isolation method explicitly rather than relying on defaults. The change also fixes a duplicate command registration in the server code and improves null/empty string checks using Apache Commons.
- Added UI form field for selecting isolation method with VLAN/VXLAN options
- Implemented automatic VLAN formatting logic that prepends the isolation method prefix when a numeric VLAN ID is entered
- Fixed duplicate
ListNetworkIsolationMethodsCmdregistration in server command list
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ui/src/views/infra/network/IpRangesTabPublic.vue | Added isolation method dropdown and logic to format VLAN parameter with selected method prefix |
| ui/public/locales/en.json | Added tooltip text explaining the isolation method selection |
| server/src/main/java/com/cloud/server/ManagementServerImpl.java | Removed duplicate registration of ListNetworkIsolationMethodsCmd |
| api/src/main/java/org/apache/cloudstack/api/command/admin/vlan/CreateVlanIpRangeCmd.java | Replaced null/empty check with StringUtils.isBlank() |
| api/src/main/java/org/apache/cloudstack/api/command/admin/network/CreateManagementNetworkIpRangeCmd.java | Replaced null/empty check with StringUtils.isBlank() |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
UI build: ✔️ |
|
@sureshanaparti |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15649 |
will check/udpate for ipv6 as well. correct - 'vlan' is used as default isolated method if not set. |
3d06ea2 to
664a025
Compare
@weizhouapache it works with ipv6 as well. |
|
@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
| import com.cloud.exception.ResourceAllocationException; | ||
| import com.cloud.exception.ResourceUnavailableException; | ||
| import com.cloud.user.Account; | ||
| import org.apache.commons.lang3.StringUtils; |
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.
| import org.apache.commons.lang3.StringUtils; | |
| import com.cloud.utils.StringUtils; |
| import com.cloud.exception.ResourceAllocationException; | ||
| import com.cloud.exception.ResourceUnavailableException; | ||
| import com.cloud.user.Account; | ||
| import org.apache.commons.lang3.StringUtils; |
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.
| import org.apache.commons.lang3.StringUtils; | |
| import com.cloud.utils.StringUtils; |
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.
updated
| cmdList.add(StartInternalLBVMCmd.class); | ||
| cmdList.add(ListInternalLBVMsCmd.class); | ||
| cmdList.add(ListNetworkIsolationMethodsCmd.class); | ||
| cmdList.add(ListNetworkIsolationMethodsCmd.class); |
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.
should this be deleted?
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.
yes, it's duplicate
Description
This PR enabled option in the UI to choose the isolation method (vlan, vxlan) when creating the public IP range.
Fixes #9920
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Verified the isolation methods set in public IP range, from the UI.
IPv4:
IPv6:
How did you try to break this feature and the system with this change?