diff options
Diffstat (limited to 'internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go')
-rw-r--r-- | internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go b/internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go index 850f04a..489297d 100644 --- a/internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go +++ b/internal/testbinapi/binapi2001/rdma/rdma_rpc.ba.go @@ -4,10 +4,11 @@ package rdma import ( "context" + api "git.fd.io/govpp.git/api" ) -// RPCService defines RPC service rdma. +// RPCService defines RPC service rdma. type RPCService interface { RdmaCreate(ctx context.Context, in *RdmaCreate) (*RdmaCreateReply, error) RdmaDelete(ctx context.Context, in *RdmaDelete) (*RdmaDeleteReply, error) @@ -27,7 +28,7 @@ func (c *serviceClient) RdmaCreate(ctx context.Context, in *RdmaCreate) (*RdmaCr if err != nil { return nil, err } - return out, nil + return out, api.RetvalToVPPApiError(out.Retval) } func (c *serviceClient) RdmaDelete(ctx context.Context, in *RdmaDelete) (*RdmaDeleteReply, error) { @@ -36,5 +37,5 @@ func (c *serviceClient) RdmaDelete(ctx context.Context, in *RdmaDelete) (*RdmaDe if err != nil { return nil, err } - return out, nil + return out, api.RetvalToVPPApiError(out.Retval) } |