From f611e63189d58c96779f4cf9f52e487750c87faa Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Tue, 19 Dec 2023 11:09:42 +0100 Subject: [PATCH] api: fix api bindings Signed-off-by: Nathan Skrzypczak --- vpplink/generated/bindings/interface/interface_rpc.ba.go | 5 +++-- vpplink/generated/bindings/ip/ip_rpc.ba.go | 5 +++-- vpplink/generated/bindings/nat44_ed/nat44_ed_rpc.ba.go | 5 +++-- vpplink/generated/generate.log | 6 +++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/vpplink/generated/bindings/interface/interface_rpc.ba.go b/vpplink/generated/bindings/interface/interface_rpc.ba.go index a3f2f705..dd24702a 100644 --- a/vpplink/generated/bindings/interface/interface_rpc.ba.go +++ b/vpplink/generated/bindings/interface/interface_rpc.ba.go @@ -464,11 +464,12 @@ func (c *serviceClient_SwInterfaceTxPlacementGetClient) Recv() (*SwInterfaceTxPl return m, nil, nil case *SwInterfaceTxPlacementGetReply: if err := api.RetvalToVPPApiError(m.Retval); err != nil { - return nil, nil, err + c.Stream.Close() + return nil, m, err } err = c.Stream.Close() if err != nil { - return nil, nil, err + return nil, m, err } return nil, m, io.EOF default: diff --git a/vpplink/generated/bindings/ip/ip_rpc.ba.go b/vpplink/generated/bindings/ip/ip_rpc.ba.go index 5a2cb470..713bbcff 100644 --- a/vpplink/generated/bindings/ip/ip_rpc.ba.go +++ b/vpplink/generated/bindings/ip/ip_rpc.ba.go @@ -378,11 +378,12 @@ func (c *serviceClient_IPPathMtuGetClient) Recv() (*IPPathMtuDetails, *IPPathMtu return m, nil, nil case *IPPathMtuGetReply: if err := api.RetvalToVPPApiError(m.Retval); err != nil { - return nil, nil, err + c.Stream.Close() + return nil, m, err } err = c.Stream.Close() if err != nil { - return nil, nil, err + return nil, m, err } return nil, m, io.EOF default: diff --git a/vpplink/generated/bindings/nat44_ed/nat44_ed_rpc.ba.go b/vpplink/generated/bindings/nat44_ed/nat44_ed_rpc.ba.go index cec01d5a..f80b505c 100644 --- a/vpplink/generated/bindings/nat44_ed/nat44_ed_rpc.ba.go +++ b/vpplink/generated/bindings/nat44_ed/nat44_ed_rpc.ba.go @@ -224,11 +224,12 @@ func (c *serviceClient_Nat44EdOutputInterfaceGetClient) Recv() (*Nat44EdOutputIn return m, nil, nil case *Nat44EdOutputInterfaceGetReply: if err := api.RetvalToVPPApiError(m.Retval); err != nil { - return nil, nil, err + c.Stream.Close() + return nil, m, err } err = c.Stream.Close() if err != nil { - return nil, nil, err + return nil, m, err } return nil, m, io.EOF default: diff --git a/vpplink/generated/generate.log b/vpplink/generated/generate.log index b378d26b..9573d780 100755 --- a/vpplink/generated/generate.log +++ b/vpplink/generated/generate.log @@ -1,6 +1,6 @@ -VPP Version : 24.02-rc0~8-gfc2d69296 -Binapi-generator version : v0.8.0-dev -VPP Base commit : f514c5ea5 gerrit:34726/3 interface: add buffer stats api +VPP Version : 24.02-rc0~8-g9db45f6ae +Binapi-generator version : v0.8.0 +VPP Base commit : 06efd532e gerrit:34726/3 interface: add buffer stats api ------------------ Cherry picked commits -------------------- capo: Calico Policies plugin acl: acl-plugin custom policies