commit | 914c7ad302352d63f18d17af205227ba40d8ebcf | [log] [tgz] |
---|---|---|
author | BitOhenry <jiangrui1@huawei.com> | Mon Nov 16 14:58:53 2015 +0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Nov 16 17:42:42 2015 +0000 |
tree | f625bb1bb982bba25639063e965f9bbe178a33b4 | |
parent | 9f8afb45acc020f8af12c741bd0e011437944bde [diff] |
[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
diff --git a/core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java b/core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java index 453a764..fcaa5c0 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java +++ b/core/api/src/main/java/org/onosproject/net/flow/DefaultTrafficSelector.java
@@ -353,6 +353,11 @@ } @Override + public Builder matchArpTha(MacAddress addr) { + return add(Criteria.matchArpTha(addr)); + } + + @Override public TrafficSelector build() { return new DefaultTrafficSelector(ImmutableSet.copyOf(selector.values())); }
diff --git a/core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java b/core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java index 1286ffc..8d2288c 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java +++ b/core/api/src/main/java/org/onosproject/net/flow/TrafficSelector.java
@@ -386,6 +386,14 @@ 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