use of org.opendaylight.genius.mdsalutil.ericmatches.MatchNdOptionType in project netvirt by opendaylight.
the class Ipv6ServiceUtils method getIcmpv6NsMatchFlow.
private List<MatchInfo> getIcmpv6NsMatchFlow(Long elanTag, int lportTag, String vmMacAddress, Ipv6Address ndTargetAddr, Boolean isSllOptionSet) {
List<MatchInfo> matches = new ArrayList<>();
matches.add(MatchEthernetType.IPV6);
matches.add(MatchIpProtocol.ICMPV6);
matches.add(new MatchIcmpv6(Icmpv6Type.NEIGHBOR_SOLICITATION.getValue(), (short) 0));
matches.add(new MatchIpv6NdTarget(new Ipv6Address(ndTargetAddr)));
if (Boolean.TRUE.equals(isSllOptionSet)) {
matches.add(new MatchNdOptionType((short) 1));
/* matches.add(new MatchIpv6NdSll(new MacAddress(vmMacAddress))); */
}
matches.add(new MatchMetadata(ElanHelper.getElanMetadataLabel(elanTag, lportTag), ElanHelper.getElanMetadataMask()));
return matches;
}
use of org.opendaylight.genius.mdsalutil.ericmatches.MatchNdOptionType in project netvirt by opendaylight.
the class Ipv6ServiceUtils method getIcmpv6NaResponderMatch.
private List<MatchInfo> getIcmpv6NaResponderMatch(Long elanTag, int lportTag, String vmMacAddress, Ipv6Address ndTarget, Boolean isNdOptionTypeSet) {
List<MatchInfo> matches = new ArrayList<>();
matches.add(MatchEthernetType.IPV6);
matches.add(MatchIpProtocol.ICMPV6);
matches.add(new MatchIcmpv6(Icmpv6Type.NEIGHBOR_ADVERTISEMENT.getValue(), (short) 0));
matches.add(new MatchIpv6NdTarget(new Ipv6Address(ndTarget)));
if (Boolean.TRUE.equals(isNdOptionTypeSet)) {
matches.add(new MatchNdOptionType((short) 2));
}
matches.add(new MatchMetadata(ElanHelper.getElanMetadataLabel(elanTag, lportTag), ElanHelper.getElanMetadataMask()));
return matches;
}
Aggregations