summaryrefslogtreecommitdiffstats
path: root/govpp.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2019-05-21 11:30:20 +0200
committerOndrej Fabry <ofabry@cisco.com>2019-05-21 11:30:20 +0200
commit0b57de255730e7277bd5fbd96d78f64b2961c553 (patch)
tree4da1cc0d54b2f6b9cf9017eae295fcf9df767539 /govpp.go
parent87e79ec9fa48e5f8b2eb949c337488db75a17b29 (diff)
Change default adapter to socketclient and cleanup some logs
Change-Id: I16ae8dbb5214e022304f4e8ae60798b370567fc8 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'govpp.go')
-rw-r--r--govpp.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/govpp.go b/govpp.go
index d66d5dc..f36ce40 100644
--- a/govpp.go
+++ b/govpp.go
@@ -15,10 +15,11 @@
package govpp
import (
+ "time"
+
"git.fd.io/govpp.git/adapter"
- "git.fd.io/govpp.git/adapter/vppapiclient"
+ "git.fd.io/govpp.git/adapter/socketclient"
"git.fd.io/govpp.git/core"
- "time"
)
var (
@@ -26,9 +27,9 @@ var (
vppAdapter adapter.VppAPI
)
-func getVppAdapter(shm string) adapter.VppAPI {
+func getVppAdapter(addr string) adapter.VppAPI {
if vppAdapter == nil {
- vppAdapter = vppapiclient.NewVppClient(shm)
+ vppAdapter = socketclient.NewVppClient(addr)
}
return vppAdapter
}