summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorVladimir Lavor <vlavor@cisco.com>2018-05-02 09:47:44 +0200
committerVladimir Lavor <vlavor@cisco.com>2018-05-02 09:47:44 +0200
commit3da2b73ec5ce77abf796ebeae6dfc149c8d3c698 (patch)
tree3119df3db2136d4f77c38547a6d0bdd549b52960 /examples
parent0456d22f67865977065886ed58778621b21b7ede (diff)
support for shm prefixes
Change-Id: I279653deb9911862d29143269aea5dffbd564478 Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/cmd/perf-bench/perf-bench.go6
-rw-r--r--examples/cmd/simple-client/simple_client.go4
-rw-r--r--examples/cmd/stats-client/stats_client.go4
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/cmd/perf-bench/perf-bench.go b/examples/cmd/perf-bench/perf-bench.go
index ca74df6..f3ff752 100644
--- a/examples/cmd/perf-bench/perf-bench.go
+++ b/examples/cmd/perf-bench/perf-bench.go
@@ -24,8 +24,8 @@ import (
"sync"
"time"
- "github.com/sirupsen/logrus"
"github.com/pkg/profile"
+ "github.com/sirupsen/logrus"
"git.fd.io/govpp.git"
"git.fd.io/govpp.git/api"
@@ -64,7 +64,7 @@ func main() {
core.SetLogger(&logrus.Logger{Level: logrus.ErrorLevel})
// connect to VPP
- conn, err := govpp.Connect()
+ conn, err := govpp.Connect("")
if err != nil {
log.Println("Error:", err)
os.Exit(1)
@@ -159,4 +159,4 @@ func readAsyncReplies(ch *api.Channel, expectedCnt int, wg *sync.WaitGroup) {
return
}
}
-}
+} \ No newline at end of file
diff --git a/examples/cmd/simple-client/simple_client.go b/examples/cmd/simple-client/simple_client.go
index 8f10360..67dc14b 100644
--- a/examples/cmd/simple-client/simple_client.go
+++ b/examples/cmd/simple-client/simple_client.go
@@ -35,7 +35,7 @@ func main() {
fmt.Println("Starting simple VPP client...")
// connect to VPP
- conn, err := govpp.Connect()
+ conn, err := govpp.Connect("")
if err != nil {
fmt.Println("Error:", err)
os.Exit(1)
@@ -218,4 +218,4 @@ func interfaceNotifications(ch *api.Channel) {
// unsubscribe from delivery of the notifications
ch.UnsubscribeNotification(subs)
-}
+} \ No newline at end of file
diff --git a/examples/cmd/stats-client/stats_client.go b/examples/cmd/stats-client/stats_client.go
index 458da21..17c7956 100644
--- a/examples/cmd/stats-client/stats_client.go
+++ b/examples/cmd/stats-client/stats_client.go
@@ -35,7 +35,7 @@ func main() {
fmt.Println("Starting stats VPP client...")
// async connect to VPP
- conn, statCh, err := govpp.AsyncConnect()
+ conn, statCh, err := govpp.AsyncConnect("")
if err != nil {
fmt.Println("Error:", err)
os.Exit(1)
@@ -141,4 +141,4 @@ func processCombinedCounters(counters *interfaces.VnetInterfaceCombinedCounters)
counters.FirstSwIfIndex+i, counterNames[counters.VnetCounterType], counters.Data[i].Packets,
counterNames[counters.VnetCounterType], counters.Data[i].Bytes)
}
-}
+} \ No newline at end of file