[ONOS-5778] OVSDB protocol-OVSDB controller connection failure (maximum retry exceeded failure)
handling
+ checkstyle error fixed
+ changing 'log.info'-> 'log.warn' (applying module owner's comment)
Change-Id: I43aff90a15d7e0b82029fa11ed5dacaa358cb337
diff --git a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java
index 86e6bd4..04199e2 100644
--- a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java
+++ b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java
@@ -67,6 +67,7 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.ExecutionException;
+import java.util.function.Consumer;
import static com.google.common.base.Preconditions.checkNotNull;
@@ -147,6 +148,11 @@
controller.connect(ip, port);
}
+ @Override
+ public void connect(IpAddress ip, TpPort port, Consumer<Exception> failhandler) {
+ controller.connect(ip, port, failhandler);
+ }
+
/**
* Implementation of an Ovsdb Agent which is responsible for keeping track
* of connected node and the state in which they are.