Updated Branches:
  refs/heads/network-refactor bec030fda -> e89d9e627

IPv6: Add details for domainrouter response


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/e89d9e62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e89d9e62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e89d9e62

Branch: refs/heads/network-refactor
Commit: e89d9e627249acec6bc281d2655b4efe0cef1fb0
Parents: bec030f
Author: Sheng Yang <[email protected]>
Authored: Thu Jan 31 18:14:51 2013 -0800
Committer: Sheng Yang <[email protected]>
Committed: Thu Jan 31 18:14:51 2013 -0800

----------------------------------------------------------------------
 .../cloud/api/response/DomainRouterResponse.java   |   22 +++++++++++++++
 server/src/com/cloud/api/ApiResponseHelper.java    |    2 +
 2 files changed, 24 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e89d9e62/api/src/com/cloud/api/response/DomainRouterResponse.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/api/response/DomainRouterResponse.java 
b/api/src/com/cloud/api/response/DomainRouterResponse.java
index d710aad..d72162e 100644
--- a/api/src/com/cloud/api/response/DomainRouterResponse.java
+++ b/api/src/com/cloud/api/response/DomainRouterResponse.java
@@ -87,12 +87,18 @@ public class DomainRouterResponse extends BaseResponse 
implements ControlledEnti
     @SerializedName("guestipaddress") @Param(description="the guest IP address 
for the router")
     private String guestIpAddress;
 
+    @SerializedName("guestip6address") @Param(description="the guest IPv6 
address for the router")
+    private String guestIp6Address;
+
     @SerializedName("guestmacaddress") @Param(description="the guest MAC 
address for the router")
     private String guestMacAddress;
 
     @SerializedName("guestnetmask") @Param(description="the guest netmask for 
the router")
     private String guestNetmask;
     
+    @SerializedName("guestip6cidr") @Param(description="the guest IPv6 cidr 
for the router")
+    private String guestIp6Cidr;
+
     @SerializedName("guestnetworkid") @Param(description="the ID of the 
corresponding guest network")
     private IdentityProxy guestNetworkId = new IdentityProxy("networks");
 
@@ -321,4 +327,20 @@ public class DomainRouterResponse extends BaseResponse 
implements ControlledEnti
     public void setNics(List<NicResponse> nics) {
         this.nics = nics;
     }
+
+       public String getGuestIp6Address() {
+               return guestIp6Address;
+       }
+
+       public void setGuestIp6Address(String guestIp6Address) {
+               this.guestIp6Address = guestIp6Address;
+       }
+
+       public String getGuestIp6Cidr() {
+               return guestIp6Cidr;
+       }
+
+       public void setGuestIp6Cidr(String guestIp6Cidr) {
+               this.guestIp6Cidr = guestIp6Cidr;
+       }
 }

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e89d9e62/server/src/com/cloud/api/ApiResponseHelper.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiResponseHelper.java 
b/server/src/com/cloud/api/ApiResponseHelper.java
index a68c7c3..b61244e 100755
--- a/server/src/com/cloud/api/ApiResponseHelper.java
+++ b/server/src/com/cloud/api/ApiResponseHelper.java
@@ -1763,6 +1763,8 @@ public class ApiResponseHelper implements 
ResponseGenerator {
                         
routerResponse.setGuestIpAddress(singleNicProfile.getIp4Address());
                         
routerResponse.setGuestMacAddress(singleNicProfile.getMacAddress());
                         
routerResponse.setGuestNetmask(singleNicProfile.getNetmask());
+                        
routerResponse.setGuestIp6Address(singleNicProfile.getIp6Address());
+                        
routerResponse.setGuestIp6Cidr(singleNicProfile.getIp6Cidr());
                         
routerResponse.setGuestNetworkId(singleNicProfile.getNetworkId());
                         
routerResponse.setNetworkDomain(network.getNetworkDomain());
                     }

Reply via email to