cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [2/2] git commit: updated refs/heads/master to 435aefe
Date Tue, 24 Dec 2013 12:49:28 GMT
CLOUDSTACK-5254: If VR is not upgraded, leave firewall rule in Active state. Rule will be applied
when VR is upgraded


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

Branch: refs/heads/master
Commit: 435aefec150c39a9e61e32ab53a04707a189dac2
Parents: e659751
Author: Kishan Kavala <kishan@cloud.com>
Authored: Tue Dec 24 16:34:03 2013 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Tue Dec 24 18:13:50 2013 +0530

----------------------------------------------------------------------
 .../network/router/VirtualNetworkApplianceManagerImpl.java   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/435aefec/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
index 3f3e9bd..fdc1b27 100755
--- a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
+++ b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
@@ -3795,6 +3795,14 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase
implements V
                     s_logger.debug("Router " + router.getInstanceName() + " is stop pending,
so not sending apply " + typeString + " commands to the backend");
                     continue;
                 }
+
+                if (!checkRouterVersion(router)){
+                    //Rules will be applied after VR is upgraded
+                    s_logger.debug("Router " + router.getInstanceName() + " requires upgrade,
so not sending apply " +
+                            typeString + " commands to the backend");
+                    continue;
+                }
+
                 try {
                     result = applier.execute(network, router);
                     connectedRouters.add(router);


Mime
View raw message