diff options
Diffstat (limited to 'internal/testbinapi/binapi2001/cop/cop_rpc.ba.go')
-rw-r--r-- | internal/testbinapi/binapi2001/cop/cop_rpc.ba.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/testbinapi/binapi2001/cop/cop_rpc.ba.go b/internal/testbinapi/binapi2001/cop/cop_rpc.ba.go index 9f6f84e..120613d 100644 --- a/internal/testbinapi/binapi2001/cop/cop_rpc.ba.go +++ b/internal/testbinapi/binapi2001/cop/cop_rpc.ba.go @@ -4,10 +4,11 @@ package cop import ( "context" + api "git.fd.io/govpp.git/api" ) -// RPCService defines RPC service cop. +// RPCService defines RPC service cop. type RPCService interface { CopInterfaceEnableDisable(ctx context.Context, in *CopInterfaceEnableDisable) (*CopInterfaceEnableDisableReply, error) CopWhitelistEnableDisable(ctx context.Context, in *CopWhitelistEnableDisable) (*CopWhitelistEnableDisableReply, error) @@ -27,7 +28,7 @@ func (c *serviceClient) CopInterfaceEnableDisable(ctx context.Context, in *CopIn if err != nil { return nil, err } - return out, nil + return out, api.RetvalToVPPApiError(out.Retval) } func (c *serviceClient) CopWhitelistEnableDisable(ctx context.Context, in *CopWhitelistEnableDisable) (*CopWhitelistEnableDisableReply, error) { @@ -36,5 +37,5 @@ func (c *serviceClient) CopWhitelistEnableDisable(ctx context.Context, in *CopWh if err != nil { return nil, err } - return out, nil + return out, api.RetvalToVPPApiError(out.Retval) } |