aboutsummaryrefslogtreecommitdiffstats
path: root/govpp.go
diff options
context:
space:
mode:
authorVladimir Lavor <vlavor@cisco.com>2019-04-04 14:36:34 +0200
committerVladimir Lavor <vlavor@cisco.com>2019-04-04 14:36:55 +0200
commite6cca4bfd215aba51d58bf0bb046c16c081e42a3 (patch)
tree5220878a595a7a15552bb1f55f969e3f13ab8d70 /govpp.go
parent6fe52d72255456e7d73df9d2f6b4a8f724ed447d (diff)
fix govpp, add more checks to makefile
Change-Id: Ie118b0c254e5d70e66d5cb4a5f6eb8fa852f0ed8 Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'govpp.go')
-rw-r--r--govpp.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/govpp.go b/govpp.go
index f679242..d66d5dc 100644
--- a/govpp.go
+++ b/govpp.go
@@ -18,6 +18,7 @@ import (
"git.fd.io/govpp.git/adapter"
"git.fd.io/govpp.git/adapter/vppapiclient"
"git.fd.io/govpp.git/core"
+ "time"
)
var (
@@ -49,6 +50,6 @@ func Connect(shm string) (*core.Connection, error) {
// This call does not block until connection is established, it returns immediately. The caller is
// supposed to watch the returned ConnectionState channel for Connected/Disconnected events.
// In case of disconnect, the library will asynchronously try to reconnect.
-func AsyncConnect(shm string) (*core.Connection, chan core.ConnectionEvent, error) {
- return core.AsyncConnect(getVppAdapter(shm))
+func AsyncConnect(shm string, attempts int, interval time.Duration) (*core.Connection, chan core.ConnectionEvent, error) {
+ return core.AsyncConnect(getVppAdapter(shm), attempts, interval)
}