From 3da2b73ec5ce77abf796ebeae6dfc149c8d3c698 Mon Sep 17 00:00:00 2001 From: Vladimir Lavor Date: Wed, 2 May 2018 09:47:44 +0200 Subject: support for shm prefixes Change-Id: I279653deb9911862d29143269aea5dffbd564478 Signed-off-by: Vladimir Lavor --- examples/cmd/perf-bench/perf-bench.go | 6 +++--- examples/cmd/simple-client/simple_client.go | 4 ++-- examples/cmd/stats-client/stats_client.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') 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 -- cgit 1.2.3-korg