diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-05-21 11:30:20 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-05-21 11:30:20 +0200 |
commit | 0b57de255730e7277bd5fbd96d78f64b2961c553 (patch) | |
tree | 4da1cc0d54b2f6b9cf9017eae295fcf9df767539 /govpp.go | |
parent | 87e79ec9fa48e5f8b2eb949c337488db75a17b29 (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.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 } |