alshabib | 7410fea | 2014-09-16 13:48:39 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.net.flow.criteria; |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 2 | |
| 3 | /** |
| 4 | * Factory class to create various traffic selection criteria. |
| 5 | */ |
| 6 | public final class Criteria { |
| 7 | |
| 8 | // Ban construction |
| 9 | private Criteria() { |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Creates a match on ETH_SRC field using the specified value. This value |
| 14 | * may be a wildcard mask. |
| 15 | * |
| 16 | * @param macValue MAC address value or wildcard mask |
| 17 | * @return match criterion |
| 18 | */ |
| 19 | public static Criterion matchEthSrc(MACValue macValue) { |
| 20 | return null; |
| 21 | } |
| 22 | |
alshabib | 369d294 | 2014-09-12 17:59:35 -0700 | [diff] [blame] | 23 | /** |
| 24 | * Creates a match on ETH_DST field using the specified value. This value |
| 25 | * may be a wildcard mask. |
| 26 | * |
| 27 | * @param macValue MAC address value or wildcard mask |
| 28 | * @return match criterion |
| 29 | */ |
| 30 | public static Criterion matchEthDst(MACValue macValue) { |
| 31 | return null; |
| 32 | } |
| 33 | |
| 34 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 35 | // Dummy to illustrate the concept for now; delete ASAP |
| 36 | private static class MACValue { } |
| 37 | } |