tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
| 2 | |
tom | c1a38d3 | 2014-08-25 23:01:32 -0700 | [diff] [blame] | 3 | import org.onlab.onos.net.provider.ProviderService; |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 4 | |
| 5 | /** |
| 6 | * Service through which flowrule providers can inject flowrule information into |
| 7 | * the core. |
| 8 | */ |
| 9 | public interface FlowRuleProviderService extends ProviderService { |
| 10 | |
| 11 | /** |
| 12 | * Signals that a flow that was previously installed has been removed. |
| 13 | * |
| 14 | * @param flowDescription information about the removed flow |
| 15 | */ |
| 16 | void flowRemoved(FlowDescription flowDescription); |
| 17 | |
| 18 | /** |
| 19 | * Signals that a flowrule is missing for some network traffic. |
| 20 | * |
| 21 | * @param flowDescription information about traffic in need of flow rule(s) |
| 22 | */ |
| 23 | void flowMissing(FlowDescription flowDescription); |
| 24 | |
| 25 | /** |
| 26 | * Signals that a flowrule has been added. |
| 27 | * |
| 28 | * TODO think about if this really makes sense, e.g. if stats collection or |
| 29 | * something can leverage it. |
| 30 | * |
| 31 | * @param flowDescription the rule that was added |
| 32 | */ |
| 33 | void flowAdded(FlowDescription flowDescription); |
| 34 | |
| 35 | } |