mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
CLOUDSTACK-5747 Fixed network restart issue with SRX
This commit is contained in:
parent
a41c9b9631
commit
fcd21eb7f3
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user