BitOhenry
Committed by Gerrit Code Review

[ONOS-3363] Create arp_tha selector to onos

	modified:   core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java
	modified:   core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java

Change-Id: Id97469c133e0c10e44cda385dabb7c4ecca4af2b
......@@ -353,6 +353,11 @@ public final class DefaultTrafficSelector implements TrafficSelector {
}
@Override
public Builder matchArpTha(MacAddress addr) {
return add(Criteria.matchArpTha(addr));
}
@Override
public TrafficSelector build() {
return new DefaultTrafficSelector(ImmutableSet.copyOf(selector.values()));
}
......
......@@ -386,6 +386,14 @@ public interface TrafficSelector {
Builder matchIPv6ExthdrFlags(short exthdrFlags);
/**
* Matches a arp_eth_dst address.
*
* @param addr a arp_eth_dst address
* @return a selection builder
*/
Builder matchArpTha(MacAddress addr);
/**
* Builds an immutable traffic selector.
*
* @return traffic selector
......