summaryrefslogtreecommitdiffstats
path: root/internal/testbinapi/binapi2001/pipe
diff options
context:
space:
mode:
Diffstat (limited to 'internal/testbinapi/binapi2001/pipe')
-rw-r--r--internal/testbinapi/binapi2001/pipe/pipe.ba.go5
-rw-r--r--internal/testbinapi/binapi2001/pipe/pipe_rpc.ba.go13
2 files changed, 12 insertions, 6 deletions
diff --git a/internal/testbinapi/binapi2001/pipe/pipe.ba.go b/internal/testbinapi/binapi2001/pipe/pipe.ba.go
index 66f044c..da324cb 100644
--- a/internal/testbinapi/binapi2001/pipe/pipe.ba.go
+++ b/internal/testbinapi/binapi2001/pipe/pipe.ba.go
@@ -1,6 +1,6 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0-dev
+// binapi-generator: v0.5.0-dev
// VPP: 20.01
// source: .vppapi/core/pipe.api.json
@@ -14,9 +14,10 @@
package pipe
import (
+ "strconv"
+
api "git.fd.io/govpp.git/api"
codec "git.fd.io/govpp.git/codec"
- "strconv"
)
// This is a compile-time assertion to ensure that this generated file
diff --git a/internal/testbinapi/binapi2001/pipe/pipe_rpc.ba.go b/internal/testbinapi/binapi2001/pipe/pipe_rpc.ba.go
index ce2037d..3f2dbc9 100644
--- a/internal/testbinapi/binapi2001/pipe/pipe_rpc.ba.go
+++ b/internal/testbinapi/binapi2001/pipe/pipe_rpc.ba.go
@@ -5,12 +5,13 @@ package pipe
import (
"context"
"fmt"
+ "io"
+
api "git.fd.io/govpp.git/api"
vpe "git.fd.io/govpp.git/internal/testbinapi/binapi2001/vpe"
- "io"
)
-// RPCService defines RPC service pipe.
+// RPCService defines RPC service pipe.
type RPCService interface {
PipeCreate(ctx context.Context, in *PipeCreate) (*PipeCreateReply, error)
PipeDelete(ctx context.Context, in *PipeDelete) (*PipeDeleteReply, error)
@@ -31,7 +32,7 @@ func (c *serviceClient) PipeCreate(ctx context.Context, in *PipeCreate) (*PipeCr
if err != nil {
return nil, err
}
- return out, nil
+ return out, api.RetvalToVPPApiError(out.Retval)
}
func (c *serviceClient) PipeDelete(ctx context.Context, in *PipeDelete) (*PipeDeleteReply, error) {
@@ -40,7 +41,7 @@ func (c *serviceClient) PipeDelete(ctx context.Context, in *PipeDelete) (*PipeDe
if err != nil {
return nil, err
}
- return out, nil
+ return out, api.RetvalToVPPApiError(out.Retval)
}
func (c *serviceClient) PipeDump(ctx context.Context, in *PipeDump) (RPCService_PipeDumpClient, error) {
@@ -76,6 +77,10 @@ func (c *serviceClient_PipeDumpClient) Recv() (*PipeDetails, error) {
case *PipeDetails:
return m, nil
case *vpe.ControlPingReply:
+ err = c.Stream.Close()
+ if err != nil {
+ return nil, err
+ }
return nil, io.EOF
default:
return nil, fmt.Errorf("unexpected message: %T %v", m, m)