commit | 3daf7cef74caa25ce75f25db6705a51399c5db72 | [log] [tgz] |
---|---|---|
author | Miguel Borges de Freitas <miguel-r-freitas@alticelabs.com> | Wed Oct 13 10:39:54 2021 +0100 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Mon Oct 25 13:14:00 2021 +0000 |
tree | 497e7fd42d268b63d0fa0c222c786d65ef41a742 | |
parent | 0a9b5009366273290c709c5cc134bb9edd5956bd [diff] |
[OVSDB] Fix ovsdb passive mode connections Currently ovsdb passive connections are broken. This happens because the eventloop is never initialized. As a result, in connectRetry() (called in connect()) the workerGroup is null and the connection to the switch can't be established. Change-Id: Ic20a3f699e49f119bd2ba6edb6eb8ad94ba09009
diff --git a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/Controller.java b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/Controller.java index 86998c0..c4616be 100644 --- a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/Controller.java +++ b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/Controller.java
@@ -254,6 +254,8 @@ log.warn("Interrupted while waiting to start"); Thread.currentThread().interrupt(); } + } else { + initEventLoopGroup(); } }