diff options
author | Matus Mrekaj <matus.mrekaj@pantheon.tech> | 2019-10-16 15:13:44 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-10-17 04:54:26 +0000 |
commit | cc80dbcaaaca8bf1b6042fead850d456cf589a4e (patch) | |
tree | aaa4711e9938699d36f48231eaa889f0bb839185 /cmd/vpp-proxy | |
parent | 9bf7175a26f29a8c0133883152afb98765edd8ca (diff) |
add missing implementation for proxy
Signed-off-by: Matus Mrekaj <matus.mrekaj@pantheon.tech>
Change-Id: I1ab9efb9e575e7993501e7774628cbb60d16ec43
Diffstat (limited to 'cmd/vpp-proxy')
-rw-r--r-- | cmd/vpp-proxy/main.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/vpp-proxy/main.go b/cmd/vpp-proxy/main.go index 7aea885..de1b7b4 100644 --- a/cmd/vpp-proxy/main.go +++ b/cmd/vpp-proxy/main.go @@ -24,6 +24,7 @@ import ( "git.fd.io/govpp.git/adapter/socketclient" "git.fd.io/govpp.git/adapter/statsclient" "git.fd.io/govpp.git/api" + _ "git.fd.io/govpp.git/core" "git.fd.io/govpp.git/examples/binapi/interfaces" "git.fd.io/govpp.git/examples/binapi/vpe" "git.fd.io/govpp.git/proxy" @@ -84,6 +85,13 @@ func runClient() { if err != nil { log.Fatalln(err) } + log.Println("checking compatibility") + var msgs []api.Message + msgs = append(msgs, interfaces.AllMessages()...) + msgs = append(msgs, vpe.AllMessages()...) + if err := binapiChannel.CheckCompatiblity(msgs...); err != nil { + panic(err) + } // - using binapi message directly req := &vpe.CliInband{Cmd: "show version"} |