cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaya...@apache.org
Subject [1/2] git commit: updated refs/heads/master to fcd21eb
Date Thu, 16 Jan 2014 06:00:10 GMT
Updated Branches:
  refs/heads/master dd50210e7 -> fcd21eb7f


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/fcd21eb7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fcd21eb7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fcd21eb7

Branch: refs/heads/master
Commit: fcd21eb7f339ea29a075681f213be6ff940ee7ad
Parents: a41c9b9
Author: Jayapal <jayapalreddy.uradi@citrix.com>
Authored: Tue Jan 14 18:55:04 2014 +0530
Committer: Jayapal <jayapalreddy.uradi@citrix.com>
Committed: Thu Jan 16 11:29:03 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/fcd21eb7/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 eaade01..ed6011b 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
@@ -2809,7 +2809,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