commit | a3fa26c1f7d0fc7245f29a93ea4d9e2fdf2bdc88 | [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 15:39:05 2021 +0000 |
tree | 4e48b8d49abaf198e5fd50e228a5b4d1c5fee413 | |
parent | 365751943b0c5316e79fbc1201a8d7af659e5008 [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(); } }