commit | f37ce526150b195cc2908261b8244776f33aa365 | [log] [tgz] |
---|---|---|
author | pier <pier@opennetworking.org> | Fri Mar 20 11:00:38 2020 +0100 |
committer | Andrea Campanella <andrea@opennetworking.org> | Mon Mar 23 19:42:07 2020 +0000 |
tree | e27aea8fa78a862b4465e04fb1780a8a51d5e565 | |
parent | 3dbb14964a1a1742923c4c98622338701cfd1e8f [diff] |
Fixes a regression introduced by 23223. Additionally adds a cleanUp method for the pipeliners to reset the internal states between different executions. This was another regression introduced by 23223. Fixes also a memory leak caused by re-init of the grouphandler without terminating its internal references Change-Id: I06e9e005110c5237cb3bdf893cc71975fb94281e
diff --git a/core/api/src/main/java/org/onosproject/net/behaviour/Pipeliner.java b/core/api/src/main/java/org/onosproject/net/behaviour/Pipeliner.java index c9ea8a9..22e89d8 100644 --- a/core/api/src/main/java/org/onosproject/net/behaviour/Pipeliner.java +++ b/core/api/src/main/java/org/onosproject/net/behaviour/Pipeliner.java
@@ -90,4 +90,11 @@ return true; } + /** + * Clean up internal state of the pipeliner. + * Implementation is pipeliner specific. + */ + default void cleanUp() { + } + }