cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 9b669f0
Date Mon, 09 Mar 2015 11:00:14 GMT
CLOUDSTACK-7639: make cidrlist update when updateNetworkAclItem is called

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit b2b9de7fa39825e8ff111353619df4e5aece12e6)
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/e1cbe6d1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e1cbe6d1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e1cbe6d1

Branch: refs/heads/master
Commit: e1cbe6d18ac8ad19d81d6dcafd2e31171eaf4554
Parents: 8591383
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 16:30:08 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/e1cbe6d1/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