mirror of https://github.com/apache/cloudstack.git
Support ACLs for IPv6 addresses
This commit is contained in:
parent
604137624d
commit
6dd7e71e2e
|
|
@ -404,10 +404,18 @@ public class NetrisServiceImpl implements NetrisService, Configurable {
|
|||
String destinationPrefix;
|
||||
if ("INGRESS".equals(trafficType)) {
|
||||
sourcePrefix = baseNetworkRule.getSourceCidrList().get(0);
|
||||
destinationPrefix = network.getCidr();
|
||||
if (NetUtils.isValidIp4Cidr(sourcePrefix)) {
|
||||
destinationPrefix = network.getCidr();
|
||||
} else {
|
||||
destinationPrefix = network.getIp6Cidr();
|
||||
}
|
||||
} else {
|
||||
sourcePrefix = network.getCidr();
|
||||
destinationPrefix = baseNetworkRule.getSourceCidrList().get(0);
|
||||
if (NetUtils.isValidIp4Cidr(destinationPrefix)) {
|
||||
sourcePrefix = network.getCidr();
|
||||
} else {
|
||||
sourcePrefix = network.getIp6Cidr();
|
||||
}
|
||||
}
|
||||
String srcPort;
|
||||
String dstPort;
|
||||
|
|
|
|||
Loading…
Reference in New Issue