cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaya...@apache.org
Subject [2/2] git commit: updated refs/heads/4.3 to ac53932
Date Tue, 14 Jan 2014 13:01:49 GMT
CLOUDSTACK-5747 Fixed network restart issue with SRX


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

Branch: refs/heads/4.3
Commit: ac539329251a4f8ddf77f7622de5beaae18c9eee
Parents: b177015
Author: Jayapal <jayapalreddy.uradi@citrix.com>
Authored: Tue Jan 14 18:15:47 2014 +0530
Committer: Jayapal <jayapalreddy.uradi@citrix.com>
Committed: Tue Jan 14 18:15:47 2014 +0530

----------------------------------------------------------------------
 .../src/com/cloud/network/resource/JuniperSrxResource.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ac539329/plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java
b/plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java
index 9bf7510..a0278ca 100644
--- a/plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java
+++ b/plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java
@@ -2801,7 +2801,7 @@ public class JuniperSrxResource implements ServerResource {
             if (type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS) || type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS_DEFAULT))
{
                 xml = replaceXmlValue(xml, "from-zone", _privateZone);
                 xml = replaceXmlValue(xml, "to-zone", _publicZone);
-                if (cidrs == null) {
+                if (cidrs == null || cidrs.size() == 0) {
                     srcAddrs = "<source-address>any</source-address>";
                 } else {
                     for (String cidr : cidrs) {


Mime
View raw message