commit | 139bca4af9857e531eb5100376e17d9407be68c6 | [log] [tgz] |
---|---|---|
author | Victor Silva <victor@waltznetworks.com> | Thu Aug 18 11:46:35 2016 -0300 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Sep 20 15:39:37 2016 +0000 |
tree | 29e5242b1edc5bc87fac7668d328b79a11f75ce3 | |
parent | c5e478c700576ac19ef7c2ba5e14e4fa45dd85d6 [diff] |
[ONOS-5171] FlowRuleStore: add purgeFlowEntries The FlowRuleStore exposes purgeFlowEntry(DeviceId), which purges from the store by a specific device. Add purgeFlowEntries, to purge entries from all devices. Change-Id: I0ec50d2bbb8b39097189f9e332dc3efd281bc811
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 bb8104d..f1cb90c 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
@@ -111,7 +111,12 @@ * * @param deviceId device id */ - void purgeFlowRule(DeviceId deviceId); + default void purgeFlowRule(DeviceId deviceId) {} + + /** + * Removes all flow entries from store. + */ + void purgeFlowRules(); /** * Updates the flow table statistics of the specified device using