Currently in cloudstack we can add multiple public ip ranges. we want to provide similar flexibility for management and guest ip ranges.
Presently we can add multiple guest ip ranges within the same subnet (Basic zone) but we cannot add ip ranges form different subnets.
This feature provides this functionality for adding guest ip ranges (for Basic zone) and management ip range for both the advanced and basic zones.
There may be cases where some part of the subnet is allocated for some other purpose and the admin wants to use the rest of the ip range or admin may want to add more ip address once the old ones are exhausted. Admin may want to add the ip ranges form the same subnet or from different one. Currently in cloudstack there is no flexibility to do this for management and guest ip ranges (ip ranges from different subnets).
Extend the createVlanIpRange api to add the guest ip ranges form different subnets and create a new api AddPodIpRange to add the multiple management ip ranges from different subnets. Whenever we add a ip range from different subnet we have to add a new nic to the routervm. This nic will have one of the ip from the new subnet. The other alternative is to add the ip from the new subnet to the same nic.
Also make changes to the dhcp entry in the router vm.
API Name |
API parameters |
API response |
Available only for root admin |
|---|---|---|---|
createVlanIpRange |
same as the existing parameters |
returns the ip ranges |
yes |
AddPodIpRange |
*podId, *IpaddressStart, IpaddressEnd, *Netmask, *Gateway. |
returns the ipranges of the pod |
yes |
All the parameters marked with * are required.
No Database changes are required.