commit | 08c7294c6fd5ec334ede535c0fac2fbb9727f16f | [log] [tgz] |
---|---|---|
author | BitOhenry <jiangrui1@huawei.com> | Wed Nov 18 14:44:29 2015 +0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Nov 19 21:26:27 2015 +0000 |
tree | 0aef3ccf3a0d037187d639daf61dcf73ac397687 | |
parent | 7ec0d1be857a3d117f527a416c73a5f3b6552df2 [diff] [blame] |
[ONOS-3391] create arp_spa selector to onos Change-Id: I2508a3ca7acb95b9792f0b23e085074a5b030a3b
diff --git a/core/api/src/main/java/org/onosproject/net/flow/criteria/Criteria.java b/core/api/src/main/java/org/onosproject/net/flow/criteria/Criteria.java index c45f160..554b8e7 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/criteria/Criteria.java +++ b/core/api/src/main/java/org/onosproject/net/flow/criteria/Criteria.java
@@ -520,6 +520,16 @@ } /** + * Creates a match on IPv4 source field using the specified value. + * + * @param ip ipv4 source value + * @return match criterion + */ + public static Criterion matchArpSpa(Ip4Address ip) { + return new ArpPaCriterion(ip, Type.ARP_SPA); + } + + /** * Creates a match on MAC destination field using the specified value. * * @param mac MAC destination value