Pier Luigi Ventre
Committed by Gerrit Code Review

- Fix the SDNIP IPv6 flows installation in the switches

Change-Id: Ida3653a06e6f452c7a185fd3ead92d036abc32d8
...@@ -340,15 +340,15 @@ public class PeerConnectivityManager { ...@@ -340,15 +340,15 @@ public class PeerConnectivityManager {
340 private TrafficSelector buildSelector(byte ipProto, IpAddress srcIp, 340 private TrafficSelector buildSelector(byte ipProto, IpAddress srcIp,
341 IpAddress dstIp, Short srcTcpPort, 341 IpAddress dstIp, Short srcTcpPort,
342 Short dstTcpPort) { 342 Short dstTcpPort) {
343 - TrafficSelector.Builder builder = DefaultTrafficSelector.builder() 343 + TrafficSelector.Builder builder = DefaultTrafficSelector.builder().matchIPProtocol(ipProto);
344 - .matchEthType(Ethernet.TYPE_IPV4)
345 - .matchIPProtocol(ipProto);
346 344
347 if (dstIp.isIp4()) { 345 if (dstIp.isIp4()) {
348 - builder.matchIPSrc(IpPrefix.valueOf(srcIp, IpPrefix.MAX_INET_MASK_LENGTH)) 346 + builder.matchEthType(Ethernet.TYPE_IPV4)
347 + .matchIPSrc(IpPrefix.valueOf(srcIp, IpPrefix.MAX_INET_MASK_LENGTH))
349 .matchIPDst(IpPrefix.valueOf(dstIp, IpPrefix.MAX_INET_MASK_LENGTH)); 348 .matchIPDst(IpPrefix.valueOf(dstIp, IpPrefix.MAX_INET_MASK_LENGTH));
350 } else { 349 } else {
351 - builder.matchIPv6Src(IpPrefix.valueOf(srcIp, IpPrefix.MAX_INET6_MASK_LENGTH)) 350 + builder.matchEthType(Ethernet.TYPE_IPV6)
351 + .matchIPv6Src(IpPrefix.valueOf(srcIp, IpPrefix.MAX_INET6_MASK_LENGTH))
352 .matchIPv6Dst(IpPrefix.valueOf(dstIp, IpPrefix.MAX_INET6_MASK_LENGTH)); 352 .matchIPv6Dst(IpPrefix.valueOf(dstIp, IpPrefix.MAX_INET6_MASK_LENGTH));
353 } 353 }
354 354
......