Skip to content

Commit fcd21eb

Browse files
committed
CLOUDSTACK-5747 Fixed network restart issue with SRX
1 parent a41c9b9 commit fcd21eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2809,7 +2809,7 @@ private boolean manageSecurityPolicy(SecurityPolicyType type, SrxCommand command
28092809
if (type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS) || type.equals(SecurityPolicyType.SECURITYPOLICY_EGRESS_DEFAULT)) {
28102810
xml = replaceXmlValue(xml, "from-zone", _privateZone);
28112811
xml = replaceXmlValue(xml, "to-zone", _publicZone);
2812-
if (cidrs == null) {
2812+
if (cidrs == null || cidrs.size() == 0) {
28132813
srcAddrs = "<source-address>any</source-address>";
28142814
} else {
28152815
for (String cidr : cidrs) {

0 commit comments

Comments
 (0)