CLOUDSTACK-5747 Fixed network restart issue with SRX

This commit is contained in:
Jayapal 2014-01-14 18:55:04 +05:30
parent a41c9b9631
commit fcd21eb7f3

View File

@ -2809,7 +2809,7 @@ public class JuniperSrxResource implements ServerResource {
if (type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS) || type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS_DEFAULT)) { if (type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS) || type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS_DEFAULT)) {
xml = replaceXmlValue(xml, "from-zone", _privateZone); xml = replaceXmlValue(xml, "from-zone", _privateZone);
xml = replaceXmlValue(xml, "to-zone", _publicZone); xml = replaceXmlValue(xml, "to-zone", _publicZone);
if (cidrs == null) { if (cidrs == null || cidrs.size() == 0) {
srcAddrs = "<source-address>any</source-address>"; srcAddrs = "<source-address>any</source-address>";
} else { } else {
for (String cidr : cidrs) { for (String cidr : cidrs) {