Search in sources :

Example 1 with MatchIpv6NdTarget

use of org.opendaylight.genius.mdsalutil.matches.MatchIpv6NdTarget in project netvirt by opendaylight.

the class Ipv6ServiceUtils method getIcmpv6NSMatch.

private List<MatchInfo> getIcmpv6NSMatch(Long elanTag, String ndTarget) {
    List<MatchInfo> matches = new ArrayList<>();
    matches.add(MatchEthernetType.IPV6);
    matches.add(MatchIpProtocol.ICMPV6);
    matches.add(new MatchIcmpv6(Ipv6Constants.ICMP_V6_NS_CODE, (short) 0));
    matches.add(new MatchIpv6NdTarget(new Ipv6Address(ndTarget)));
    matches.add(new MatchMetadata(MetaDataUtil.getElanTagMetadata(elanTag), MetaDataUtil.METADATA_MASK_SERVICE));
    return matches;
}
Also used : MatchMetadata(org.opendaylight.genius.mdsalutil.matches.MatchMetadata) MatchInfo(org.opendaylight.genius.mdsalutil.MatchInfo) MatchIpv6NdTarget(org.opendaylight.genius.mdsalutil.matches.MatchIpv6NdTarget) MatchIcmpv6(org.opendaylight.genius.mdsalutil.matches.MatchIcmpv6) ArrayList(java.util.ArrayList) Ipv6Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address)

Aggregations

ArrayList (java.util.ArrayList)1 MatchInfo (org.opendaylight.genius.mdsalutil.MatchInfo)1 MatchIcmpv6 (org.opendaylight.genius.mdsalutil.matches.MatchIcmpv6)1 MatchIpv6NdTarget (org.opendaylight.genius.mdsalutil.matches.MatchIpv6NdTarget)1 MatchMetadata (org.opendaylight.genius.mdsalutil.matches.MatchMetadata)1 Ipv6Address (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address)1