diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cmd/perf-bench/perf-bench.go | 6 | ||||
-rw-r--r-- | examples/cmd/simple-client/simple_client.go | 4 | ||||
-rw-r--r-- | examples/cmd/stats-client/stats_client.go | 4 |
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 |