Imvedansh opened a new pull request, #10617:
URL: https://github.com/apache/cloudstack/pull/10617

   ### Description
   
   This PR fixes a UX gap in the VPC Network Tier (Add Network) form, where the 
parent VPC CIDR was not visible or accessible during subnet configuration. 
Previously, users had to manually close the form, navigate back to the VPC 
details, copy the CIDR, and then reopen the form to paste the correct subnet 
range.
   
   With this PR:
   
   - The Add Network form now auto-fills:
   
   - Gateway: Based on CIDR
    
   - Netmask: Based on CIDR
   
   - This eliminates context switching, reduces input errors, and improves 
workflow efficiency. 
   
   Expected behavior (after fix):
   
   When creating a new network tier inside a VPC, the form automatically 
suggests a valid (CIDR) gateway, and netmask within the VPC's CIDR block.
   This Fixes : #10615 
   
   <!--- Describe your changes in DETAIL - And how has behaviour functionally 
changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to 
reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be 
closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- 
******************************************************************************* 
-->
   <!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE 
DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- 
******************************************************************************* 
-->
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [X] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] build/CI
   - [ ] test (unit or integration test code)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [ ] Minor
   - [ ] Trivial
   
   ### Screenshots (if appropriate):
   ![Screenshot 2025-03-25 at 5 11 46 
PM](https://github.com/user-attachments/assets/5d902d82-1840-46c2-91e4-d137f5496396)
   ![Screenshot 2025-03-25 at 5 16 38 
PM](https://github.com/user-attachments/assets/c3daa9fc-44c1-460b-bb34-86d4592e5106)
   
   
   ### How Has This Been Tested?
   
   - Verified by creating a new VPC with a /16 CIDR block.
    
   - Used the Add Network form under the created VPC.
    
   - Confirmed that the form auto-fills a /24 subnet, valid gateway, and 
netmask.
    
   - Ensured the inputs reflect valid and usable values within the VPC CIDR.
    
   - Checked that manual override is still possible.
   
   
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   
   #### How did you try to break this feature and the system with this change?
   
   
   -Tried editing the auto-filled values to invalid CIDRs → proper validation 
triggers.
   
   -Created multiple network tiers to ensure no collisions and clean 
suggestions.
   
   
   
   <!-- see how your change affects other areas of the code, etc. -->
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) 
document -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to