mirror of https://github.com/apache/cloudstack.git
bug 8115: add source ip filter for kvm
status 8115: resolved fixed
This commit is contained in:
parent
fc04d71e1f
commit
29db060aee
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue