cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject git commit: updated refs/heads/4.5 to b2b9de7
Date Mon, 09 Mar 2015 10:10:37 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.5 fde288747 -> b2b9de7fa


CLOUDSTACK-7639: make cidrlist update when updateNetworkAclItem is called

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/4.5
Commit: b2b9de7fa39825e8ff111353619df4e5aece12e6
Parents: fde2887
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Mon Mar 9 15:39:50 2015 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Mar 9 15:40:32 2015 +0530

----------------------------------------------------------------------
 .../src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b2b9de7f/engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java b/engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java
index abd8bae..88e00a1 100644
--- a/engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java
+++ b/engine/schema/src/com/cloud/network/vpc/dao/NetworkACLItemDaoImpl.java
@@ -91,6 +91,13 @@ public class NetworkACLItemDaoImpl extends GenericDaoBase<NetworkACLItemVO,
Long
     }
 
     @Override
+    public boolean update(Long id, NetworkACLItemVO item) {
+        boolean result = super.update(id, item);
+        saveCidrs(item, item.getSourceCidrList());
+        return result;
+    }
+
+    @Override
     public boolean setStateToAdd(NetworkACLItemVO rule) {
         SearchCriteria<NetworkACLItemVO> sc = AllFieldsSearch.create();
         sc.setParameters("id", rule.getId());


Mime
View raw message