commit | 7e40c011188aed1520c306df112931d4bd36a46d | [log] [tgz] |
---|---|---|
author | Patryk Konopka <p.konopka2@samsung.com> | Tue Jun 06 13:38:06 2017 +0200 |
committer | Yuta HIGUCHI <y-higuchi@opennetworking.org> | Tue Jun 20 15:43:27 2017 +0000 |
tree | a2be7af224a4f007c5c4108c2be9649f2affab58 | |
parent | 644472eaf9294f909c937cf99393856adee84fee [diff] [blame] |
[ONOS-6607] Get active flow entries count in FlowRuleService Change-Id: I68b4d916f92427c06a82d3622fcc05738f64541c
diff --git a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleStore.java b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleStore.java index f1cb90c..0281009 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleStore.java +++ b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleStore.java
@@ -136,4 +136,12 @@ * @return the flow table statistics */ Iterable<TableStatisticsEntry> getTableStatistics(DeviceId deviceId); + + /** + * Returns number of flow rules in ADDED state for specified device. + * + * @param deviceId the device ID + * @return number of flow rules in ADDED state + */ + long getActiveFlowRuleCount(DeviceId deviceId); }