From cacb4dba1da8b96b6b562feefa5ba73a2e01945f Mon Sep 17 00:00:00 2001 From: abhishek Date: Wed, 15 Sep 2010 10:27:26 -0700 Subject: [PATCH 1/4] bug 3120: incremental checkin for this bug, with the introduction of an optional ONE_TO_ONE_NAT parameter --- server/src/com/cloud/api/BaseCmd.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/com/cloud/api/BaseCmd.java b/server/src/com/cloud/api/BaseCmd.java index e1f42327b4c..f5fc17f9ab8 100755 --- a/server/src/com/cloud/api/BaseCmd.java +++ b/server/src/com/cloud/api/BaseCmd.java @@ -281,6 +281,7 @@ public abstract class BaseCmd { OS_TYPE_ID("ostypeid", BaseCmd.TYPE_LONG, "osTypeId"), OS_TYPE_NAME("ostypename", BaseCmd.TYPE_STRING, "osTypeName"), OP("op", BaseCmd.TYPE_STRING, "op"), + ONE_TO_ONE_NAT("onetoonenat",BaseCmd.TYPE_BOOLEAN,"oneToOneNat"), PAGE("page", BaseCmd.TYPE_INT, "page"), PAGESIZE("pagesize", BaseCmd.TYPE_INT, "pagesize"), PARENT_ID("parentid", BaseCmd.TYPE_LONG, "parentId"), From ef8781b7b502d2eb89086cd68647318152916ed9 Mon Sep 17 00:00:00 2001 From: abhishek Date: Wed, 15 Sep 2010 10:28:09 -0700 Subject: [PATCH 2/4] bug 3120: introducing this optional parameter in the command --- server/src/com/cloud/api/commands/AssociateIPAddrCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/commands/AssociateIPAddrCmd.java b/server/src/com/cloud/api/commands/AssociateIPAddrCmd.java index a4c06429d3a..c4a2da97eae 100644 --- a/server/src/com/cloud/api/commands/AssociateIPAddrCmd.java +++ b/server/src/com/cloud/api/commands/AssociateIPAddrCmd.java @@ -48,7 +48,8 @@ public class AssociateIPAddrCmd extends BaseCmd { s_properties.add(new Pair(BaseCmd.Properties.DOMAIN_ID, Boolean.FALSE)); s_properties.add(new Pair(BaseCmd.Properties.ACCOUNT_OBJ, Boolean.FALSE)); s_properties.add(new Pair(BaseCmd.Properties.USER_ID, Boolean.FALSE)); - s_properties.add(new Pair(BaseCmd.Properties.ZONE_ID, Boolean.TRUE)); + s_properties.add(new Pair(BaseCmd.Properties.ZONE_ID, Boolean.TRUE)); + s_properties.add(new Pair(BaseCmd.Properties.ONE_TO_ONE_NAT, Boolean.FALSE)); } public String getName() { From 4409d7826ed7700b66ad244e43d5ebca03e7e8c4 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 15 Sep 2010 11:11:25 -0700 Subject: [PATCH 3/4] new UI - Routers page - implement Start Router, Stop Router action. --- ui/new/jsp/router.jsp | 4 +- ui/new/jsp/volume.jsp | 4 +- ui/new/scripts/cloud.core2.init.js | 8 ++- ui/new/scripts/cloud.core2.router.js | 86 ++++++++++++++++++++++++---- ui/new/scripts/cloud.core2.volume.js | 15 ++--- 5 files changed, 90 insertions(+), 27 deletions(-) diff --git a/ui/new/jsp/router.jsp b/ui/new/jsp/router.jsp index e98941a6530..26433f65969 100644 --- a/ui/new/jsp/router.jsp +++ b/ui/new/jsp/router.jsp @@ -27,8 +27,8 @@
-