rootnomad commented on PR #14217: URL: https://github.com/apache/cloudstack/pull/14217#issuecomment-7203060423
Thanks @weizhouapache. Addressed all three: - Routed (non source NAT) isolated networks, start-end IP there already defines the vlan range, so the custom DHCP range is now scoped to source NAT isolated networks only. Routed networks keep using start-end IP for their range as before, nothing stored as a detail. - VPC tiers: excluded for the same reason, their IP handling sits under the VPC and I have not validated the range there, so they are left out of this PR rather than shipped untested. - Update: implemented. updateNetwork now takes startip/endip for a source NAT isolated network, validates the new range within the CIDR and rewrites it; an empty startip clears it back to the full CIDR. Existing leases are static DHCP entries so the change only affects future allocation. Added unit tests for each path (source NAT stores it, routed and VPC tiers do not, update set/clear/validation) and extended the smoke test to update the range and confirm a VM lands in it. -- 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]
