diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2019-07-03 13:44:09 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2019-07-03 13:44:09 +0200 |
commit | 15334aab4ad1b09cb698175adf5a02d7cb6fa410 (patch) | |
tree | c2c72021a00c5d3be6b9f05e2349e3c92290fd56 /adapter/vpp_api.go | |
parent | d3b84969e8ec5dabfd5fd3038d0fe67309c63168 (diff) |
Fix error counters for VPP 19.04
Change-Id: I87251362668bbe9a31f52c1b5e9b3ab596f7b2f3
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/vpp_api.go')
-rw-r--r-- | adapter/vpp_api.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/adapter/vpp_api.go b/adapter/vpp_api.go index 7d14633..2391420 100644 --- a/adapter/vpp_api.go +++ b/adapter/vpp_api.go @@ -18,8 +18,15 @@ import ( "errors" ) -// ErrNotImplemented is an error returned when missing implementation. -var ErrNotImplemented = errors.New("not implemented for this OS") +const ( + // DefaultBinapiSocket defines a default socket file path for VPP binary API. + DefaultBinapiSocket = "/run/vpp-api.sock" +) + +var ( + // ErrNotImplemented is an error returned when missing implementation. + ErrNotImplemented = errors.New("not implemented for this OS") +) // MsgCallback defines func signature for message callback. type MsgCallback func(msgID uint16, data []byte) |