commit | 5c7fe3acf43bf1304038a7be55a5fd45e5805396 | [log] [tgz] |
---|---|---|
author | David Glantz <david.glantz@windstream.com> | Wed Sep 22 14:34:14 2021 -0500 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Thu Oct 14 13:22:53 2021 +0000 |
tree | b3139010c37aedb51bb279ded95f2c8ff30139fe | |
parent | eaaaf0dd8786668dbeb89fc1deaf6c3736d1cb88 [diff] |
Fix to reinstall flow rules when they are missing in FlowRuleService. Change-Id: I1e7e0d62e27012cd090f3a72eb92eadc85afafdf
diff --git a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleService.java b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleService.java index 2b29504..9cada03 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/FlowRuleService.java +++ b/core/api/src/main/java/org/onosproject/net/flow/FlowRuleService.java
@@ -64,6 +64,14 @@ } /** + * Returns the stored flow. + * + * @param rule the rule to look for + * @return a flow rule + */ + FlowEntry getFlowEntry(FlowRule rule); + + /** * Returns the collection of flow entries applied on the specified device. * This will include flow rules which may not yet have been applied to * the device.
diff --git a/core/api/src/test/java/org/onosproject/net/flow/FlowRuleServiceAdapter.java b/core/api/src/test/java/org/onosproject/net/flow/FlowRuleServiceAdapter.java index 4f53b96..1ccbbc8 100644 --- a/core/api/src/test/java/org/onosproject/net/flow/FlowRuleServiceAdapter.java +++ b/core/api/src/test/java/org/onosproject/net/flow/FlowRuleServiceAdapter.java
@@ -29,6 +29,11 @@ } @Override + public FlowEntry getFlowEntry(FlowRule rule) { + return null; + } + + @Override public Iterable<FlowEntry> getFlowEntries(DeviceId deviceId) { return null; }