mirror of https://github.com/apache/cloudstack.git
VPC: CS-15791 - allow having the same NetworkACL for 2 different protocols
This commit is contained in:
parent
204b6e6ad9
commit
751ebce589
|
|
@ -225,8 +225,8 @@ public class NetworkACLManagerImpl implements Manager,NetworkACLManager{
|
|||
"network conflicts so we should at least have one rule at this point.";
|
||||
|
||||
for (FirewallRuleVO rule : rules) {
|
||||
if (rule.getId() == newRule.getId()) {
|
||||
continue; // Skips my own rule.
|
||||
if (rule.getId() == newRule.getId() || !rule.getProtocol().equalsIgnoreCase(newRule.getProtocol())) {
|
||||
continue; // Skips my own rule and skip the rule if the protocol is different
|
||||
}
|
||||
|
||||
// if one cidr overlaps another, do port veirficatino
|
||||
|
|
|
|||
Loading…
Reference in New Issue