summaryrefslogtreecommitdiffstats
path: root/examples/cmd
diff options
context:
space:
mode:
authorMilan Lenco <milan.lenco@pantheon.tech>2018-01-25 10:15:48 +0100
committerMilan Lenco <milan.lenco@pantheon.tech>2018-01-25 10:15:48 +0100
commit8ca20507d15703412c18b07d4f4ce6b4de989de6 (patch)
treeaef60a5ef4dd150b62958b757e706f8c3311c68c /examples/cmd
parent545eaea1c41c800794bb910a47de281e7e8df492 (diff)
Update examples, tests and testdata after binapi-generator update.
Change-Id: I738d501cbbb6673010a32847df3f1c87050b8d36 Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'examples/cmd')
-rw-r--r--examples/cmd/stats-client/stats_client.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cmd/stats-client/stats_client.go b/examples/cmd/stats-client/stats_client.go
index e0c4463..458da21 100644
--- a/examples/cmd/stats-client/stats_client.go
+++ b/examples/cmd/stats-client/stats_client.go
@@ -27,8 +27,8 @@ import (
"git.fd.io/govpp.git"
"git.fd.io/govpp.git/api"
"git.fd.io/govpp.git/core"
- "git.fd.io/govpp.git/core/bin_api/vpe"
"git.fd.io/govpp.git/examples/bin_api/interfaces"
+ "git.fd.io/govpp.git/examples/bin_api/stats"
)
func main() {
@@ -112,10 +112,10 @@ func subscribeNotifications(ch *api.Channel) (*api.NotifSubscription, *api.Notif
// requestStatistics requests interface counters notifications from VPP.
func requestStatistics(ch *api.Channel) {
- ch.SendRequest(&vpe.WantStats{
+ ch.SendRequest(&stats.WantStats{
Pid: uint32(os.Getpid()),
EnableDisable: 1,
- }).ReceiveReply(&vpe.WantStatsReply{})
+ }).ReceiveReply(&stats.WantStatsReply{})
}
// processSimpleCounters processes simple counters received from VPP.