-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9180/#review16726
-----------------------------------------------------------



server/src/com/cloud/api/ApiResponseHelper.java
<https://reviews.apache.org/r/9180/#comment35469>

    Both if statements can be combined together with &&



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35468>

    Specify that ip reservation cant be supported over isolated guest networks.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35467>

    Specify the parameter that is invalid.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35466>

    we can avoid nesting of if statement here. Combine both if statement.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35460>

    Even de-activated nics would be included in the list of nicsPresent. If a 
system is used for long term this list may be huge with many de-activated nics 
to iterate in the below loop. Better to get list of nics that are not removed.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35465>

    elaborate guestvmcidr.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35464>

    remove variable name from message. This could be elaborated.



server/src/com/cloud/network/NetworkServiceImpl.java
<https://reviews.apache.org/r/9180/#comment35461>

    Specify active IP address here.


- Sateesh Chodapuneedi


On Feb. 8, 2013, 9:39 a.m., Saksham Srivastava wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9180/
> -----------------------------------------------------------
> 
> (Updated Feb. 8, 2013, 9:39 a.m.)
> 
> 
> Review request for cloudstack, Murali Reddy and Chiradeep Vittal.
> 
> 
> Description
> -------
> 
>     CLOUDSTACK-705 IP Address reservation for Isolated Guest Networks
> 
> 
> CloudStack uses Guest CIDR for dhcp-range for the Guest VMs. The entire CIDR 
> is used by CloudStack for assigning IPs to Guest VMs.
> IP Address Reservation will allow part of address space to be used for non 
> CloudStack hosts/physical servers also, by restricting the address space of 
> CloudStack Guest VMs.
> Reservation can be configured using update Network API by specifying 
> guestvmCidr as an additional parameter.
> Reservation will be applicable for Isolated Guest Networks including VPC.
> reservediprange in the response will return the IP range that can be used for 
> non Cloudstack hosts.
> 
> 
> This addresses bug CLOUDSTACK-705.
> 
> 
> Diffs
> -----
> 
>   api/src/com/cloud/network/Network.java 2bf7b7f 
>   api/src/com/cloud/network/NetworkProfile.java 37d46ac 
>   api/src/com/cloud/network/NetworkService.java ace1bb6 
>   api/src/com/cloud/network/vpc/VpcService.java cc66b58 
>   api/src/org/apache/cloudstack/api/ApiConstants.java d29408e 
>   
> api/src/org/apache/cloudstack/api/command/user/network/UpdateNetworkCmd.java 
> 6777407 
>   api/src/org/apache/cloudstack/api/response/NetworkResponse.java 7b29efb 
>   server/src/com/cloud/api/ApiResponseHelper.java 8c97615 
>   server/src/com/cloud/network/NetworkServiceImpl.java d38d1f8 
>   server/src/com/cloud/network/dao/NetworkVO.java d51a065 
>   server/src/com/cloud/network/vpc/VpcManagerImpl.java 7197c36 
>   server/test/com/cloud/network/MockNetworkManagerImpl.java 4a24f9a 
>   server/test/com/cloud/vpc/MockNetworkManagerImpl.java bcaaa26 
>   server/test/com/cloud/vpc/MockVpcManagerImpl.java 0a44a49 
>   setup/db/create-schema.sql f89c885 
>   setup/db/db/schema-40to410.sql d771a15 
> 
> Diff: https://reviews.apache.org/r/9180/diff/
> 
> 
> Testing
> -------
> 
> Tested manually the following scenarios:
> Applying reservation when there are running VMs inside the guest_vm_cidr.
> Applying reservation when there are running VMs outside the 
> guest_vm_cidr.(not allowed)
> Applying reservation when external device like Netscaler is configured in the 
> guest_cidr.
> Applying reservation in VPC tiers.
> Applying reservation outside the range of guest_cidr.(not allowed)
> 
> 
> Thanks,
> 
> Saksham Srivastava
> 
>

Reply via email to