VPC: CS-15791 - allow having the same NetworkACL for 2 different protocols

This commit is contained in:
Alena Prokharchyk 2012-08-01 15:25:00 -07:00
parent 48102871e9
commit d2df3e0102
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,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