bug 8115: add source ip filter for kvm

status 8115: resolved fixed
This commit is contained in:
Edison Su 2011-05-25 10:37:41 -04:00
parent fc04d71e1f
commit 29db060aee
1 changed files with 3 additions and 1 deletions

View File

@ -139,7 +139,9 @@ public class VirtualRoutingResource implements Manager {
command.add("-p ", rule.getStringSrcPortRange());
command.add("-r ", rule.getDstIp());
command.add("-d ", rule.getStringDstPortRange());
if (rule.getSourceCidrs().size() > 0){
command.add(" -s " + rule.getStringSourceCidrs());
}
result = command.execute();
results[i++] = (!(result == null || result.isEmpty())) ? "Failed" : null;
}