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
Showing
2 changed files
with
13 additions
and
0 deletions
... | @@ -353,6 +353,11 @@ public final class DefaultTrafficSelector implements TrafficSelector { | ... | @@ -353,6 +353,11 @@ public final class DefaultTrafficSelector implements TrafficSelector { |
353 | } | 353 | } |
354 | 354 | ||
355 | @Override | 355 | @Override |
356 | + public Builder matchArpTha(MacAddress addr) { | ||
357 | + return add(Criteria.matchArpTha(addr)); | ||
358 | + } | ||
359 | + | ||
360 | + @Override | ||
356 | public TrafficSelector build() { | 361 | public TrafficSelector build() { |
357 | return new DefaultTrafficSelector(ImmutableSet.copyOf(selector.values())); | 362 | return new DefaultTrafficSelector(ImmutableSet.copyOf(selector.values())); |
358 | } | 363 | } | ... | ... |
... | @@ -386,6 +386,14 @@ public interface TrafficSelector { | ... | @@ -386,6 +386,14 @@ public interface TrafficSelector { |
386 | Builder matchIPv6ExthdrFlags(short exthdrFlags); | 386 | Builder matchIPv6ExthdrFlags(short exthdrFlags); |
387 | 387 | ||
388 | /** | 388 | /** |
389 | + * Matches a arp_eth_dst address. | ||
390 | + * | ||
391 | + * @param addr a arp_eth_dst address | ||
392 | + * @return a selection builder | ||
393 | + */ | ||
394 | + Builder matchArpTha(MacAddress addr); | ||
395 | + | ||
396 | + /** | ||
389 | * Builds an immutable traffic selector. | 397 | * Builds an immutable traffic selector. |
390 | * | 398 | * |
391 | * @return traffic selector | 399 | * @return traffic selector | ... | ... |
-
Please register or login to post a comment