rootnomad commented on PR #14217:
URL: https://github.com/apache/cloudstack/pull/14217#issuecomment-7168765011

   @weizhouapache good point. Reworked in 8f911ef to drop the new columns: the 
custom DHCP range is now stored as network details (dhcpStartIp, dhcpEndIp) 
instead of the dhcp_start_ip and dhcp_end_ip columns, and read back from the 
details during guest IP allocation, on the Guest VM CIDR reservation check and 
in the network response. I kept it off the vlan IP range table on purpose, 
since a SourceNat isolated network creates no vlan range (it allocates guest 
IPs straight from the CIDR), so network details is the minimal fit without 
changing how isolated networks allocate.
   
   @RosiKyu the design is settled above. The new smoke test failure was a 
cleanup ordering bug in the test, not the feature: the asserts passed (the VM 
got an IP inside the custom range), it only failed in tearDown because the 
network was deleted before the VM. Fixed by deleting the VM first.
   
   @DaanHoogland the reservation-within-CIDR check is now extracted into its 
own method with javadoc. The getDhcpStartIp accessor was removed in favour of 
the detail keys, so that earlier javadoc suggestion no longer applies.
   
   Ready for the lab re-run.


-- 
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