From 727beecbcac47efa3a1f8b27f3a323c64ba7e01c Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Tue, 2 Jan 2024 19:42:53 +0100 Subject: [PATCH 1/2] Release v0.9.0-beta Signed-off-by: Ondrej Fabry --- CHANGELOG.md | 19 +++++++++++++++++++ internal/version/version.go | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a39271f..b2d5009a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,25 @@ This file lists changes for the GoVPP releases. - --> +## 0.9.0 + +> _XX January 2024_ + +### Changes + +- Update run_integration.sh (#151, #154) +- Add VPP 23.10 to CI (#175) +- Improvements GoVPP CLI (#156) + +### Fixes + +- Fix running integration tests outside of GitHub (#168) +- Add check for stats vector length (#172) + +### GoMemif + +- gomemif: Packet sent on Tx queue is received back on Rx queue of sender (#165) + ## 0.8.0 > _18 July 2023_ diff --git a/internal/version/version.go b/internal/version/version.go index 00210e85..52fdbf60 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -27,7 +27,7 @@ const ( Major = 0 Minor = 9 Patch = 0 - PreRelease = "dev" + PreRelease = "beta" ) // String formats the version string using semver format. @@ -44,7 +44,7 @@ func String() string { // even with bare go build/install. var ( name = "govpp" - version = "v0.9.0-dev" + version = "v0.9.0-beta" commit = "unknown" branch = "HEAD" buildStamp = "" From 27ae7cd6772eb856027531d57a123dd04b19bb90 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Tue, 2 Jan 2024 20:44:21 +0100 Subject: [PATCH 2/2] Regenerate binapi Signed-off-by: Ondrej Fabry --- .github/workflows/ci.yaml | 2 +- Makefile | 2 +- binapi/abf/abf.ba.go | 4 +- binapi/acl/acl.ba.go | 4 +- binapi/acl_types/acl_types.ba.go | 4 +- binapi/adl/adl.ba.go | 6 +- binapi/af_packet/af_packet.ba.go | 8 +- binapi/af_xdp/af_xdp.ba.go | 132 ++++++- binapi/af_xdp/af_xdp_rpc.ba.go | 10 + binapi/arp/arp.ba.go | 4 +- binapi/arping/arping.ba.go | 109 +++++- binapi/arping/arping_rpc.ba.go | 10 + binapi/avf/avf.ba.go | 4 +- binapi/bfd/bfd.ba.go | 4 +- binapi/bier/bier.ba.go | 4 +- binapi/bond/bond.ba.go | 4 +- .../bpf_trace_filter/bpf_trace_filter.ba.go | 128 +++++++ .../bpf_trace_filter_rpc.ba.go | 31 ++ binapi/builtinurl/builtinurl.ba.go | 4 +- binapi/cdp/cdp.ba.go | 4 +- binapi/classify/classify.ba.go | 4 +- binapi/cnat/cnat.ba.go | 20 +- binapi/crypto/crypto.ba.go | 98 +++++- binapi/crypto/crypto_rpc.ba.go | 10 + .../crypto_sw_scheduler.ba.go | 6 +- binapi/ct6/ct6.ba.go | 4 +- binapi/det44/det44.ba.go | 10 +- binapi/dhcp/dhcp.ba.go | 4 +- .../dhcp6_ia_na_client_cp.ba.go | 4 +- .../dhcp6_pd_client_cp.ba.go | 4 +- binapi/dns/dns.ba.go | 4 +- binapi/dslite/dslite.ba.go | 4 +- binapi/ethernet_types/ethernet_types.ba.go | 4 +- binapi/feature/feature.ba.go | 4 +- binapi/fib/fib.ba.go | 4 +- binapi/fib_types/fib_types.ba.go | 4 +- binapi/flow/flow.ba.go | 6 +- binapi/flow_types/flow_types.ba.go | 4 +- binapi/flowprobe/flowprobe.ba.go | 4 +- binapi/geneve/geneve.ba.go | 4 +- binapi/graph/graph.ba.go | 4 +- binapi/gre/gre.ba.go | 4 +- binapi/gso/gso.ba.go | 4 +- binapi/gtpu/gtpu.ba.go | 4 +- binapi/http_static/http_static.ba.go | 4 +- binapi/idpf/idpf.ba.go | 226 ++++++++++++ binapi/idpf/idpf_rpc.ba.go | 41 +++ binapi/igmp/igmp.ba.go | 4 +- binapi/ikev2/ikev2.ba.go | 4 +- binapi/ikev2_types/ikev2_types.ba.go | 4 +- binapi/interface/interface.ba.go | 82 ++++- binapi/interface/interface_rpc.ba.go | 10 + binapi/interface_types/interface_types.ba.go | 4 +- binapi/ioam_cache/ioam_cache.ba.go | 4 +- binapi/ioam_export/ioam_export.ba.go | 4 +- binapi/ioam_vxlan_gpe/ioam_vxlan_gpe.ba.go | 4 +- binapi/ip/ip.ba.go | 6 +- binapi/ip6_nd/ip6_nd.ba.go | 4 +- binapi/ip_neighbor/ip_neighbor.ba.go | 110 +++++- binapi/ip_neighbor/ip_neighbor_rpc.ba.go | 10 + .../ip_session_redirect.ba.go | 4 +- binapi/ip_types/ip_types.ba.go | 4 +- binapi/ipfix_export/ipfix_export.ba.go | 4 +- binapi/ipip/ipip.ba.go | 4 +- binapi/ipsec/ipsec.ba.go | 328 +++++++++++++++++- binapi/ipsec/ipsec_rpc.ba.go | 64 ++++ binapi/ipsec_types/ipsec_types.ba.go | 13 +- binapi/l2/l2.ba.go | 4 +- binapi/l2tp/l2tp.ba.go | 4 +- binapi/l3xc/l3xc.ba.go | 4 +- binapi/lacp/lacp.ba.go | 4 +- binapi/lb/lb.ba.go | 4 +- binapi/lb_types/lb_types.ba.go | 4 +- binapi/lcp/lcp.ba.go | 9 +- binapi/lisp/lisp.ba.go | 4 +- binapi/lisp_gpe/lisp_gpe.ba.go | 4 +- binapi/lisp_types/lisp_types.ba.go | 4 +- binapi/lldp/lldp.ba.go | 4 +- binapi/mactime/mactime.ba.go | 4 +- binapi/map/map.ba.go | 4 +- binapi/mdata/mdata.ba.go | 4 +- binapi/memclnt/memclnt.ba.go | 6 +- binapi/memif/memif.ba.go | 8 +- binapi/mfib_types/mfib_types.ba.go | 4 +- binapi/mpls/mpls.ba.go | 83 ++++- binapi/mpls/mpls_rpc.ba.go | 44 +++ binapi/mss_clamp/mss_clamp.ba.go | 4 +- binapi/nat44_ed/nat44_ed.ba.go | 10 +- binapi/nat44_ei/nat44_ei.ba.go | 4 +- binapi/nat64/nat64.ba.go | 4 +- binapi/nat66/nat66.ba.go | 4 +- binapi/nat_types/nat_types.ba.go | 4 +- binapi/npt66/npt66.ba.go | 129 +++++++ binapi/npt66/npt66_rpc.ba.go | 31 ++ binapi/nsh/nsh.ba.go | 4 +- binapi/nsim/nsim.ba.go | 4 +- binapi/oddbuf/oddbuf.ba.go | 4 +- binapi/one/one.ba.go | 4 +- binapi/p2p_ethernet/p2p_ethernet.ba.go | 4 +- binapi/pci_types/pci_types.ba.go | 4 +- binapi/pg/pg.ba.go | 6 +- binapi/pipe/pipe.ba.go | 4 +- binapi/pnat/pnat.ba.go | 4 +- binapi/policer/policer.ba.go | 4 +- binapi/policer_types/policer_types.ba.go | 4 +- binapi/pot/pot.ba.go | 4 +- binapi/pppoe/pppoe.ba.go | 4 +- binapi/punt/punt.ba.go | 4 +- binapi/qos/qos.ba.go | 4 +- binapi/rd_cp/rd_cp.ba.go | 4 +- binapi/rdma/rdma.ba.go | 4 +- binapi/session/session.ba.go | 4 +- binapi/span/span.ba.go | 4 +- binapi/sr/sr.ba.go | 6 +- binapi/sr_mpls/sr_mpls.ba.go | 4 +- binapi/sr_pt/sr_pt.ba.go | 4 +- binapi/sr_types/sr_types.ba.go | 4 +- binapi/stn/stn.ba.go | 4 +- binapi/svs/svs.ba.go | 4 +- binapi/syslog/syslog.ba.go | 4 +- binapi/tapv2/tapv2.ba.go | 6 +- binapi/tcp/tcp.ba.go | 4 +- binapi/teib/teib.ba.go | 4 +- binapi/tls_openssl/tls_openssl.ba.go | 4 +- binapi/trace/trace.ba.go | 4 +- binapi/tracedump/tracedump.ba.go | 146 +++++++- binapi/tracedump/tracedump_rpc.ba.go | 54 +++ binapi/tracenode/tracenode.ba.go | 122 +++++++ binapi/tracenode/tracenode_rpc.ba.go | 31 ++ binapi/tunnel_types/tunnel_types.ba.go | 4 +- binapi/udp/udp.ba.go | 4 +- binapi/udp_ping/udp_ping.ba.go | 4 +- binapi/urpf/urpf.ba.go | 4 +- binapi/vhost_user/vhost_user.ba.go | 4 +- binapi/virtio/virtio.ba.go | 4 +- binapi/virtio_types/virtio_types.ba.go | 4 +- binapi/vlib/vlib.ba.go | 4 +- binapi/vmxnet3/vmxnet3.ba.go | 4 +- binapi/vpe/vpe.ba.go | 4 +- binapi/vpe_types/vpe_types.ba.go | 4 +- binapi/vrrp/vrrp.ba.go | 4 +- binapi/vxlan/vxlan.ba.go | 10 +- binapi/vxlan_gpe/vxlan_gpe.ba.go | 4 +- .../vxlan_gpe_ioam_export.ba.go | 4 +- binapi/wireguard/wireguard.ba.go | 6 +- 145 files changed, 2299 insertions(+), 294 deletions(-) create mode 100644 binapi/bpf_trace_filter/bpf_trace_filter.ba.go create mode 100644 binapi/bpf_trace_filter/bpf_trace_filter_rpc.ba.go create mode 100644 binapi/idpf/idpf.ba.go create mode 100644 binapi/idpf/idpf_rpc.ba.go create mode 100644 binapi/npt66/npt66.ba.go create mode 100644 binapi/npt66/npt66_rpc.ba.go create mode 100644 binapi/tracenode/tracenode.ba.go create mode 100644 binapi/tracenode/tracenode_rpc.ba.go diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 097ec245..0d47089f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,7 +54,7 @@ jobs: matrix: go: [ '1.20' ] env: - VERSION: v0.8.0 + VERSION: v0.9.0 runs-on: ubuntu-latest steps: - name: "Checkout" diff --git a/Makefile b/Makefile index 07e4a3fc..4cc21160 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ endif # Package cloud repo for VPP. VPP_REPO ?= release # VPP Docker image to use for api generation (gen-binapi-docker) -VPP_IMG ?= ligato/vpp-base:23.06-release +VPP_IMG ?= ligato/vpp-base:23.10-release # Local VPP directory used for binary api generation (gen-binapi-from-code) VPP_DIR ?= # Target directory for generated go api bindings diff --git a/binapi/abf/abf.ba.go b/binapi/abf/abf.ba.go index e87729f7..b93a801e 100644 --- a/binapi/abf/abf.ba.go +++ b/binapi/abf/abf.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/abf.api.json // Package abf contains generated bindings for API file abf.api. diff --git a/binapi/acl/acl.ba.go b/binapi/acl/acl.ba.go index 41d122ae..7ab3bdd8 100644 --- a/binapi/acl/acl.ba.go +++ b/binapi/acl/acl.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/acl.api.json // Package acl contains generated bindings for API file acl.api. diff --git a/binapi/acl_types/acl_types.ba.go b/binapi/acl_types/acl_types.ba.go index 6cd5742e..2c5188df 100644 --- a/binapi/acl_types/acl_types.ba.go +++ b/binapi/acl_types/acl_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/acl_types.api.json // Package acl_types contains generated bindings for API file acl_types.api. diff --git a/binapi/adl/adl.ba.go b/binapi/adl/adl.ba.go index cc5c5ecd..64118b03 100644 --- a/binapi/adl/adl.ba.go +++ b/binapi/adl/adl.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/adl.api.json // Package adl contains generated bindings for API file adl.api. @@ -24,7 +24,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "adl" - APIVersion = "0.0.1" + APIVersion = "1.0.1" VersionCrc = 0xb752b7a2 ) diff --git a/binapi/af_packet/af_packet.ba.go b/binapi/af_packet/af_packet.ba.go index 109ce02d..d372ac89 100644 --- a/binapi/af_packet/af_packet.ba.go +++ b/binapi/af_packet/af_packet.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/af_packet.api.json // Package af_packet contains generated bindings for API file af_packet.api. @@ -114,6 +114,7 @@ func (x AfPacketMode) String() string { // - host_if_name - interface name // // AfPacketCreate defines message 'af_packet_create'. +// Deprecated: the message will be removed in the future versions type AfPacketCreate struct { HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr bool `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` @@ -158,6 +159,7 @@ func (m *AfPacketCreate) Unmarshal(b []byte) error { // - retval - return value for request // // AfPacketCreateReply defines message 'af_packet_create_reply'. +// Deprecated: the message will be removed in the future versions type AfPacketCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -206,6 +208,7 @@ func (m *AfPacketCreateReply) Unmarshal(b []byte) error { // - num_rx_queues - number of rx queues // // AfPacketCreateV2 defines message 'af_packet_create_v2'. +// Deprecated: the message will be removed in the future versions type AfPacketCreateV2 struct { HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr bool `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` @@ -274,6 +277,7 @@ func (m *AfPacketCreateV2) Unmarshal(b []byte) error { // - retval - return value for request // // AfPacketCreateV2Reply defines message 'af_packet_create_v2_reply'. +// Deprecated: the message will be removed in the future versions type AfPacketCreateV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` diff --git a/binapi/af_xdp/af_xdp.ba.go b/binapi/af_xdp/af_xdp.ba.go index d4895861..9c75c687 100644 --- a/binapi/af_xdp/af_xdp.ba.go +++ b/binapi/af_xdp/af_xdp.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/af_xdp.api.json // Package af_xdp contains generated bindings for API file af_xdp.api. // // Contents: // - 2 enums -// - 6 messages +// - 8 messages package af_xdp import ( @@ -28,7 +28,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "af_xdp" APIVersion = "1.0.0" - VersionCrc = 0x346626ce + VersionCrc = 0xd2949266 ) // AfXdpMode defines enum 'af_xdp_mode'. @@ -115,6 +115,7 @@ func (x AfXdpFlag) String() string { // - prog - eBPF program path (optional) // // AfXdpCreate defines message 'af_xdp_create'. +// Deprecated: the message will be removed in the future versions type AfXdpCreate struct { HostIf string `binapi:"string[64],name=host_if" json:"host_if,omitempty"` Name string `binapi:"string[64],name=name" json:"name,omitempty"` @@ -180,6 +181,7 @@ func (m *AfXdpCreate) Unmarshal(b []byte) error { // - sw_if_index - software index for the new af_xdp interface // // AfXdpCreateReply defines message 'af_xdp_create_reply'. +// Deprecated: the message will be removed in the future versions type AfXdpCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -228,6 +230,7 @@ func (m *AfXdpCreateReply) Unmarshal(b []byte) error { // - namespace - netns of nic (optional) // // AfXdpCreateV2 defines message 'af_xdp_create_v2'. +// Deprecated: the message will be removed in the future versions type AfXdpCreateV2 struct { HostIf string `binapi:"string[64],name=host_if" json:"host_if,omitempty"` Name string `binapi:"string[64],name=name" json:"name,omitempty"` @@ -297,6 +300,7 @@ func (m *AfXdpCreateV2) Unmarshal(b []byte) error { // - sw_if_index - software index for the new af_xdp interface // // AfXdpCreateV2Reply defines message 'af_xdp_create_v2_reply'. +// Deprecated: the message will be removed in the future versions type AfXdpCreateV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -334,8 +338,122 @@ func (m *AfXdpCreateV2Reply) Unmarshal(b []byte) error { } // - client_index - opaque cookie to identify the sender -// - sw_if_index - interface index +// - host_if - Linux netdev interface name +// - name - new af_xdp interface name (optional) +// - rxq_num - number of receive queues. 65535 can be used as special value to request all available queues (optional) +// - rxq_size - receive queue size (optional) +// - txq_size - transmit queue size (optional) +// - mode - operation mode (optional) +// - flags - flags (optional) +// - prog - eBPF program path (optional) +// - netns - netns of nic (optional) +// +// AfXdpCreateV3 defines message 'af_xdp_create_v3'. +type AfXdpCreateV3 struct { + HostIf string `binapi:"string[64],name=host_if" json:"host_if,omitempty"` + Name string `binapi:"string[64],name=name" json:"name,omitempty"` + RxqNum uint16 `binapi:"u16,name=rxq_num,default=1" json:"rxq_num,omitempty"` + RxqSize uint16 `binapi:"u16,name=rxq_size,default=0" json:"rxq_size,omitempty"` + TxqSize uint16 `binapi:"u16,name=txq_size,default=0" json:"txq_size,omitempty"` + Mode AfXdpMode `binapi:"af_xdp_mode,name=mode,default=0" json:"mode,omitempty"` + Flags AfXdpFlag `binapi:"af_xdp_flag,name=flags,default=0" json:"flags,omitempty"` + Prog string `binapi:"string[256],name=prog" json:"prog,omitempty"` + Netns string `binapi:"string[64],name=netns" json:"netns,omitempty"` +} + +func (m *AfXdpCreateV3) Reset() { *m = AfXdpCreateV3{} } +func (*AfXdpCreateV3) GetMessageName() string { return "af_xdp_create_v3" } +func (*AfXdpCreateV3) GetCrcString() string { return "cf4b1827" } +func (*AfXdpCreateV3) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *AfXdpCreateV3) Size() (size int) { + if m == nil { + return 0 + } + size += 64 // m.HostIf + size += 64 // m.Name + size += 2 // m.RxqNum + size += 2 // m.RxqSize + size += 2 // m.TxqSize + size += 4 // m.Mode + size += 1 // m.Flags + size += 256 // m.Prog + size += 64 // m.Netns + return size +} +func (m *AfXdpCreateV3) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeString(m.HostIf, 64) + buf.EncodeString(m.Name, 64) + buf.EncodeUint16(m.RxqNum) + buf.EncodeUint16(m.RxqSize) + buf.EncodeUint16(m.TxqSize) + buf.EncodeUint32(uint32(m.Mode)) + buf.EncodeUint8(uint8(m.Flags)) + buf.EncodeString(m.Prog, 256) + buf.EncodeString(m.Netns, 64) + return buf.Bytes(), nil +} +func (m *AfXdpCreateV3) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.HostIf = buf.DecodeString(64) + m.Name = buf.DecodeString(64) + m.RxqNum = buf.DecodeUint16() + m.RxqSize = buf.DecodeUint16() + m.TxqSize = buf.DecodeUint16() + m.Mode = AfXdpMode(buf.DecodeUint32()) + m.Flags = AfXdpFlag(buf.DecodeUint8()) + m.Prog = buf.DecodeString(256) + m.Netns = buf.DecodeString(64) + return nil +} + +// - context - sender context, to match reply w/ request +// - retval - return value for request +// - sw_if_index - software index for the new af_xdp interface // +// AfXdpCreateV3Reply defines message 'af_xdp_create_v3_reply'. +type AfXdpCreateV3Reply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *AfXdpCreateV3Reply) Reset() { *m = AfXdpCreateV3Reply{} } +func (*AfXdpCreateV3Reply) GetMessageName() string { return "af_xdp_create_v3_reply" } +func (*AfXdpCreateV3Reply) GetCrcString() string { return "5383d31f" } +func (*AfXdpCreateV3Reply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *AfXdpCreateV3Reply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.SwIfIndex + return size +} +func (m *AfXdpCreateV3Reply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *AfXdpCreateV3Reply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + // AfXdpDelete defines message 'af_xdp_delete'. type AfXdpDelete struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -408,6 +526,8 @@ func file_af_xdp_binapi_init() { api.RegisterMessage((*AfXdpCreateReply)(nil), "af_xdp_create_reply_5383d31f") api.RegisterMessage((*AfXdpCreateV2)(nil), "af_xdp_create_v2_e17ec2eb") api.RegisterMessage((*AfXdpCreateV2Reply)(nil), "af_xdp_create_v2_reply_5383d31f") + api.RegisterMessage((*AfXdpCreateV3)(nil), "af_xdp_create_v3_cf4b1827") + api.RegisterMessage((*AfXdpCreateV3Reply)(nil), "af_xdp_create_v3_reply_5383d31f") api.RegisterMessage((*AfXdpDelete)(nil), "af_xdp_delete_f9e6675e") api.RegisterMessage((*AfXdpDeleteReply)(nil), "af_xdp_delete_reply_e8d4e804") } @@ -419,6 +539,8 @@ func AllMessages() []api.Message { (*AfXdpCreateReply)(nil), (*AfXdpCreateV2)(nil), (*AfXdpCreateV2Reply)(nil), + (*AfXdpCreateV3)(nil), + (*AfXdpCreateV3Reply)(nil), (*AfXdpDelete)(nil), (*AfXdpDeleteReply)(nil), } diff --git a/binapi/af_xdp/af_xdp_rpc.ba.go b/binapi/af_xdp/af_xdp_rpc.ba.go index 32ee6342..8c7e8459 100644 --- a/binapi/af_xdp/af_xdp_rpc.ba.go +++ b/binapi/af_xdp/af_xdp_rpc.ba.go @@ -12,6 +12,7 @@ import ( type RPCService interface { AfXdpCreate(ctx context.Context, in *AfXdpCreate) (*AfXdpCreateReply, error) AfXdpCreateV2(ctx context.Context, in *AfXdpCreateV2) (*AfXdpCreateV2Reply, error) + AfXdpCreateV3(ctx context.Context, in *AfXdpCreateV3) (*AfXdpCreateV3Reply, error) AfXdpDelete(ctx context.Context, in *AfXdpDelete) (*AfXdpDeleteReply, error) } @@ -41,6 +42,15 @@ func (c *serviceClient) AfXdpCreateV2(ctx context.Context, in *AfXdpCreateV2) (* return out, api.RetvalToVPPApiError(out.Retval) } +func (c *serviceClient) AfXdpCreateV3(ctx context.Context, in *AfXdpCreateV3) (*AfXdpCreateV3Reply, error) { + out := new(AfXdpCreateV3Reply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) AfXdpDelete(ctx context.Context, in *AfXdpDelete) (*AfXdpDeleteReply, error) { out := new(AfXdpDeleteReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/arp/arp.ba.go b/binapi/arp/arp.ba.go index 80ac6684..6ae29eb6 100644 --- a/binapi/arp/arp.ba.go +++ b/binapi/arp/arp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/arp.api.json // Package arp contains generated bindings for API file arp.api. diff --git a/binapi/arping/arping.ba.go b/binapi/arping/arping.ba.go index b9f9f329..91c1cb35 100644 --- a/binapi/arping/arping.ba.go +++ b/binapi/arping/arping.ba.go @@ -1,17 +1,18 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/arping.api.json // Package arping contains generated bindings for API file arping.api. // // Contents: -// - 2 messages +// - 4 messages package arping import ( api "go.fd.io/govpp/api" + ethernet_types "go.fd.io/govpp/binapi/ethernet_types" interface_types "go.fd.io/govpp/binapi/interface_types" ip_types "go.fd.io/govpp/binapi/ip_types" codec "go.fd.io/govpp/codec" @@ -26,7 +27,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "arping" APIVersion = "1.0.0" - VersionCrc = 0x666f91cc + VersionCrc = 0x8b2c8f39 ) // - client_index - opaque cookie to identify the sender @@ -88,6 +89,102 @@ func (m *Arping) Unmarshal(b []byte) error { return nil } +// /* +// - Address Conflict Detection +// +// ArpingAcd defines message 'arping_acd'. +type ArpingAcd struct { + Address ip_types.Address `binapi:"address,name=address" json:"address,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` + IsGarp bool `binapi:"bool,name=is_garp" json:"is_garp,omitempty"` + Repeat uint32 `binapi:"u32,name=repeat,default=1" json:"repeat,omitempty"` + Interval float64 `binapi:"f64,name=interval,default=1" json:"interval,omitempty"` +} + +func (m *ArpingAcd) Reset() { *m = ArpingAcd{} } +func (*ArpingAcd) GetMessageName() string { return "arping_acd" } +func (*ArpingAcd) GetCrcString() string { return "48817482" } +func (*ArpingAcd) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *ArpingAcd) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.Address.Af + size += 1 * 16 // m.Address.Un + size += 4 // m.SwIfIndex + size += 1 // m.IsGarp + size += 4 // m.Repeat + size += 8 // m.Interval + return size +} +func (m *ArpingAcd) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint8(uint8(m.Address.Af)) + buf.EncodeBytes(m.Address.Un.XXX_UnionData[:], 16) + buf.EncodeUint32(uint32(m.SwIfIndex)) + buf.EncodeBool(m.IsGarp) + buf.EncodeUint32(m.Repeat) + buf.EncodeFloat64(m.Interval) + return buf.Bytes(), nil +} +func (m *ArpingAcd) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Address.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.Address.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + m.IsGarp = buf.DecodeBool() + m.Repeat = buf.DecodeUint32() + m.Interval = buf.DecodeFloat64() + return nil +} + +// ArpingAcdReply defines message 'arping_acd_reply'. +type ArpingAcdReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + ReplyCount uint32 `binapi:"u32,name=reply_count" json:"reply_count,omitempty"` + MacAddress ethernet_types.MacAddress `binapi:"mac_address,name=mac_address" json:"mac_address,omitempty"` +} + +func (m *ArpingAcdReply) Reset() { *m = ArpingAcdReply{} } +func (*ArpingAcdReply) GetMessageName() string { return "arping_acd_reply" } +func (*ArpingAcdReply) GetCrcString() string { return "e08c3b05" } +func (*ArpingAcdReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *ArpingAcdReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.ReplyCount + size += 1 * 6 // m.MacAddress + return size +} +func (m *ArpingAcdReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(m.ReplyCount) + buf.EncodeBytes(m.MacAddress[:], 6) + return buf.Bytes(), nil +} +func (m *ArpingAcdReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.ReplyCount = buf.DecodeUint32() + copy(m.MacAddress[:], buf.DecodeBytes(6)) + return nil +} + // - context - sender context, to match reply w/ request // - retval - return value for request // @reply_count - return value for reply count @@ -132,6 +229,8 @@ func (m *ArpingReply) Unmarshal(b []byte) error { func init() { file_arping_binapi_init() } func file_arping_binapi_init() { api.RegisterMessage((*Arping)(nil), "arping_48817482") + api.RegisterMessage((*ArpingAcd)(nil), "arping_acd_48817482") + api.RegisterMessage((*ArpingAcdReply)(nil), "arping_acd_reply_e08c3b05") api.RegisterMessage((*ArpingReply)(nil), "arping_reply_bb9d1cbd") } @@ -139,6 +238,8 @@ func file_arping_binapi_init() { func AllMessages() []api.Message { return []api.Message{ (*Arping)(nil), + (*ArpingAcd)(nil), + (*ArpingAcdReply)(nil), (*ArpingReply)(nil), } } diff --git a/binapi/arping/arping_rpc.ba.go b/binapi/arping/arping_rpc.ba.go index feda4c1b..aa6d5ac3 100644 --- a/binapi/arping/arping_rpc.ba.go +++ b/binapi/arping/arping_rpc.ba.go @@ -11,6 +11,7 @@ import ( // RPCService defines RPC service arping. type RPCService interface { Arping(ctx context.Context, in *Arping) (*ArpingReply, error) + ArpingAcd(ctx context.Context, in *ArpingAcd) (*ArpingAcdReply, error) } type serviceClient struct { @@ -29,3 +30,12 @@ func (c *serviceClient) Arping(ctx context.Context, in *Arping) (*ArpingReply, e } return out, api.RetvalToVPPApiError(out.Retval) } + +func (c *serviceClient) ArpingAcd(ctx context.Context, in *ArpingAcd) (*ArpingAcdReply, error) { + out := new(ArpingAcdReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} diff --git a/binapi/avf/avf.ba.go b/binapi/avf/avf.ba.go index eaf70804..6c1d45d7 100644 --- a/binapi/avf/avf.ba.go +++ b/binapi/avf/avf.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/avf.api.json // Package avf contains generated bindings for API file avf.api. diff --git a/binapi/bfd/bfd.ba.go b/binapi/bfd/bfd.ba.go index bd516139..e7eac99e 100644 --- a/binapi/bfd/bfd.ba.go +++ b/binapi/bfd/bfd.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/bfd.api.json // Package bfd contains generated bindings for API file bfd.api. diff --git a/binapi/bier/bier.ba.go b/binapi/bier/bier.ba.go index 19a4b0a9..64dc28c6 100644 --- a/binapi/bier/bier.ba.go +++ b/binapi/bier/bier.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/bier.api.json // Package bier contains generated bindings for API file bier.api. diff --git a/binapi/bond/bond.ba.go b/binapi/bond/bond.ba.go index 32ba5886..0d9b3eae 100644 --- a/binapi/bond/bond.ba.go +++ b/binapi/bond/bond.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/bond.api.json // Package bond contains generated bindings for API file bond.api. diff --git a/binapi/bpf_trace_filter/bpf_trace_filter.ba.go b/binapi/bpf_trace_filter/bpf_trace_filter.ba.go new file mode 100644 index 00000000..f8f09b55 --- /dev/null +++ b/binapi/bpf_trace_filter/bpf_trace_filter.ba.go @@ -0,0 +1,128 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.9.0 +// VPP: 23.10-release +// source: plugins/bpf_trace_filter.api.json + +// Package bpf_trace_filter contains generated bindings for API file bpf_trace_filter.api. +// +// Contents: +// - 2 messages +package bpf_trace_filter + +import ( + api "go.fd.io/govpp/api" + codec "go.fd.io/govpp/codec" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the GoVPP api package it is being compiled against. +// A compilation error at this line likely means your copy of the +// GoVPP api package needs to be updated. +const _ = api.GoVppAPIPackageIsVersion2 + +const ( + APIFile = "bpf_trace_filter" + APIVersion = "0.1.0" + VersionCrc = 0x79160184 +) + +// /* +// - bpf_trace_filter.api - BPF Trace filter API +// * +// - Copyright (c) 2023 Cisco and/or its affiliates +// - Licensed under the Apache License, Version 2.0 (the "License"); +// - you may not use this file except in compliance with the License. +// - You may obtain a copy of the License at: +// * +// - http://www.apache.org/licenses/LICENSE-2.0 +// * +// - Unless required by applicable law or agreed to in writing, software +// - distributed under the License is distributed on an "AS IS" BASIS, +// - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// - See the License for the specific language governing permissions and +// - limitations under the License. +// +// BpfTraceFilterSet defines message 'bpf_trace_filter_set'. +type BpfTraceFilterSet struct { + IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"` + Filter string `binapi:"string[],name=filter" json:"filter,omitempty"` +} + +func (m *BpfTraceFilterSet) Reset() { *m = BpfTraceFilterSet{} } +func (*BpfTraceFilterSet) GetMessageName() string { return "bpf_trace_filter_set" } +func (*BpfTraceFilterSet) GetCrcString() string { return "3171346e" } +func (*BpfTraceFilterSet) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *BpfTraceFilterSet) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.IsAdd + size += 4 + len(m.Filter) // m.Filter + return size +} +func (m *BpfTraceFilterSet) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBool(m.IsAdd) + buf.EncodeString(m.Filter, 0) + return buf.Bytes(), nil +} +func (m *BpfTraceFilterSet) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.IsAdd = buf.DecodeBool() + m.Filter = buf.DecodeString(0) + return nil +} + +// BpfTraceFilterSetReply defines message 'bpf_trace_filter_set_reply'. +type BpfTraceFilterSetReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *BpfTraceFilterSetReply) Reset() { *m = BpfTraceFilterSetReply{} } +func (*BpfTraceFilterSetReply) GetMessageName() string { return "bpf_trace_filter_set_reply" } +func (*BpfTraceFilterSetReply) GetCrcString() string { return "e8d4e804" } +func (*BpfTraceFilterSetReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *BpfTraceFilterSetReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *BpfTraceFilterSetReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *BpfTraceFilterSetReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + +func init() { file_bpf_trace_filter_binapi_init() } +func file_bpf_trace_filter_binapi_init() { + api.RegisterMessage((*BpfTraceFilterSet)(nil), "bpf_trace_filter_set_3171346e") + api.RegisterMessage((*BpfTraceFilterSetReply)(nil), "bpf_trace_filter_set_reply_e8d4e804") +} + +// Messages returns list of all messages in this module. +func AllMessages() []api.Message { + return []api.Message{ + (*BpfTraceFilterSet)(nil), + (*BpfTraceFilterSetReply)(nil), + } +} diff --git a/binapi/bpf_trace_filter/bpf_trace_filter_rpc.ba.go b/binapi/bpf_trace_filter/bpf_trace_filter_rpc.ba.go new file mode 100644 index 00000000..8d68e5b3 --- /dev/null +++ b/binapi/bpf_trace_filter/bpf_trace_filter_rpc.ba.go @@ -0,0 +1,31 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. + +package bpf_trace_filter + +import ( + "context" + + api "go.fd.io/govpp/api" +) + +// RPCService defines RPC service bpf_trace_filter. +type RPCService interface { + BpfTraceFilterSet(ctx context.Context, in *BpfTraceFilterSet) (*BpfTraceFilterSetReply, error) +} + +type serviceClient struct { + conn api.Connection +} + +func NewServiceClient(conn api.Connection) RPCService { + return &serviceClient{conn} +} + +func (c *serviceClient) BpfTraceFilterSet(ctx context.Context, in *BpfTraceFilterSet) (*BpfTraceFilterSetReply, error) { + out := new(BpfTraceFilterSetReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} diff --git a/binapi/builtinurl/builtinurl.ba.go b/binapi/builtinurl/builtinurl.ba.go index 0e677fcd..b56cbece 100644 --- a/binapi/builtinurl/builtinurl.ba.go +++ b/binapi/builtinurl/builtinurl.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/builtinurl.api.json // Package builtinurl contains generated bindings for API file builtinurl.api. diff --git a/binapi/cdp/cdp.ba.go b/binapi/cdp/cdp.ba.go index 0b0fd858..3a5bfb8d 100644 --- a/binapi/cdp/cdp.ba.go +++ b/binapi/cdp/cdp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/cdp.api.json // Package cdp contains generated bindings for API file cdp.api. diff --git a/binapi/classify/classify.ba.go b/binapi/classify/classify.ba.go index a545daba..74163c5d 100644 --- a/binapi/classify/classify.ba.go +++ b/binapi/classify/classify.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/classify.api.json // Package classify contains generated bindings for API file classify.api. diff --git a/binapi/cnat/cnat.ba.go b/binapi/cnat/cnat.ba.go index 1166b97a..a3d4beb8 100644 --- a/binapi/cnat/cnat.ba.go +++ b/binapi/cnat/cnat.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/cnat.api.json // Package cnat contains generated bindings for API file cnat.api. @@ -31,7 +31,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "cnat" APIVersion = "0.2.0" - VersionCrc = 0xfd05573b + VersionCrc = 0xf00366a9 ) // CnatEndpointTupleFlags defines enum 'cnat_endpoint_tuple_flags'. @@ -141,6 +141,7 @@ const ( CNAT_POLICY_INCLUDE_V4 CnatSnatPolicyTable = 0 CNAT_POLICY_INCLUDE_V6 CnatSnatPolicyTable = 1 CNAT_POLICY_POD CnatSnatPolicyTable = 2 + CNAT_POLICY_HOST CnatSnatPolicyTable = 3 ) var ( @@ -148,11 +149,13 @@ var ( 0: "CNAT_POLICY_INCLUDE_V4", 1: "CNAT_POLICY_INCLUDE_V6", 2: "CNAT_POLICY_POD", + 3: "CNAT_POLICY_HOST", } CnatSnatPolicyTable_value = map[string]uint8{ "CNAT_POLICY_INCLUDE_V4": 0, "CNAT_POLICY_INCLUDE_V6": 1, "CNAT_POLICY_POD": 2, + "CNAT_POLICY_HOST": 3, } ) @@ -168,15 +171,18 @@ func (x CnatSnatPolicyTable) String() string { type CnatTranslationFlags uint8 const ( - CNAT_TRANSLATION_ALLOC_PORT CnatTranslationFlags = 1 + CNAT_TRANSLATION_ALLOC_PORT CnatTranslationFlags = 1 + CNAT_TRANSLATION_NO_RETURN_SESSION CnatTranslationFlags = 4 ) var ( CnatTranslationFlags_name = map[uint8]string{ 1: "CNAT_TRANSLATION_ALLOC_PORT", + 4: "CNAT_TRANSLATION_NO_RETURN_SESSION", } CnatTranslationFlags_value = map[string]uint8{ - "CNAT_TRANSLATION_ALLOC_PORT": 1, + "CNAT_TRANSLATION_ALLOC_PORT": 1, + "CNAT_TRANSLATION_NO_RETURN_SESSION": 4, } ) @@ -721,7 +727,7 @@ type CnatSnatPolicyAddDelIf struct { func (m *CnatSnatPolicyAddDelIf) Reset() { *m = CnatSnatPolicyAddDelIf{} } func (*CnatSnatPolicyAddDelIf) GetMessageName() string { return "cnat_snat_policy_add_del_if" } -func (*CnatSnatPolicyAddDelIf) GetCrcString() string { return "6828deca" } +func (*CnatSnatPolicyAddDelIf) GetCrcString() string { return "4ebb8d02" } func (*CnatSnatPolicyAddDelIf) GetMessageType() api.MessageType { return api.RequestMessage } @@ -1160,7 +1166,7 @@ func file_cnat_binapi_init() { api.RegisterMessage((*CnatSetSnatPolicyReply)(nil), "cnat_set_snat_policy_reply_e8d4e804") api.RegisterMessage((*CnatSnatPolicyAddDelExcludePfx)(nil), "cnat_snat_policy_add_del_exclude_pfx_e26dd79a") api.RegisterMessage((*CnatSnatPolicyAddDelExcludePfxReply)(nil), "cnat_snat_policy_add_del_exclude_pfx_reply_e8d4e804") - api.RegisterMessage((*CnatSnatPolicyAddDelIf)(nil), "cnat_snat_policy_add_del_if_6828deca") + api.RegisterMessage((*CnatSnatPolicyAddDelIf)(nil), "cnat_snat_policy_add_del_if_4ebb8d02") api.RegisterMessage((*CnatSnatPolicyAddDelIfReply)(nil), "cnat_snat_policy_add_del_if_reply_e8d4e804") api.RegisterMessage((*CnatTranslationDel)(nil), "cnat_translation_del_3a91bde5") api.RegisterMessage((*CnatTranslationDelReply)(nil), "cnat_translation_del_reply_e8d4e804") diff --git a/binapi/crypto/crypto.ba.go b/binapi/crypto/crypto.ba.go index cf8d4f41..f43a416f 100644 --- a/binapi/crypto/crypto.ba.go +++ b/binapi/crypto/crypto.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/crypto.api.json // Package crypto contains generated bindings for API file crypto.api. // // Contents: // - 2 enums -// - 4 messages +// - 6 messages package crypto import ( @@ -27,7 +27,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "crypto" APIVersion = "1.0.1" - VersionCrc = 0x22355ec6 + VersionCrc = 0x2a68080c ) // CryptoDispatchMode defines enum 'crypto_dispatch_mode'. @@ -87,10 +87,13 @@ func (x CryptoOpClassType) String() string { return "CryptoOpClassType(" + strconv.Itoa(int(x)) + ")" } -// crypto: use polling or interrupt dispatch -// - mode - dispatch mode +// crypto: Use polling or interrupt dispatch. +// +// Always unset the adaptive flag (that is why it is deprecated). +// - mode - dispatch mode // // CryptoSetAsyncDispatch defines message 'crypto_set_async_dispatch'. +// Deprecated: the message will be removed in the future versions type CryptoSetAsyncDispatch struct { Mode CryptoDispatchMode `binapi:"crypto_dispatch_mode,name=mode" json:"mode,omitempty"` } @@ -124,6 +127,7 @@ func (m *CryptoSetAsyncDispatch) Unmarshal(b []byte) error { } // CryptoSetAsyncDispatchReply defines message 'crypto_set_async_dispatch_reply'. +// Deprecated: the message will be removed in the future versions type CryptoSetAsyncDispatchReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -156,6 +160,84 @@ func (m *CryptoSetAsyncDispatchReply) Unmarshal(b []byte) error { return nil } +// crypto: Change the way crypto operations are dispatched. +// +// Use adaptive (or not) mode, starting in polling or interrupt state. +// - mode - dispatch initial state +// - adaptive - whether on not the state shall change depending on load +// +// CryptoSetAsyncDispatchV2 defines message 'crypto_set_async_dispatch_v2'. +type CryptoSetAsyncDispatchV2 struct { + Mode CryptoDispatchMode `binapi:"crypto_dispatch_mode,name=mode" json:"mode,omitempty"` + Adaptive bool `binapi:"bool,name=adaptive" json:"adaptive,omitempty"` +} + +func (m *CryptoSetAsyncDispatchV2) Reset() { *m = CryptoSetAsyncDispatchV2{} } +func (*CryptoSetAsyncDispatchV2) GetMessageName() string { return "crypto_set_async_dispatch_v2" } +func (*CryptoSetAsyncDispatchV2) GetCrcString() string { return "667d2d54" } +func (*CryptoSetAsyncDispatchV2) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *CryptoSetAsyncDispatchV2) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.Mode + size += 1 // m.Adaptive + return size +} +func (m *CryptoSetAsyncDispatchV2) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint8(uint8(m.Mode)) + buf.EncodeBool(m.Adaptive) + return buf.Bytes(), nil +} +func (m *CryptoSetAsyncDispatchV2) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Mode = CryptoDispatchMode(buf.DecodeUint8()) + m.Adaptive = buf.DecodeBool() + return nil +} + +// CryptoSetAsyncDispatchV2Reply defines message 'crypto_set_async_dispatch_v2_reply'. +type CryptoSetAsyncDispatchV2Reply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *CryptoSetAsyncDispatchV2Reply) Reset() { *m = CryptoSetAsyncDispatchV2Reply{} } +func (*CryptoSetAsyncDispatchV2Reply) GetMessageName() string { + return "crypto_set_async_dispatch_v2_reply" +} +func (*CryptoSetAsyncDispatchV2Reply) GetCrcString() string { return "e8d4e804" } +func (*CryptoSetAsyncDispatchV2Reply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *CryptoSetAsyncDispatchV2Reply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *CryptoSetAsyncDispatchV2Reply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *CryptoSetAsyncDispatchV2Reply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // crypto: set crypto handler // - alg_name - Name of the algorithm to add // - engine - Name of the engine to add @@ -244,6 +326,8 @@ func init() { file_crypto_binapi_init() } func file_crypto_binapi_init() { api.RegisterMessage((*CryptoSetAsyncDispatch)(nil), "crypto_set_async_dispatch_5ca4adc0") api.RegisterMessage((*CryptoSetAsyncDispatchReply)(nil), "crypto_set_async_dispatch_reply_e8d4e804") + api.RegisterMessage((*CryptoSetAsyncDispatchV2)(nil), "crypto_set_async_dispatch_v2_667d2d54") + api.RegisterMessage((*CryptoSetAsyncDispatchV2Reply)(nil), "crypto_set_async_dispatch_v2_reply_e8d4e804") api.RegisterMessage((*CryptoSetHandler)(nil), "crypto_set_handler_ce9ad00d") api.RegisterMessage((*CryptoSetHandlerReply)(nil), "crypto_set_handler_reply_e8d4e804") } @@ -253,6 +337,8 @@ func AllMessages() []api.Message { return []api.Message{ (*CryptoSetAsyncDispatch)(nil), (*CryptoSetAsyncDispatchReply)(nil), + (*CryptoSetAsyncDispatchV2)(nil), + (*CryptoSetAsyncDispatchV2Reply)(nil), (*CryptoSetHandler)(nil), (*CryptoSetHandlerReply)(nil), } diff --git a/binapi/crypto/crypto_rpc.ba.go b/binapi/crypto/crypto_rpc.ba.go index 471f49da..48be9c7d 100644 --- a/binapi/crypto/crypto_rpc.ba.go +++ b/binapi/crypto/crypto_rpc.ba.go @@ -11,6 +11,7 @@ import ( // RPCService defines RPC service crypto. type RPCService interface { CryptoSetAsyncDispatch(ctx context.Context, in *CryptoSetAsyncDispatch) (*CryptoSetAsyncDispatchReply, error) + CryptoSetAsyncDispatchV2(ctx context.Context, in *CryptoSetAsyncDispatchV2) (*CryptoSetAsyncDispatchV2Reply, error) CryptoSetHandler(ctx context.Context, in *CryptoSetHandler) (*CryptoSetHandlerReply, error) } @@ -31,6 +32,15 @@ func (c *serviceClient) CryptoSetAsyncDispatch(ctx context.Context, in *CryptoSe return out, api.RetvalToVPPApiError(out.Retval) } +func (c *serviceClient) CryptoSetAsyncDispatchV2(ctx context.Context, in *CryptoSetAsyncDispatchV2) (*CryptoSetAsyncDispatchV2Reply, error) { + out := new(CryptoSetAsyncDispatchV2Reply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) CryptoSetHandler(ctx context.Context, in *CryptoSetHandler) (*CryptoSetHandlerReply, error) { out := new(CryptoSetHandlerReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/crypto_sw_scheduler/crypto_sw_scheduler.ba.go b/binapi/crypto_sw_scheduler/crypto_sw_scheduler.ba.go index 6e9d1c37..8e7975ff 100644 --- a/binapi/crypto_sw_scheduler/crypto_sw_scheduler.ba.go +++ b/binapi/crypto_sw_scheduler/crypto_sw_scheduler.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/crypto_sw_scheduler.api.json // Package crypto_sw_scheduler contains generated bindings for API file crypto_sw_scheduler.api. @@ -23,7 +23,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "crypto_sw_scheduler" - APIVersion = "0.1.0" + APIVersion = "1.1.0" VersionCrc = 0xf4b02951 ) diff --git a/binapi/ct6/ct6.ba.go b/binapi/ct6/ct6.ba.go index e66decf7..25113773 100644 --- a/binapi/ct6/ct6.ba.go +++ b/binapi/ct6/ct6.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ct6.api.json // Package ct6 contains generated bindings for API file ct6.api. diff --git a/binapi/det44/det44.ba.go b/binapi/det44/det44.ba.go index fdaacc64..fd5de05a 100644 --- a/binapi/det44/det44.ba.go +++ b/binapi/det44/det44.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/det44.api.json // Package det44 contains generated bindings for API file det44.api. @@ -465,7 +465,6 @@ func (m *Det44GetTimeoutsReply) Unmarshal(b []byte) error { // - sw_if_index - software index of the interface // // Det44InterfaceAddDelFeature defines message 'det44_interface_add_del_feature'. -// InProgress: the message form may change in the future versions type Det44InterfaceAddDelFeature struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` IsInside bool `binapi:"bool,name=is_inside" json:"is_inside,omitempty"` @@ -507,7 +506,6 @@ func (m *Det44InterfaceAddDelFeature) Unmarshal(b []byte) error { } // Det44InterfaceAddDelFeatureReply defines message 'det44_interface_add_del_feature_reply'. -// InProgress: the message form may change in the future versions type Det44InterfaceAddDelFeatureReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -547,7 +545,6 @@ func (m *Det44InterfaceAddDelFeatureReply) Unmarshal(b []byte) error { // - sw_if_index - software index of the interface // // Det44InterfaceDetails defines message 'det44_interface_details'. -// InProgress: the message form may change in the future versions type Det44InterfaceDetails struct { IsInside bool `binapi:"bool,name=is_inside" json:"is_inside,omitempty"` IsOutside bool `binapi:"bool,name=is_outside" json:"is_outside,omitempty"` @@ -590,7 +587,6 @@ func (m *Det44InterfaceDetails) Unmarshal(b []byte) error { // Dump interfaces with DET44 feature // Det44InterfaceDump defines message 'det44_interface_dump'. -// InProgress: the message form may change in the future versions type Det44InterfaceDump struct{} func (m *Det44InterfaceDump) Reset() { *m = Det44InterfaceDump{} } @@ -717,7 +713,6 @@ func (m *Det44MapDump) Unmarshal(b []byte) error { // - enable - true if enable, false if disable // // Det44PluginEnableDisable defines message 'det44_plugin_enable_disable'. -// InProgress: the message form may change in the future versions type Det44PluginEnableDisable struct { InsideVrf uint32 `binapi:"u32,name=inside_vrf" json:"inside_vrf,omitempty"` OutsideVrf uint32 `binapi:"u32,name=outside_vrf" json:"outside_vrf,omitempty"` @@ -759,7 +754,6 @@ func (m *Det44PluginEnableDisable) Unmarshal(b []byte) error { } // Det44PluginEnableDisableReply defines message 'det44_plugin_enable_disable_reply'. -// InProgress: the message form may change in the future versions type Det44PluginEnableDisableReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } diff --git a/binapi/dhcp/dhcp.ba.go b/binapi/dhcp/dhcp.ba.go index 84c38882..53f8692f 100644 --- a/binapi/dhcp/dhcp.ba.go +++ b/binapi/dhcp/dhcp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/dhcp.api.json // Package dhcp contains generated bindings for API file dhcp.api. diff --git a/binapi/dhcp6_ia_na_client_cp/dhcp6_ia_na_client_cp.ba.go b/binapi/dhcp6_ia_na_client_cp/dhcp6_ia_na_client_cp.ba.go index 3099288a..c086b2f9 100644 --- a/binapi/dhcp6_ia_na_client_cp/dhcp6_ia_na_client_cp.ba.go +++ b/binapi/dhcp6_ia_na_client_cp/dhcp6_ia_na_client_cp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/dhcp6_ia_na_client_cp.api.json // Package dhcp6_ia_na_client_cp contains generated bindings for API file dhcp6_ia_na_client_cp.api. diff --git a/binapi/dhcp6_pd_client_cp/dhcp6_pd_client_cp.ba.go b/binapi/dhcp6_pd_client_cp/dhcp6_pd_client_cp.ba.go index 8d3572c4..4bb84805 100644 --- a/binapi/dhcp6_pd_client_cp/dhcp6_pd_client_cp.ba.go +++ b/binapi/dhcp6_pd_client_cp/dhcp6_pd_client_cp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/dhcp6_pd_client_cp.api.json // Package dhcp6_pd_client_cp contains generated bindings for API file dhcp6_pd_client_cp.api. diff --git a/binapi/dns/dns.ba.go b/binapi/dns/dns.ba.go index 2d237b87..515a7afd 100644 --- a/binapi/dns/dns.ba.go +++ b/binapi/dns/dns.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/dns.api.json // Package dns contains generated bindings for API file dns.api. diff --git a/binapi/dslite/dslite.ba.go b/binapi/dslite/dslite.ba.go index 072c6fb2..02e3441d 100644 --- a/binapi/dslite/dslite.ba.go +++ b/binapi/dslite/dslite.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/dslite.api.json // Package dslite contains generated bindings for API file dslite.api. diff --git a/binapi/ethernet_types/ethernet_types.ba.go b/binapi/ethernet_types/ethernet_types.ba.go index 4dca95ea..f513c5c8 100644 --- a/binapi/ethernet_types/ethernet_types.ba.go +++ b/binapi/ethernet_types/ethernet_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ethernet_types.api.json // Package ethernet_types contains generated bindings for API file ethernet_types.api. diff --git a/binapi/feature/feature.ba.go b/binapi/feature/feature.ba.go index 462053c7..fc80e605 100644 --- a/binapi/feature/feature.ba.go +++ b/binapi/feature/feature.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/feature.api.json // Package feature contains generated bindings for API file feature.api. diff --git a/binapi/fib/fib.ba.go b/binapi/fib/fib.ba.go index b99a528a..f70bd5b7 100644 --- a/binapi/fib/fib.ba.go +++ b/binapi/fib/fib.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/fib.api.json // Package fib contains generated bindings for API file fib.api. diff --git a/binapi/fib_types/fib_types.ba.go b/binapi/fib_types/fib_types.ba.go index 5900976d..478cb9a5 100644 --- a/binapi/fib_types/fib_types.ba.go +++ b/binapi/fib_types/fib_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/fib_types.api.json // Package fib_types contains generated bindings for API file fib_types.api. diff --git a/binapi/flow/flow.ba.go b/binapi/flow/flow.ba.go index 134ab9b8..5b143329 100644 --- a/binapi/flow/flow.ba.go +++ b/binapi/flow/flow.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/flow.api.json // Package flow contains generated bindings for API file flow.api. @@ -27,7 +27,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "flow" - APIVersion = "0.0.3" + APIVersion = "1.0.3" VersionCrc = 0xe17512 ) diff --git a/binapi/flow_types/flow_types.ba.go b/binapi/flow_types/flow_types.ba.go index d233c600..6c9bfc69 100644 --- a/binapi/flow_types/flow_types.ba.go +++ b/binapi/flow_types/flow_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/flow_types.api.json // Package flow_types contains generated bindings for API file flow_types.api. diff --git a/binapi/flowprobe/flowprobe.ba.go b/binapi/flowprobe/flowprobe.ba.go index 243abc15..6f2fa42a 100644 --- a/binapi/flowprobe/flowprobe.ba.go +++ b/binapi/flowprobe/flowprobe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/flowprobe.api.json // Package flowprobe contains generated bindings for API file flowprobe.api. diff --git a/binapi/geneve/geneve.ba.go b/binapi/geneve/geneve.ba.go index 27e8d8d9..b9b4b155 100644 --- a/binapi/geneve/geneve.ba.go +++ b/binapi/geneve/geneve.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/geneve.api.json // Package geneve contains generated bindings for API file geneve.api. diff --git a/binapi/graph/graph.ba.go b/binapi/graph/graph.ba.go index 73d4d645..04ab5210 100644 --- a/binapi/graph/graph.ba.go +++ b/binapi/graph/graph.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/graph.api.json // Package graph contains generated bindings for API file graph.api. diff --git a/binapi/gre/gre.ba.go b/binapi/gre/gre.ba.go index 8737fd7c..a7e548aa 100644 --- a/binapi/gre/gre.ba.go +++ b/binapi/gre/gre.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/gre.api.json // Package gre contains generated bindings for API file gre.api. diff --git a/binapi/gso/gso.ba.go b/binapi/gso/gso.ba.go index ccae0514..83bc2830 100644 --- a/binapi/gso/gso.ba.go +++ b/binapi/gso/gso.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/gso.api.json // Package gso contains generated bindings for API file gso.api. diff --git a/binapi/gtpu/gtpu.ba.go b/binapi/gtpu/gtpu.ba.go index 0b20bd64..a489d5e3 100644 --- a/binapi/gtpu/gtpu.ba.go +++ b/binapi/gtpu/gtpu.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/gtpu.api.json // Package gtpu contains generated bindings for API file gtpu.api. diff --git a/binapi/http_static/http_static.ba.go b/binapi/http_static/http_static.ba.go index 159d5f2f..455d7262 100644 --- a/binapi/http_static/http_static.ba.go +++ b/binapi/http_static/http_static.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/http_static.api.json // Package http_static contains generated bindings for API file http_static.api. diff --git a/binapi/idpf/idpf.ba.go b/binapi/idpf/idpf.ba.go new file mode 100644 index 00000000..0147bc4a --- /dev/null +++ b/binapi/idpf/idpf.ba.go @@ -0,0 +1,226 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.9.0 +// VPP: 23.10-release +// source: plugins/idpf.api.json + +// Package idpf contains generated bindings for API file idpf.api. +// +// Contents: +// - 4 messages +package idpf + +import ( + api "go.fd.io/govpp/api" + interface_types "go.fd.io/govpp/binapi/interface_types" + codec "go.fd.io/govpp/codec" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the GoVPP api package it is being compiled against. +// A compilation error at this line likely means your copy of the +// GoVPP api package needs to be updated. +const _ = api.GoVppAPIPackageIsVersion2 + +const ( + APIFile = "idpf" + APIVersion = "1.0.0" + VersionCrc = 0x48384ea8 +) + +// - client_index - opaque cookie to identify the sender +// - pci_addr - pci address as unsigned 32bit integer: +// 0-15 domain, 16-23 bus, 24-28 slot, 29-31 function +// ddddddddddddddddbbbbbbbbsssssfff +// - rxq_num - number of receive queues +// - rxq_size - receive queue size +// - txq_size - transmit queue size +// +// IdpfCreate defines message 'idpf_create'. +type IdpfCreate struct { + PciAddr uint32 `binapi:"u32,name=pci_addr" json:"pci_addr,omitempty"` + RxqSingle uint16 `binapi:"u16,name=rxq_single" json:"rxq_single,omitempty"` + TxqSingle uint16 `binapi:"u16,name=txq_single" json:"txq_single,omitempty"` + RxqNum uint16 `binapi:"u16,name=rxq_num" json:"rxq_num,omitempty"` + TxqNum uint16 `binapi:"u16,name=txq_num" json:"txq_num,omitempty"` + RxqSize uint16 `binapi:"u16,name=rxq_size" json:"rxq_size,omitempty"` + TxqSize uint16 `binapi:"u16,name=txq_size" json:"txq_size,omitempty"` + ReqVportNb uint16 `binapi:"u16,name=req_vport_nb" json:"req_vport_nb,omitempty"` +} + +func (m *IdpfCreate) Reset() { *m = IdpfCreate{} } +func (*IdpfCreate) GetMessageName() string { return "idpf_create" } +func (*IdpfCreate) GetCrcString() string { return "2ba86d91" } +func (*IdpfCreate) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IdpfCreate) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.PciAddr + size += 2 // m.RxqSingle + size += 2 // m.TxqSingle + size += 2 // m.RxqNum + size += 2 // m.TxqNum + size += 2 // m.RxqSize + size += 2 // m.TxqSize + size += 2 // m.ReqVportNb + return size +} +func (m *IdpfCreate) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.PciAddr) + buf.EncodeUint16(m.RxqSingle) + buf.EncodeUint16(m.TxqSingle) + buf.EncodeUint16(m.RxqNum) + buf.EncodeUint16(m.TxqNum) + buf.EncodeUint16(m.RxqSize) + buf.EncodeUint16(m.TxqSize) + buf.EncodeUint16(m.ReqVportNb) + return buf.Bytes(), nil +} +func (m *IdpfCreate) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.PciAddr = buf.DecodeUint32() + m.RxqSingle = buf.DecodeUint16() + m.TxqSingle = buf.DecodeUint16() + m.RxqNum = buf.DecodeUint16() + m.TxqNum = buf.DecodeUint16() + m.RxqSize = buf.DecodeUint16() + m.TxqSize = buf.DecodeUint16() + m.ReqVportNb = buf.DecodeUint16() + return nil +} + +// - context - sender context, to match reply w/ request +// - retval - return value for request +// - sw_if_index - software index for the new idpf interface +// +// IdpfCreateReply defines message 'idpf_create_reply'. +type IdpfCreateReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *IdpfCreateReply) Reset() { *m = IdpfCreateReply{} } +func (*IdpfCreateReply) GetMessageName() string { return "idpf_create_reply" } +func (*IdpfCreateReply) GetCrcString() string { return "5383d31f" } +func (*IdpfCreateReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IdpfCreateReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.SwIfIndex + return size +} +func (m *IdpfCreateReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *IdpfCreateReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + +// - client_index - opaque cookie to identify the sender +// - sw_if_index - interface index +// +// IdpfDelete defines message 'idpf_delete'. +type IdpfDelete struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *IdpfDelete) Reset() { *m = IdpfDelete{} } +func (*IdpfDelete) GetMessageName() string { return "idpf_delete" } +func (*IdpfDelete) GetCrcString() string { return "f9e6675e" } +func (*IdpfDelete) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IdpfDelete) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + return size +} +func (m *IdpfDelete) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *IdpfDelete) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + +// IdpfDeleteReply defines message 'idpf_delete_reply'. +type IdpfDeleteReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *IdpfDeleteReply) Reset() { *m = IdpfDeleteReply{} } +func (*IdpfDeleteReply) GetMessageName() string { return "idpf_delete_reply" } +func (*IdpfDeleteReply) GetCrcString() string { return "e8d4e804" } +func (*IdpfDeleteReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IdpfDeleteReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *IdpfDeleteReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *IdpfDeleteReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + +func init() { file_idpf_binapi_init() } +func file_idpf_binapi_init() { + api.RegisterMessage((*IdpfCreate)(nil), "idpf_create_2ba86d91") + api.RegisterMessage((*IdpfCreateReply)(nil), "idpf_create_reply_5383d31f") + api.RegisterMessage((*IdpfDelete)(nil), "idpf_delete_f9e6675e") + api.RegisterMessage((*IdpfDeleteReply)(nil), "idpf_delete_reply_e8d4e804") +} + +// Messages returns list of all messages in this module. +func AllMessages() []api.Message { + return []api.Message{ + (*IdpfCreate)(nil), + (*IdpfCreateReply)(nil), + (*IdpfDelete)(nil), + (*IdpfDeleteReply)(nil), + } +} diff --git a/binapi/idpf/idpf_rpc.ba.go b/binapi/idpf/idpf_rpc.ba.go new file mode 100644 index 00000000..7fb14c87 --- /dev/null +++ b/binapi/idpf/idpf_rpc.ba.go @@ -0,0 +1,41 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. + +package idpf + +import ( + "context" + + api "go.fd.io/govpp/api" +) + +// RPCService defines RPC service idpf. +type RPCService interface { + IdpfCreate(ctx context.Context, in *IdpfCreate) (*IdpfCreateReply, error) + IdpfDelete(ctx context.Context, in *IdpfDelete) (*IdpfDeleteReply, error) +} + +type serviceClient struct { + conn api.Connection +} + +func NewServiceClient(conn api.Connection) RPCService { + return &serviceClient{conn} +} + +func (c *serviceClient) IdpfCreate(ctx context.Context, in *IdpfCreate) (*IdpfCreateReply, error) { + out := new(IdpfCreateReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + +func (c *serviceClient) IdpfDelete(ctx context.Context, in *IdpfDelete) (*IdpfDeleteReply, error) { + out := new(IdpfDeleteReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} diff --git a/binapi/igmp/igmp.ba.go b/binapi/igmp/igmp.ba.go index 0029e958..08e5e4b2 100644 --- a/binapi/igmp/igmp.ba.go +++ b/binapi/igmp/igmp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/igmp.api.json // Package igmp contains generated bindings for API file igmp.api. diff --git a/binapi/ikev2/ikev2.ba.go b/binapi/ikev2/ikev2.ba.go index c2cb7925..06af7cdf 100644 --- a/binapi/ikev2/ikev2.ba.go +++ b/binapi/ikev2/ikev2.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ikev2.api.json // Package ikev2 contains generated bindings for API file ikev2.api. diff --git a/binapi/ikev2_types/ikev2_types.ba.go b/binapi/ikev2_types/ikev2_types.ba.go index b460def1..30c164be 100644 --- a/binapi/ikev2_types/ikev2_types.ba.go +++ b/binapi/ikev2_types/ikev2_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ikev2_types.api.json // Package ikev2_types contains generated bindings for API file ikev2_types.api. diff --git a/binapi/interface/interface.ba.go b/binapi/interface/interface.ba.go index 2f509420..cb7a4daa 100644 --- a/binapi/interface/interface.ba.go +++ b/binapi/interface/interface.ba.go @@ -1,13 +1,13 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/interface.api.json // Package interfaces contains generated bindings for API file interface.api. // // Contents: -// - 70 messages +// - 72 messages package interfaces import ( @@ -27,7 +27,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "interface" APIVersion = "3.2.3" - VersionCrc = 0x49616418 + VersionCrc = 0x14dfbf43 ) // Enable or disable detailed interface stats @@ -724,6 +724,76 @@ func (m *InterfaceNameRenumberReply) Unmarshal(b []byte) error { return nil } +// pcap_set_filter_function +// - filter_function_name - the name of the filter function +// to set for pcap capture +// +// PcapSetFilterFunction defines message 'pcap_set_filter_function'. +type PcapSetFilterFunction struct { + FilterFunctionName string `binapi:"string[],name=filter_function_name" json:"filter_function_name,omitempty"` +} + +func (m *PcapSetFilterFunction) Reset() { *m = PcapSetFilterFunction{} } +func (*PcapSetFilterFunction) GetMessageName() string { return "pcap_set_filter_function" } +func (*PcapSetFilterFunction) GetCrcString() string { return "616abb92" } +func (*PcapSetFilterFunction) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *PcapSetFilterFunction) Size() (size int) { + if m == nil { + return 0 + } + size += 4 + len(m.FilterFunctionName) // m.FilterFunctionName + return size +} +func (m *PcapSetFilterFunction) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeString(m.FilterFunctionName, 0) + return buf.Bytes(), nil +} +func (m *PcapSetFilterFunction) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.FilterFunctionName = buf.DecodeString(0) + return nil +} + +// PcapSetFilterFunctionReply defines message 'pcap_set_filter_function_reply'. +type PcapSetFilterFunctionReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *PcapSetFilterFunctionReply) Reset() { *m = PcapSetFilterFunctionReply{} } +func (*PcapSetFilterFunctionReply) GetMessageName() string { return "pcap_set_filter_function_reply" } +func (*PcapSetFilterFunctionReply) GetCrcString() string { return "e8d4e804" } +func (*PcapSetFilterFunctionReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *PcapSetFilterFunctionReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *PcapSetFilterFunctionReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *PcapSetFilterFunctionReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // PcapTraceOff defines message 'pcap_trace_off'. type PcapTraceOff struct{} @@ -3055,6 +3125,8 @@ func file_interfaces_binapi_init() { api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "hw_interface_set_mtu_reply_e8d4e804") api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface_name_renumber_2b8858b8") api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface_name_renumber_reply_e8d4e804") + api.RegisterMessage((*PcapSetFilterFunction)(nil), "pcap_set_filter_function_616abb92") + api.RegisterMessage((*PcapSetFilterFunctionReply)(nil), "pcap_set_filter_function_reply_e8d4e804") api.RegisterMessage((*PcapTraceOff)(nil), "pcap_trace_off_51077d14") api.RegisterMessage((*PcapTraceOffReply)(nil), "pcap_trace_off_reply_e8d4e804") api.RegisterMessage((*PcapTraceOn)(nil), "pcap_trace_on_cb39e968") @@ -3130,6 +3202,8 @@ func AllMessages() []api.Message { (*HwInterfaceSetMtuReply)(nil), (*InterfaceNameRenumber)(nil), (*InterfaceNameRenumberReply)(nil), + (*PcapSetFilterFunction)(nil), + (*PcapSetFilterFunctionReply)(nil), (*PcapTraceOff)(nil), (*PcapTraceOffReply)(nil), (*PcapTraceOn)(nil), diff --git a/binapi/interface/interface_rpc.ba.go b/binapi/interface/interface_rpc.ba.go index fd888ed1..2e995f39 100644 --- a/binapi/interface/interface_rpc.ba.go +++ b/binapi/interface/interface_rpc.ba.go @@ -22,6 +22,7 @@ type RPCService interface { DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) + PcapSetFilterFunction(ctx context.Context, in *PcapSetFilterFunction) (*PcapSetFilterFunctionReply, error) PcapTraceOff(ctx context.Context, in *PcapTraceOff) (*PcapTraceOffReply, error) PcapTraceOn(ctx context.Context, in *PcapTraceOn) (*PcapTraceOnReply, error) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) @@ -138,6 +139,15 @@ func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *Interface return out, api.RetvalToVPPApiError(out.Retval) } +func (c *serviceClient) PcapSetFilterFunction(ctx context.Context, in *PcapSetFilterFunction) (*PcapSetFilterFunctionReply, error) { + out := new(PcapSetFilterFunctionReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) PcapTraceOff(ctx context.Context, in *PcapTraceOff) (*PcapTraceOffReply, error) { out := new(PcapTraceOffReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/interface_types/interface_types.ba.go b/binapi/interface_types/interface_types.ba.go index 56f38152..5bf0b932 100644 --- a/binapi/interface_types/interface_types.ba.go +++ b/binapi/interface_types/interface_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/interface_types.api.json // Package interface_types contains generated bindings for API file interface_types.api. diff --git a/binapi/ioam_cache/ioam_cache.ba.go b/binapi/ioam_cache/ioam_cache.ba.go index 980ae84d..abffd4ff 100644 --- a/binapi/ioam_cache/ioam_cache.ba.go +++ b/binapi/ioam_cache/ioam_cache.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ioam_cache.api.json // Package ioam_cache contains generated bindings for API file ioam_cache.api. diff --git a/binapi/ioam_export/ioam_export.ba.go b/binapi/ioam_export/ioam_export.ba.go index b5602152..e02aa691 100644 --- a/binapi/ioam_export/ioam_export.ba.go +++ b/binapi/ioam_export/ioam_export.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ioam_export.api.json // Package ioam_export contains generated bindings for API file ioam_export.api. diff --git a/binapi/ioam_vxlan_gpe/ioam_vxlan_gpe.ba.go b/binapi/ioam_vxlan_gpe/ioam_vxlan_gpe.ba.go index 6ee55298..df2342d9 100644 --- a/binapi/ioam_vxlan_gpe/ioam_vxlan_gpe.ba.go +++ b/binapi/ioam_vxlan_gpe/ioam_vxlan_gpe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ioam_vxlan_gpe.api.json // Package ioam_vxlan_gpe contains generated bindings for API file ioam_vxlan_gpe.api. diff --git a/binapi/ip/ip.ba.go b/binapi/ip/ip.ba.go index 2c59bb80..43eceb0d 100644 --- a/binapi/ip/ip.ba.go +++ b/binapi/ip/ip.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ip.api.json // Package ip contains generated bindings for API file ip.api. @@ -1912,6 +1912,7 @@ func (m *IPPuntRedirect) Unmarshal(b []byte) error { } // IPPuntRedirectDetails defines message 'ip_punt_redirect_details'. +// Deprecated: the message will be removed in the future versions type IPPuntRedirectDetails struct { Punt PuntRedirect `binapi:"punt_redirect,name=punt" json:"punt,omitempty"` } @@ -1954,6 +1955,7 @@ func (m *IPPuntRedirectDetails) Unmarshal(b []byte) error { } // IPPuntRedirectDump defines message 'ip_punt_redirect_dump'. +// Deprecated: the message will be removed in the future versions type IPPuntRedirectDump struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"` diff --git a/binapi/ip6_nd/ip6_nd.ba.go b/binapi/ip6_nd/ip6_nd.ba.go index bfdacd4c..38d5a0da 100644 --- a/binapi/ip6_nd/ip6_nd.ba.go +++ b/binapi/ip6_nd/ip6_nd.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ip6_nd.api.json // Package ip6_nd contains generated bindings for API file ip6_nd.api. diff --git a/binapi/ip_neighbor/ip_neighbor.ba.go b/binapi/ip_neighbor/ip_neighbor.ba.go index 33a2dfb3..0465f27c 100644 --- a/binapi/ip_neighbor/ip_neighbor.ba.go +++ b/binapi/ip_neighbor/ip_neighbor.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ip_neighbor.api.json // Package ip_neighbor contains generated bindings for API file ip_neighbor.api. @@ -9,7 +9,7 @@ // Contents: // - 2 enums // - 1 struct -// - 18 messages +// - 20 messages package ip_neighbor import ( @@ -30,8 +30,8 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ip_neighbor" - APIVersion = "1.0.0" - VersionCrc = 0xfde4a69a + APIVersion = "1.0.1" + VersionCrc = 0x36db39bd ) // IPNeighborEventFlags defines enum 'ip_neighbor_event_flags'. @@ -286,6 +286,102 @@ func (m *IPNeighborConfig) Unmarshal(b []byte) error { return nil } +// Get neighbor database configuration per AF +// - af - Address family (v4/v6) +// +// IPNeighborConfigGet defines message 'ip_neighbor_config_get'. +// InProgress: the message form may change in the future versions +type IPNeighborConfigGet struct { + Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` +} + +func (m *IPNeighborConfigGet) Reset() { *m = IPNeighborConfigGet{} } +func (*IPNeighborConfigGet) GetMessageName() string { return "ip_neighbor_config_get" } +func (*IPNeighborConfigGet) GetCrcString() string { return "a5db7bf7" } +func (*IPNeighborConfigGet) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IPNeighborConfigGet) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.Af + return size +} +func (m *IPNeighborConfigGet) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint8(uint8(m.Af)) + return buf.Bytes(), nil +} +func (m *IPNeighborConfigGet) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Af = ip_types.AddressFamily(buf.DecodeUint8()) + return nil +} + +// Neighbor database configuration reply +// - retval - error (0 is "no error") +// - af - Address family (v4/v6) +// - max_number - The maximum number of neighbours that will be created +// - max_age - The maximum age (in seconds) before an inactive neighbour +// is flushed +// - recycle - If max_number of neighbours is reached and new ones need +// to be created, should the oldest neighbour be 'recycled' +// +// IPNeighborConfigGetReply defines message 'ip_neighbor_config_get_reply'. +// InProgress: the message form may change in the future versions +type IPNeighborConfigGetReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + Af ip_types.AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` + MaxNumber uint32 `binapi:"u32,name=max_number" json:"max_number,omitempty"` + MaxAge uint32 `binapi:"u32,name=max_age" json:"max_age,omitempty"` + Recycle bool `binapi:"bool,name=recycle" json:"recycle,omitempty"` +} + +func (m *IPNeighborConfigGetReply) Reset() { *m = IPNeighborConfigGetReply{} } +func (*IPNeighborConfigGetReply) GetMessageName() string { return "ip_neighbor_config_get_reply" } +func (*IPNeighborConfigGetReply) GetCrcString() string { return "798e6fdd" } +func (*IPNeighborConfigGetReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IPNeighborConfigGetReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 1 // m.Af + size += 4 // m.MaxNumber + size += 4 // m.MaxAge + size += 1 // m.Recycle + return size +} +func (m *IPNeighborConfigGetReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint8(uint8(m.Af)) + buf.EncodeUint32(m.MaxNumber) + buf.EncodeUint32(m.MaxAge) + buf.EncodeBool(m.Recycle) + return buf.Bytes(), nil +} +func (m *IPNeighborConfigGetReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.Af = ip_types.AddressFamily(buf.DecodeUint8()) + m.MaxNumber = buf.DecodeUint32() + m.MaxAge = buf.DecodeUint32() + m.Recycle = buf.DecodeBool() + return nil +} + // IPNeighborConfigReply defines message 'ip_neighbor_config_reply'. type IPNeighborConfigReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` @@ -927,6 +1023,8 @@ func file_ip_neighbor_binapi_init() { api.RegisterMessage((*IPNeighborAddDel)(nil), "ip_neighbor_add_del_0607c257") api.RegisterMessage((*IPNeighborAddDelReply)(nil), "ip_neighbor_add_del_reply_1992deab") api.RegisterMessage((*IPNeighborConfig)(nil), "ip_neighbor_config_f4a5cf44") + api.RegisterMessage((*IPNeighborConfigGet)(nil), "ip_neighbor_config_get_a5db7bf7") + api.RegisterMessage((*IPNeighborConfigGetReply)(nil), "ip_neighbor_config_get_reply_798e6fdd") api.RegisterMessage((*IPNeighborConfigReply)(nil), "ip_neighbor_config_reply_e8d4e804") api.RegisterMessage((*IPNeighborDetails)(nil), "ip_neighbor_details_e29d79f0") api.RegisterMessage((*IPNeighborDump)(nil), "ip_neighbor_dump_d817a484") @@ -950,6 +1048,8 @@ func AllMessages() []api.Message { (*IPNeighborAddDel)(nil), (*IPNeighborAddDelReply)(nil), (*IPNeighborConfig)(nil), + (*IPNeighborConfigGet)(nil), + (*IPNeighborConfigGetReply)(nil), (*IPNeighborConfigReply)(nil), (*IPNeighborDetails)(nil), (*IPNeighborDump)(nil), diff --git a/binapi/ip_neighbor/ip_neighbor_rpc.ba.go b/binapi/ip_neighbor/ip_neighbor_rpc.ba.go index 00c2e45b..db3a5feb 100644 --- a/binapi/ip_neighbor/ip_neighbor_rpc.ba.go +++ b/binapi/ip_neighbor/ip_neighbor_rpc.ba.go @@ -15,6 +15,7 @@ import ( type RPCService interface { IPNeighborAddDel(ctx context.Context, in *IPNeighborAddDel) (*IPNeighborAddDelReply, error) IPNeighborConfig(ctx context.Context, in *IPNeighborConfig) (*IPNeighborConfigReply, error) + IPNeighborConfigGet(ctx context.Context, in *IPNeighborConfigGet) (*IPNeighborConfigGetReply, error) IPNeighborDump(ctx context.Context, in *IPNeighborDump) (RPCService_IPNeighborDumpClient, error) IPNeighborFlush(ctx context.Context, in *IPNeighborFlush) (*IPNeighborFlushReply, error) IPNeighborReplaceBegin(ctx context.Context, in *IPNeighborReplaceBegin) (*IPNeighborReplaceBeginReply, error) @@ -49,6 +50,15 @@ func (c *serviceClient) IPNeighborConfig(ctx context.Context, in *IPNeighborConf return out, api.RetvalToVPPApiError(out.Retval) } +func (c *serviceClient) IPNeighborConfigGet(ctx context.Context, in *IPNeighborConfigGet) (*IPNeighborConfigGetReply, error) { + out := new(IPNeighborConfigGetReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) IPNeighborDump(ctx context.Context, in *IPNeighborDump) (RPCService_IPNeighborDumpClient, error) { stream, err := c.conn.NewStream(ctx) if err != nil { diff --git a/binapi/ip_session_redirect/ip_session_redirect.ba.go b/binapi/ip_session_redirect/ip_session_redirect.ba.go index 175b644d..8b564913 100644 --- a/binapi/ip_session_redirect/ip_session_redirect.ba.go +++ b/binapi/ip_session_redirect/ip_session_redirect.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/ip_session_redirect.api.json // Package ip_session_redirect contains generated bindings for API file ip_session_redirect.api. diff --git a/binapi/ip_types/ip_types.ba.go b/binapi/ip_types/ip_types.ba.go index 92b1c190..77637018 100644 --- a/binapi/ip_types/ip_types.ba.go +++ b/binapi/ip_types/ip_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ip_types.api.json // Package ip_types contains generated bindings for API file ip_types.api. diff --git a/binapi/ipfix_export/ipfix_export.ba.go b/binapi/ipfix_export/ipfix_export.ba.go index 15b490f8..890930f9 100644 --- a/binapi/ipfix_export/ipfix_export.ba.go +++ b/binapi/ipfix_export/ipfix_export.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ipfix_export.api.json // Package ipfix_export contains generated bindings for API file ipfix_export.api. diff --git a/binapi/ipip/ipip.ba.go b/binapi/ipip/ipip.ba.go index fa6ec545..0fac44d1 100644 --- a/binapi/ipip/ipip.ba.go +++ b/binapi/ipip/ipip.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ipip.api.json // Package ipip contains generated bindings for API file ipip.api. diff --git a/binapi/ipsec/ipsec.ba.go b/binapi/ipsec/ipsec.ba.go index deb6f446..c2f01c2d 100644 --- a/binapi/ipsec/ipsec.ba.go +++ b/binapi/ipsec/ipsec.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ipsec.api.json // Package ipsec contains generated bindings for API file ipsec.api. // // Contents: // - 2 structs -// - 50 messages +// - 56 messages package ipsec import ( @@ -29,7 +29,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ipsec" APIVersion = "5.0.2" - VersionCrc = 0x9dfdcc71 + VersionCrc = 0x1b4ba2ec ) // IpsecItf defines type 'ipsec_itf'. @@ -587,6 +587,7 @@ func (m *IpsecSaDump) Unmarshal(b []byte) error { } // IpsecSaV2Details defines message 'ipsec_sa_v2_details'. +// Deprecated: the message will be removed in the future versions type IpsecSaV2Details struct { Entry ipsec_types.IpsecSadEntryV2 `binapi:"ipsec_sad_entry_v2,name=entry" json:"entry,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -703,6 +704,7 @@ func (m *IpsecSaV2Details) Unmarshal(b []byte) error { } // IpsecSaV2Dump defines message 'ipsec_sa_v2_dump'. +// Deprecated: the message will be removed in the future versions type IpsecSaV2Dump struct { SaID uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"` } @@ -895,6 +897,244 @@ func (m *IpsecSaV3Dump) Unmarshal(b []byte) error { return nil } +// IpsecSaV4Details defines message 'ipsec_sa_v4_details'. +type IpsecSaV4Details struct { + Entry ipsec_types.IpsecSadEntryV3 `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` + SeqOutbound uint64 `binapi:"u64,name=seq_outbound" json:"seq_outbound,omitempty"` + LastSeqInbound uint64 `binapi:"u64,name=last_seq_inbound" json:"last_seq_inbound,omitempty"` + ReplayWindow uint64 `binapi:"u64,name=replay_window" json:"replay_window,omitempty"` + ThreadIndex uint32 `binapi:"u32,name=thread_index" json:"thread_index,omitempty"` + StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"` +} + +func (m *IpsecSaV4Details) Reset() { *m = IpsecSaV4Details{} } +func (*IpsecSaV4Details) GetMessageName() string { return "ipsec_sa_v4_details" } +func (*IpsecSaV4Details) GetCrcString() string { return "87a322d7" } +func (*IpsecSaV4Details) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpsecSaV4Details) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Entry.SadID + size += 4 // m.Entry.Spi + size += 4 // m.Entry.Protocol + size += 4 // m.Entry.CryptoAlgorithm + size += 1 // m.Entry.CryptoKey.Length + size += 1 * 128 // m.Entry.CryptoKey.Data + size += 4 // m.Entry.IntegrityAlgorithm + size += 1 // m.Entry.IntegrityKey.Length + size += 1 * 128 // m.Entry.IntegrityKey.Data + size += 4 // m.Entry.Flags + size += 4 // m.Entry.Tunnel.Instance + size += 1 // m.Entry.Tunnel.Src.Af + size += 1 * 16 // m.Entry.Tunnel.Src.Un + size += 1 // m.Entry.Tunnel.Dst.Af + size += 1 * 16 // m.Entry.Tunnel.Dst.Un + size += 4 // m.Entry.Tunnel.SwIfIndex + size += 4 // m.Entry.Tunnel.TableID + size += 1 // m.Entry.Tunnel.EncapDecapFlags + size += 1 // m.Entry.Tunnel.Mode + size += 1 // m.Entry.Tunnel.Flags + size += 1 // m.Entry.Tunnel.Dscp + size += 1 // m.Entry.Tunnel.HopLimit + size += 4 // m.Entry.Salt + size += 2 // m.Entry.UDPSrcPort + size += 2 // m.Entry.UDPDstPort + size += 4 // m.SwIfIndex + size += 8 // m.SeqOutbound + size += 8 // m.LastSeqInbound + size += 8 // m.ReplayWindow + size += 4 // m.ThreadIndex + size += 4 // m.StatIndex + return size +} +func (m *IpsecSaV4Details) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.Entry.SadID) + buf.EncodeUint32(m.Entry.Spi) + buf.EncodeUint32(uint32(m.Entry.Protocol)) + buf.EncodeUint32(uint32(m.Entry.CryptoAlgorithm)) + buf.EncodeUint8(m.Entry.CryptoKey.Length) + buf.EncodeBytes(m.Entry.CryptoKey.Data, 128) + buf.EncodeUint32(uint32(m.Entry.IntegrityAlgorithm)) + buf.EncodeUint8(m.Entry.IntegrityKey.Length) + buf.EncodeBytes(m.Entry.IntegrityKey.Data, 128) + buf.EncodeUint32(uint32(m.Entry.Flags)) + buf.EncodeUint32(m.Entry.Tunnel.Instance) + buf.EncodeUint8(uint8(m.Entry.Tunnel.Src.Af)) + buf.EncodeBytes(m.Entry.Tunnel.Src.Un.XXX_UnionData[:], 16) + buf.EncodeUint8(uint8(m.Entry.Tunnel.Dst.Af)) + buf.EncodeBytes(m.Entry.Tunnel.Dst.Un.XXX_UnionData[:], 16) + buf.EncodeUint32(uint32(m.Entry.Tunnel.SwIfIndex)) + buf.EncodeUint32(m.Entry.Tunnel.TableID) + buf.EncodeUint8(uint8(m.Entry.Tunnel.EncapDecapFlags)) + buf.EncodeUint8(uint8(m.Entry.Tunnel.Mode)) + buf.EncodeUint8(uint8(m.Entry.Tunnel.Flags)) + buf.EncodeUint8(uint8(m.Entry.Tunnel.Dscp)) + buf.EncodeUint8(m.Entry.Tunnel.HopLimit) + buf.EncodeUint32(m.Entry.Salt) + buf.EncodeUint16(m.Entry.UDPSrcPort) + buf.EncodeUint16(m.Entry.UDPDstPort) + buf.EncodeUint32(uint32(m.SwIfIndex)) + buf.EncodeUint64(m.SeqOutbound) + buf.EncodeUint64(m.LastSeqInbound) + buf.EncodeUint64(m.ReplayWindow) + buf.EncodeUint32(m.ThreadIndex) + buf.EncodeUint32(m.StatIndex) + return buf.Bytes(), nil +} +func (m *IpsecSaV4Details) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Entry.SadID = buf.DecodeUint32() + m.Entry.Spi = buf.DecodeUint32() + m.Entry.Protocol = ipsec_types.IpsecProto(buf.DecodeUint32()) + m.Entry.CryptoAlgorithm = ipsec_types.IpsecCryptoAlg(buf.DecodeUint32()) + m.Entry.CryptoKey.Length = buf.DecodeUint8() + m.Entry.CryptoKey.Data = make([]byte, 128) + copy(m.Entry.CryptoKey.Data, buf.DecodeBytes(len(m.Entry.CryptoKey.Data))) + m.Entry.IntegrityAlgorithm = ipsec_types.IpsecIntegAlg(buf.DecodeUint32()) + m.Entry.IntegrityKey.Length = buf.DecodeUint8() + m.Entry.IntegrityKey.Data = make([]byte, 128) + copy(m.Entry.IntegrityKey.Data, buf.DecodeBytes(len(m.Entry.IntegrityKey.Data))) + m.Entry.Flags = ipsec_types.IpsecSadFlags(buf.DecodeUint32()) + m.Entry.Tunnel.Instance = buf.DecodeUint32() + m.Entry.Tunnel.Src.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.Entry.Tunnel.Src.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.Entry.Tunnel.Dst.Af = ip_types.AddressFamily(buf.DecodeUint8()) + copy(m.Entry.Tunnel.Dst.Un.XXX_UnionData[:], buf.DecodeBytes(16)) + m.Entry.Tunnel.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + m.Entry.Tunnel.TableID = buf.DecodeUint32() + m.Entry.Tunnel.EncapDecapFlags = tunnel_types.TunnelEncapDecapFlags(buf.DecodeUint8()) + m.Entry.Tunnel.Mode = tunnel_types.TunnelMode(buf.DecodeUint8()) + m.Entry.Tunnel.Flags = tunnel_types.TunnelFlags(buf.DecodeUint8()) + m.Entry.Tunnel.Dscp = ip_types.IPDscp(buf.DecodeUint8()) + m.Entry.Tunnel.HopLimit = buf.DecodeUint8() + m.Entry.Salt = buf.DecodeUint32() + m.Entry.UDPSrcPort = buf.DecodeUint16() + m.Entry.UDPDstPort = buf.DecodeUint16() + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + m.SeqOutbound = buf.DecodeUint64() + m.LastSeqInbound = buf.DecodeUint64() + m.ReplayWindow = buf.DecodeUint64() + m.ThreadIndex = buf.DecodeUint32() + m.StatIndex = buf.DecodeUint32() + return nil +} + +// IpsecSaV4Dump defines message 'ipsec_sa_v4_dump'. +type IpsecSaV4Dump struct { + SaID uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"` +} + +func (m *IpsecSaV4Dump) Reset() { *m = IpsecSaV4Dump{} } +func (*IpsecSaV4Dump) GetMessageName() string { return "ipsec_sa_v4_dump" } +func (*IpsecSaV4Dump) GetCrcString() string { return "2076c2f4" } +func (*IpsecSaV4Dump) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IpsecSaV4Dump) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SaID + return size +} +func (m *IpsecSaV4Dump) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.SaID) + return buf.Bytes(), nil +} +func (m *IpsecSaV4Dump) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SaID = buf.DecodeUint32() + return nil +} + +// An API to bind an SAD entry to a specific worker +// - sa_id - the id of the SA to bind +// - worker - the worker's index to which the SA will be bound to +// +// IpsecSadBind defines message 'ipsec_sad_bind'. +type IpsecSadBind struct { + SaID uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"` + Worker uint32 `binapi:"u32,name=worker" json:"worker,omitempty"` +} + +func (m *IpsecSadBind) Reset() { *m = IpsecSadBind{} } +func (*IpsecSadBind) GetMessageName() string { return "ipsec_sad_bind" } +func (*IpsecSadBind) GetCrcString() string { return "0649c0d9" } +func (*IpsecSadBind) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IpsecSadBind) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SaID + size += 4 // m.Worker + return size +} +func (m *IpsecSadBind) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.SaID) + buf.EncodeUint32(m.Worker) + return buf.Bytes(), nil +} +func (m *IpsecSadBind) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SaID = buf.DecodeUint32() + m.Worker = buf.DecodeUint32() + return nil +} + +// IpsecSadBindReply defines message 'ipsec_sad_bind_reply'. +type IpsecSadBindReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *IpsecSadBindReply) Reset() { *m = IpsecSadBindReply{} } +func (*IpsecSadBindReply) GetMessageName() string { return "ipsec_sad_bind_reply" } +func (*IpsecSadBindReply) GetCrcString() string { return "e8d4e804" } +func (*IpsecSadBindReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpsecSadBindReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *IpsecSadBindReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *IpsecSadBindReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // IpsecSadEntryAdd defines message 'ipsec_sad_entry_add'. type IpsecSadEntryAdd struct { Entry ipsec_types.IpsecSadEntryV3 `binapi:"ipsec_sad_entry_v3,name=entry" json:"entry,omitempty"` @@ -1135,6 +1375,7 @@ func (m *IpsecSadEntryAddDelReply) Unmarshal(b []byte) error { } // IpsecSadEntryAddDelV2 defines message 'ipsec_sad_entry_add_del_v2'. +// Deprecated: the message will be removed in the future versions type IpsecSadEntryAddDelV2 struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Entry ipsec_types.IpsecSadEntryV2 `binapi:"ipsec_sad_entry_v2,name=entry" json:"entry,omitempty"` @@ -1231,6 +1472,7 @@ func (m *IpsecSadEntryAddDelV2) Unmarshal(b []byte) error { } // IpsecSadEntryAddDelV2Reply defines message 'ipsec_sad_entry_add_del_v2_reply'. +// Deprecated: the message will be removed in the future versions type IpsecSadEntryAddDelV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` StatIndex uint32 `binapi:"u32,name=stat_index" json:"stat_index,omitempty"` @@ -1642,6 +1884,72 @@ func (m *IpsecSadEntryUpdateReply) Unmarshal(b []byte) error { return nil } +// IpsecSadUnbind defines message 'ipsec_sad_unbind'. +type IpsecSadUnbind struct { + SaID uint32 `binapi:"u32,name=sa_id" json:"sa_id,omitempty"` +} + +func (m *IpsecSadUnbind) Reset() { *m = IpsecSadUnbind{} } +func (*IpsecSadUnbind) GetMessageName() string { return "ipsec_sad_unbind" } +func (*IpsecSadUnbind) GetCrcString() string { return "2076c2f4" } +func (*IpsecSadUnbind) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *IpsecSadUnbind) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SaID + return size +} +func (m *IpsecSadUnbind) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.SaID) + return buf.Bytes(), nil +} +func (m *IpsecSadUnbind) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SaID = buf.DecodeUint32() + return nil +} + +// IpsecSadUnbindReply defines message 'ipsec_sad_unbind_reply'. +type IpsecSadUnbindReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *IpsecSadUnbindReply) Reset() { *m = IpsecSadUnbindReply{} } +func (*IpsecSadUnbindReply) GetMessageName() string { return "ipsec_sad_unbind_reply" } +func (*IpsecSadUnbindReply) GetCrcString() string { return "e8d4e804" } +func (*IpsecSadUnbindReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *IpsecSadUnbindReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *IpsecSadUnbindReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *IpsecSadUnbindReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // Select IPsec backend // - protocol - IPsec protocol (value from ipsec_protocol_t) // - index - backend index @@ -2721,6 +3029,10 @@ func file_ipsec_binapi_init() { api.RegisterMessage((*IpsecSaV2Dump)(nil), "ipsec_sa_v2_dump_2076c2f4") api.RegisterMessage((*IpsecSaV3Details)(nil), "ipsec_sa_v3_details_2fc991ee") api.RegisterMessage((*IpsecSaV3Dump)(nil), "ipsec_sa_v3_dump_2076c2f4") + api.RegisterMessage((*IpsecSaV4Details)(nil), "ipsec_sa_v4_details_87a322d7") + api.RegisterMessage((*IpsecSaV4Dump)(nil), "ipsec_sa_v4_dump_2076c2f4") + api.RegisterMessage((*IpsecSadBind)(nil), "ipsec_sad_bind_0649c0d9") + api.RegisterMessage((*IpsecSadBindReply)(nil), "ipsec_sad_bind_reply_e8d4e804") api.RegisterMessage((*IpsecSadEntryAdd)(nil), "ipsec_sad_entry_add_50229353") api.RegisterMessage((*IpsecSadEntryAddDel)(nil), "ipsec_sad_entry_add_del_ab64b5c6") api.RegisterMessage((*IpsecSadEntryAddDelReply)(nil), "ipsec_sad_entry_add_del_reply_9ffac24b") @@ -2733,6 +3045,8 @@ func file_ipsec_binapi_init() { api.RegisterMessage((*IpsecSadEntryDelReply)(nil), "ipsec_sad_entry_del_reply_e8d4e804") api.RegisterMessage((*IpsecSadEntryUpdate)(nil), "ipsec_sad_entry_update_1412af86") api.RegisterMessage((*IpsecSadEntryUpdateReply)(nil), "ipsec_sad_entry_update_reply_e8d4e804") + api.RegisterMessage((*IpsecSadUnbind)(nil), "ipsec_sad_unbind_2076c2f4") + api.RegisterMessage((*IpsecSadUnbindReply)(nil), "ipsec_sad_unbind_reply_e8d4e804") api.RegisterMessage((*IpsecSelectBackend)(nil), "ipsec_select_backend_5bcfd3b7") api.RegisterMessage((*IpsecSelectBackendReply)(nil), "ipsec_select_backend_reply_e8d4e804") api.RegisterMessage((*IpsecSetAsyncMode)(nil), "ipsec_set_async_mode_a6465f7c") @@ -2776,6 +3090,10 @@ func AllMessages() []api.Message { (*IpsecSaV2Dump)(nil), (*IpsecSaV3Details)(nil), (*IpsecSaV3Dump)(nil), + (*IpsecSaV4Details)(nil), + (*IpsecSaV4Dump)(nil), + (*IpsecSadBind)(nil), + (*IpsecSadBindReply)(nil), (*IpsecSadEntryAdd)(nil), (*IpsecSadEntryAddDel)(nil), (*IpsecSadEntryAddDelReply)(nil), @@ -2788,6 +3106,8 @@ func AllMessages() []api.Message { (*IpsecSadEntryDelReply)(nil), (*IpsecSadEntryUpdate)(nil), (*IpsecSadEntryUpdateReply)(nil), + (*IpsecSadUnbind)(nil), + (*IpsecSadUnbindReply)(nil), (*IpsecSelectBackend)(nil), (*IpsecSelectBackendReply)(nil), (*IpsecSetAsyncMode)(nil), diff --git a/binapi/ipsec/ipsec_rpc.ba.go b/binapi/ipsec/ipsec_rpc.ba.go index 18b373e7..1e0dc7a8 100644 --- a/binapi/ipsec/ipsec_rpc.ba.go +++ b/binapi/ipsec/ipsec_rpc.ba.go @@ -21,12 +21,15 @@ type RPCService interface { IpsecSaDump(ctx context.Context, in *IpsecSaDump) (RPCService_IpsecSaDumpClient, error) IpsecSaV2Dump(ctx context.Context, in *IpsecSaV2Dump) (RPCService_IpsecSaV2DumpClient, error) IpsecSaV3Dump(ctx context.Context, in *IpsecSaV3Dump) (RPCService_IpsecSaV3DumpClient, error) + IpsecSaV4Dump(ctx context.Context, in *IpsecSaV4Dump) (RPCService_IpsecSaV4DumpClient, error) + IpsecSadBind(ctx context.Context, in *IpsecSadBind) (*IpsecSadBindReply, error) IpsecSadEntryAdd(ctx context.Context, in *IpsecSadEntryAdd) (*IpsecSadEntryAddReply, error) IpsecSadEntryAddDel(ctx context.Context, in *IpsecSadEntryAddDel) (*IpsecSadEntryAddDelReply, error) IpsecSadEntryAddDelV2(ctx context.Context, in *IpsecSadEntryAddDelV2) (*IpsecSadEntryAddDelV2Reply, error) IpsecSadEntryAddDelV3(ctx context.Context, in *IpsecSadEntryAddDelV3) (*IpsecSadEntryAddDelV3Reply, error) IpsecSadEntryDel(ctx context.Context, in *IpsecSadEntryDel) (*IpsecSadEntryDelReply, error) IpsecSadEntryUpdate(ctx context.Context, in *IpsecSadEntryUpdate) (*IpsecSadEntryUpdateReply, error) + IpsecSadUnbind(ctx context.Context, in *IpsecSadUnbind) (*IpsecSadUnbindReply, error) IpsecSelectBackend(ctx context.Context, in *IpsecSelectBackend) (*IpsecSelectBackendReply, error) IpsecSetAsyncMode(ctx context.Context, in *IpsecSetAsyncMode) (*IpsecSetAsyncModeReply, error) IpsecSpdAddDel(ctx context.Context, in *IpsecSpdAddDel) (*IpsecSpdAddDelReply, error) @@ -290,6 +293,58 @@ func (c *serviceClient_IpsecSaV3DumpClient) Recv() (*IpsecSaV3Details, error) { } } +func (c *serviceClient) IpsecSaV4Dump(ctx context.Context, in *IpsecSaV4Dump) (RPCService_IpsecSaV4DumpClient, error) { + stream, err := c.conn.NewStream(ctx) + if err != nil { + return nil, err + } + x := &serviceClient_IpsecSaV4DumpClient{stream} + if err := x.Stream.SendMsg(in); err != nil { + return nil, err + } + if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil { + return nil, err + } + return x, nil +} + +type RPCService_IpsecSaV4DumpClient interface { + Recv() (*IpsecSaV4Details, error) + api.Stream +} + +type serviceClient_IpsecSaV4DumpClient struct { + api.Stream +} + +func (c *serviceClient_IpsecSaV4DumpClient) Recv() (*IpsecSaV4Details, error) { + msg, err := c.Stream.RecvMsg() + if err != nil { + return nil, err + } + switch m := msg.(type) { + case *IpsecSaV4Details: + return m, nil + case *memclnt.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) + } +} + +func (c *serviceClient) IpsecSadBind(ctx context.Context, in *IpsecSadBind) (*IpsecSadBindReply, error) { + out := new(IpsecSadBindReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) IpsecSadEntryAdd(ctx context.Context, in *IpsecSadEntryAdd) (*IpsecSadEntryAddReply, error) { out := new(IpsecSadEntryAddReply) err := c.conn.Invoke(ctx, in, out) @@ -344,6 +399,15 @@ func (c *serviceClient) IpsecSadEntryUpdate(ctx context.Context, in *IpsecSadEnt return out, api.RetvalToVPPApiError(out.Retval) } +func (c *serviceClient) IpsecSadUnbind(ctx context.Context, in *IpsecSadUnbind) (*IpsecSadUnbindReply, error) { + out := new(IpsecSadUnbindReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) IpsecSelectBackend(ctx context.Context, in *IpsecSelectBackend) (*IpsecSelectBackendReply, error) { out := new(IpsecSelectBackendReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/ipsec_types/ipsec_types.ba.go b/binapi/ipsec_types/ipsec_types.ba.go index 9ccec264..1257d63b 100644 --- a/binapi/ipsec_types/ipsec_types.ba.go +++ b/binapi/ipsec_types/ipsec_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/ipsec_types.api.json // Package ipsec_types contains generated bindings for API file ipsec_types.api. @@ -49,6 +49,9 @@ const ( IPSEC_API_CRYPTO_ALG_DES_CBC IpsecCryptoAlg = 10 IPSEC_API_CRYPTO_ALG_3DES_CBC IpsecCryptoAlg = 11 IPSEC_API_CRYPTO_ALG_CHACHA20_POLY1305 IpsecCryptoAlg = 12 + IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_128 IpsecCryptoAlg = 13 + IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_192 IpsecCryptoAlg = 14 + IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_256 IpsecCryptoAlg = 15 ) var ( @@ -66,6 +69,9 @@ var ( 10: "IPSEC_API_CRYPTO_ALG_DES_CBC", 11: "IPSEC_API_CRYPTO_ALG_3DES_CBC", 12: "IPSEC_API_CRYPTO_ALG_CHACHA20_POLY1305", + 13: "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_128", + 14: "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_192", + 15: "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_256", } IpsecCryptoAlg_value = map[string]uint32{ "IPSEC_API_CRYPTO_ALG_NONE": 0, @@ -81,6 +87,9 @@ var ( "IPSEC_API_CRYPTO_ALG_DES_CBC": 10, "IPSEC_API_CRYPTO_ALG_3DES_CBC": 11, "IPSEC_API_CRYPTO_ALG_CHACHA20_POLY1305": 12, + "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_128": 13, + "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_192": 14, + "IPSEC_API_CRYPTO_ALG_AES_NULL_GMAC_256": 15, } ) diff --git a/binapi/l2/l2.ba.go b/binapi/l2/l2.ba.go index 4f4a1e53..da0180be 100644 --- a/binapi/l2/l2.ba.go +++ b/binapi/l2/l2.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/l2.api.json // Package l2 contains generated bindings for API file l2.api. diff --git a/binapi/l2tp/l2tp.ba.go b/binapi/l2tp/l2tp.ba.go index 8bfac1fe..615ff0f3 100644 --- a/binapi/l2tp/l2tp.ba.go +++ b/binapi/l2tp/l2tp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/l2tp.api.json // Package l2tp contains generated bindings for API file l2tp.api. diff --git a/binapi/l3xc/l3xc.ba.go b/binapi/l3xc/l3xc.ba.go index 1d309438..27e02778 100644 --- a/binapi/l3xc/l3xc.ba.go +++ b/binapi/l3xc/l3xc.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/l3xc.api.json // Package l3xc contains generated bindings for API file l3xc.api. diff --git a/binapi/lacp/lacp.ba.go b/binapi/lacp/lacp.ba.go index c5421bc5..43b8fd64 100644 --- a/binapi/lacp/lacp.ba.go +++ b/binapi/lacp/lacp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lacp.api.json // Package lacp contains generated bindings for API file lacp.api. diff --git a/binapi/lb/lb.ba.go b/binapi/lb/lb.ba.go index 7a059d99..37501bbb 100644 --- a/binapi/lb/lb.ba.go +++ b/binapi/lb/lb.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lb.api.json // Package lb contains generated bindings for API file lb.api. diff --git a/binapi/lb_types/lb_types.ba.go b/binapi/lb_types/lb_types.ba.go index 8edac4e6..a664f17c 100644 --- a/binapi/lb_types/lb_types.ba.go +++ b/binapi/lb_types/lb_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lb_types.api.json // Package lb_types contains generated bindings for API file lb_types.api. diff --git a/binapi/lcp/lcp.ba.go b/binapi/lcp/lcp.ba.go index 5df16174..a99870ba 100644 --- a/binapi/lcp/lcp.ba.go +++ b/binapi/lcp/lcp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lcp.api.json // Package lcp contains generated bindings for API file lcp.api. @@ -202,7 +202,7 @@ func (m *LcpDefaultNsSetReply) Unmarshal(b []byte) error { // - netns - optional tap netns; netns[0] == 0 if none // // LcpItfPairAddDel defines message 'lcp_itf_pair_add_del'. -// InProgress: the message form may change in the future versions +// Deprecated: the message will be removed in the future versions type LcpItfPairAddDel struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -252,7 +252,7 @@ func (m *LcpItfPairAddDel) Unmarshal(b []byte) error { } // LcpItfPairAddDelReply defines message 'lcp_itf_pair_add_del_reply'. -// InProgress: the message form may change in the future versions +// Deprecated: the message will be removed in the future versions type LcpItfPairAddDelReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -336,6 +336,7 @@ func (m *LcpItfPairAddDelV2) Unmarshal(b []byte) error { } // LcpItfPairAddDelV2Reply defines message 'lcp_itf_pair_add_del_v2_reply'. +// InProgress: the message form may change in the future versions type LcpItfPairAddDelV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` HostSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=host_sw_if_index" json:"host_sw_if_index,omitempty"` diff --git a/binapi/lisp/lisp.ba.go b/binapi/lisp/lisp.ba.go index 8cd6f1a7..344a92df 100644 --- a/binapi/lisp/lisp.ba.go +++ b/binapi/lisp/lisp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lisp.api.json // Package lisp contains generated bindings for API file lisp.api. diff --git a/binapi/lisp_gpe/lisp_gpe.ba.go b/binapi/lisp_gpe/lisp_gpe.ba.go index e6a06e58..e1b5f9c8 100644 --- a/binapi/lisp_gpe/lisp_gpe.ba.go +++ b/binapi/lisp_gpe/lisp_gpe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lisp_gpe.api.json // Package lisp_gpe contains generated bindings for API file lisp_gpe.api. diff --git a/binapi/lisp_types/lisp_types.ba.go b/binapi/lisp_types/lisp_types.ba.go index 111f84fd..381a27ad 100644 --- a/binapi/lisp_types/lisp_types.ba.go +++ b/binapi/lisp_types/lisp_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lisp_types.api.json // Package lisp_types contains generated bindings for API file lisp_types.api. diff --git a/binapi/lldp/lldp.ba.go b/binapi/lldp/lldp.ba.go index 540bae3b..3aef0c75 100644 --- a/binapi/lldp/lldp.ba.go +++ b/binapi/lldp/lldp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/lldp.api.json // Package lldp contains generated bindings for API file lldp.api. diff --git a/binapi/mactime/mactime.ba.go b/binapi/mactime/mactime.ba.go index b6b410e4..73a14ae7 100644 --- a/binapi/mactime/mactime.ba.go +++ b/binapi/mactime/mactime.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/mactime.api.json // Package mactime contains generated bindings for API file mactime.api. diff --git a/binapi/map/map.ba.go b/binapi/map/map.ba.go index bc1276d9..a3771bb3 100644 --- a/binapi/map/map.ba.go +++ b/binapi/map/map.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/map.api.json // Package maps contains generated bindings for API file map.api. diff --git a/binapi/mdata/mdata.ba.go b/binapi/mdata/mdata.ba.go index ce184d22..7b3b5c9a 100644 --- a/binapi/mdata/mdata.ba.go +++ b/binapi/mdata/mdata.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/mdata.api.json // Package mdata contains generated bindings for API file mdata.api. diff --git a/binapi/memclnt/memclnt.ba.go b/binapi/memclnt/memclnt.ba.go index 13650ac7..7bb9958d 100644 --- a/binapi/memclnt/memclnt.ba.go +++ b/binapi/memclnt/memclnt.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/memclnt.api.json // Package memclnt contains generated bindings for API file memclnt.api. @@ -288,6 +288,7 @@ func (m *GetFirstMsgIDReply) Unmarshal(b []byte) error { // - Create a client registration // // MemclntCreate defines message 'memclnt_create'. +// Deprecated: the message will be removed in the future versions type MemclntCreate struct { CtxQuota int32 `binapi:"i32,name=ctx_quota" json:"ctx_quota,omitempty"` InputQueue uint64 `binapi:"u64,name=input_queue" json:"input_queue,omitempty"` @@ -342,6 +343,7 @@ func (m *MemclntCreate) Unmarshal(b []byte) error { } // MemclntCreateReply defines message 'memclnt_create_reply'. +// Deprecated: the message will be removed in the future versions type MemclntCreateReply struct { Response int32 `binapi:"i32,name=response" json:"response,omitempty"` Handle uint64 `binapi:"u64,name=handle" json:"handle,omitempty"` diff --git a/binapi/memif/memif.ba.go b/binapi/memif/memif.ba.go index 92cf3277..6d3e0fb6 100644 --- a/binapi/memif/memif.ba.go +++ b/binapi/memif/memif.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/memif.api.json // Package memif contains generated bindings for API file memif.api. @@ -105,6 +105,7 @@ func (x MemifRole) String() string { // - secret - optional, default is "", max length 24 // // MemifCreate defines message 'memif_create'. +// Deprecated: the message will be removed in the future versions type MemifCreate struct { Role MemifRole `binapi:"memif_role,name=role" json:"role,omitempty"` Mode MemifMode `binapi:"memif_mode,name=mode" json:"mode,omitempty"` @@ -182,6 +183,7 @@ func (m *MemifCreate) Unmarshal(b []byte) error { // - sw_if_index - software index of the newly created interface // // MemifCreateReply defines message 'memif_create_reply'. +// Deprecated: the message will be removed in the future versions type MemifCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -544,6 +546,7 @@ func (m *MemifDump) Unmarshal(b []byte) error { // no socket filename needed when is_add == 0. // // MemifSocketFilenameAddDel defines message 'memif_socket_filename_add_del'. +// Deprecated: the message will be removed in the future versions type MemifSocketFilenameAddDel struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` @@ -585,6 +588,7 @@ func (m *MemifSocketFilenameAddDel) Unmarshal(b []byte) error { } // MemifSocketFilenameAddDelReply defines message 'memif_socket_filename_add_del_reply'. +// Deprecated: the message will be removed in the future versions type MemifSocketFilenameAddDelReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } diff --git a/binapi/mfib_types/mfib_types.ba.go b/binapi/mfib_types/mfib_types.ba.go index 9ea74c37..092e5453 100644 --- a/binapi/mfib_types/mfib_types.ba.go +++ b/binapi/mfib_types/mfib_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/mfib_types.api.json // Package mfib_types contains generated bindings for API file mfib_types.api. diff --git a/binapi/mpls/mpls.ba.go b/binapi/mpls/mpls.ba.go index e8741c06..30ec95d2 100644 --- a/binapi/mpls/mpls.ba.go +++ b/binapi/mpls/mpls.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/mpls.api.json // Package mpls contains generated bindings for API file mpls.api. // // Contents: // - 3 structs -// - 16 messages +// - 18 messages package mpls import ( @@ -28,7 +28,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "mpls" APIVersion = "1.1.1" - VersionCrc = 0x46824f02 + VersionCrc = 0xdf2aeee2 ) // MplsRoute defines type 'mpls_route'. @@ -59,6 +59,77 @@ type MplsTunnel struct { MtPaths []fib_types.FibPath `binapi:"fib_path[mt_n_paths],name=mt_paths" json:"mt_paths,omitempty"` } +// mpls enabled interface details +// MplsInterfaceDetails defines message 'mpls_interface_details'. +type MplsInterfaceDetails struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *MplsInterfaceDetails) Reset() { *m = MplsInterfaceDetails{} } +func (*MplsInterfaceDetails) GetMessageName() string { return "mpls_interface_details" } +func (*MplsInterfaceDetails) GetCrcString() string { return "0b45011c" } +func (*MplsInterfaceDetails) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *MplsInterfaceDetails) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + return size +} +func (m *MplsInterfaceDetails) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *MplsInterfaceDetails) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + +// Dump mpls enabled interface(s) +// - sw_if_index - sw_if_index of a specific interface, or -1 (default) +// to return all MPLS enabled interfaces +// +// MplsInterfaceDump defines message 'mpls_interface_dump'. +type MplsInterfaceDump struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"` +} + +func (m *MplsInterfaceDump) Reset() { *m = MplsInterfaceDump{} } +func (*MplsInterfaceDump) GetMessageName() string { return "mpls_interface_dump" } +func (*MplsInterfaceDump) GetCrcString() string { return "f9e6675e" } +func (*MplsInterfaceDump) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *MplsInterfaceDump) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + return size +} +func (m *MplsInterfaceDump) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *MplsInterfaceDump) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + // Bind/Unbind an MPLS local label to an IP prefix. i.e. create // // a per-prefix label entry. @@ -1046,6 +1117,8 @@ func (m *SwInterfaceSetMplsEnableReply) Unmarshal(b []byte) error { func init() { file_mpls_binapi_init() } func file_mpls_binapi_init() { + api.RegisterMessage((*MplsInterfaceDetails)(nil), "mpls_interface_details_0b45011c") + api.RegisterMessage((*MplsInterfaceDump)(nil), "mpls_interface_dump_f9e6675e") api.RegisterMessage((*MplsIPBindUnbind)(nil), "mpls_ip_bind_unbind_c7533b32") api.RegisterMessage((*MplsIPBindUnbindReply)(nil), "mpls_ip_bind_unbind_reply_e8d4e804") api.RegisterMessage((*MplsRouteAddDel)(nil), "mpls_route_add_del_8e1d1e07") @@ -1067,6 +1140,8 @@ func file_mpls_binapi_init() { // Messages returns list of all messages in this module. func AllMessages() []api.Message { return []api.Message{ + (*MplsInterfaceDetails)(nil), + (*MplsInterfaceDump)(nil), (*MplsIPBindUnbind)(nil), (*MplsIPBindUnbindReply)(nil), (*MplsRouteAddDel)(nil), diff --git a/binapi/mpls/mpls_rpc.ba.go b/binapi/mpls/mpls_rpc.ba.go index 84b852e6..1b682c92 100644 --- a/binapi/mpls/mpls_rpc.ba.go +++ b/binapi/mpls/mpls_rpc.ba.go @@ -13,6 +13,7 @@ import ( // RPCService defines RPC service mpls. type RPCService interface { + MplsInterfaceDump(ctx context.Context, in *MplsInterfaceDump) (RPCService_MplsInterfaceDumpClient, error) MplsIPBindUnbind(ctx context.Context, in *MplsIPBindUnbind) (*MplsIPBindUnbindReply, error) MplsRouteAddDel(ctx context.Context, in *MplsRouteAddDel) (*MplsRouteAddDelReply, error) MplsRouteDump(ctx context.Context, in *MplsRouteDump) (RPCService_MplsRouteDumpClient, error) @@ -31,6 +32,49 @@ func NewServiceClient(conn api.Connection) RPCService { return &serviceClient{conn} } +func (c *serviceClient) MplsInterfaceDump(ctx context.Context, in *MplsInterfaceDump) (RPCService_MplsInterfaceDumpClient, error) { + stream, err := c.conn.NewStream(ctx) + if err != nil { + return nil, err + } + x := &serviceClient_MplsInterfaceDumpClient{stream} + if err := x.Stream.SendMsg(in); err != nil { + return nil, err + } + if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil { + return nil, err + } + return x, nil +} + +type RPCService_MplsInterfaceDumpClient interface { + Recv() (*MplsInterfaceDetails, error) + api.Stream +} + +type serviceClient_MplsInterfaceDumpClient struct { + api.Stream +} + +func (c *serviceClient_MplsInterfaceDumpClient) Recv() (*MplsInterfaceDetails, error) { + msg, err := c.Stream.RecvMsg() + if err != nil { + return nil, err + } + switch m := msg.(type) { + case *MplsInterfaceDetails: + return m, nil + case *memclnt.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) + } +} + func (c *serviceClient) MplsIPBindUnbind(ctx context.Context, in *MplsIPBindUnbind) (*MplsIPBindUnbindReply, error) { out := new(MplsIPBindUnbindReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/mss_clamp/mss_clamp.ba.go b/binapi/mss_clamp/mss_clamp.ba.go index cbbfa046..dbe13cab 100644 --- a/binapi/mss_clamp/mss_clamp.ba.go +++ b/binapi/mss_clamp/mss_clamp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/mss_clamp.api.json // Package mss_clamp contains generated bindings for API file mss_clamp.api. diff --git a/binapi/nat44_ed/nat44_ed.ba.go b/binapi/nat44_ed/nat44_ed.ba.go index 7896275f..97aa250f 100644 --- a/binapi/nat44_ed/nat44_ed.ba.go +++ b/binapi/nat44_ed/nat44_ed.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nat44_ed.api.json // Package nat44_ed contains generated bindings for API file nat44_ed.api. @@ -537,6 +537,7 @@ func (m *Nat44AddDelLbStaticMappingReply) Unmarshal(b []byte) error { // - tag - opaque string tag // // Nat44AddDelStaticMapping defines message 'nat44_add_del_static_mapping'. +// Deprecated: the message will be removed in the future versions type Nat44AddDelStaticMapping struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` @@ -606,6 +607,7 @@ func (m *Nat44AddDelStaticMapping) Unmarshal(b []byte) error { } // Nat44AddDelStaticMappingReply defines message 'nat44_add_del_static_mapping_reply'. +// Deprecated: the message will be removed in the future versions type Nat44AddDelStaticMappingReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -2742,6 +2744,7 @@ func (m *Nat44UserDump) Unmarshal(b []byte) error { // twice-nat session) // // Nat44UserSessionDetails defines message 'nat44_user_session_details'. +// Deprecated: the message will be removed in the future versions type Nat44UserSessionDetails struct { OutsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"` OutsidePort uint16 `binapi:"u16,name=outside_port" json:"outside_port,omitempty"` @@ -2827,6 +2830,7 @@ func (m *Nat44UserSessionDetails) Unmarshal(b []byte) error { // - vrf_id - VRF_ID // // Nat44UserSessionDump defines message 'nat44_user_session_dump'. +// Deprecated: the message will be removed in the future versions type Nat44UserSessionDump struct { IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` @@ -2886,6 +2890,7 @@ func (m *Nat44UserSessionDump) Unmarshal(b []byte) error { // is active // // Nat44UserSessionV2Details defines message 'nat44_user_session_v2_details'. +// Deprecated: the message will be removed in the future versions type Nat44UserSessionV2Details struct { OutsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"` OutsidePort uint16 `binapi:"u16,name=outside_port" json:"outside_port,omitempty"` @@ -2975,6 +2980,7 @@ func (m *Nat44UserSessionV2Details) Unmarshal(b []byte) error { // - vrf_id - VRF_ID // // Nat44UserSessionV2Dump defines message 'nat44_user_session_v2_dump'. +// Deprecated: the message will be removed in the future versions type Nat44UserSessionV2Dump struct { IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` diff --git a/binapi/nat44_ei/nat44_ei.ba.go b/binapi/nat44_ei/nat44_ei.ba.go index b26f8498..06a4992a 100644 --- a/binapi/nat44_ei/nat44_ei.ba.go +++ b/binapi/nat44_ei/nat44_ei.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nat44_ei.api.json // Package nat44_ei contains generated bindings for API file nat44_ei.api. diff --git a/binapi/nat64/nat64.ba.go b/binapi/nat64/nat64.ba.go index 9bee2d18..0f160bb7 100644 --- a/binapi/nat64/nat64.ba.go +++ b/binapi/nat64/nat64.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nat64.api.json // Package nat64 contains generated bindings for API file nat64.api. diff --git a/binapi/nat66/nat66.ba.go b/binapi/nat66/nat66.ba.go index 2ce736a0..c53f8bf6 100644 --- a/binapi/nat66/nat66.ba.go +++ b/binapi/nat66/nat66.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nat66.api.json // Package nat66 contains generated bindings for API file nat66.api. diff --git a/binapi/nat_types/nat_types.ba.go b/binapi/nat_types/nat_types.ba.go index 9677d45e..e979b851 100644 --- a/binapi/nat_types/nat_types.ba.go +++ b/binapi/nat_types/nat_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nat_types.api.json // Package nat_types contains generated bindings for API file nat_types.api. diff --git a/binapi/npt66/npt66.ba.go b/binapi/npt66/npt66.ba.go new file mode 100644 index 00000000..ea0496f1 --- /dev/null +++ b/binapi/npt66/npt66.ba.go @@ -0,0 +1,129 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.9.0 +// VPP: 23.10-release +// source: plugins/npt66.api.json + +// Package npt66 contains generated bindings for API file npt66.api. +// +// Contents: +// - 2 messages +package npt66 + +import ( + api "go.fd.io/govpp/api" + interface_types "go.fd.io/govpp/binapi/interface_types" + ip_types "go.fd.io/govpp/binapi/ip_types" + codec "go.fd.io/govpp/codec" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the GoVPP api package it is being compiled against. +// A compilation error at this line likely means your copy of the +// GoVPP api package needs to be updated. +const _ = api.GoVppAPIPackageIsVersion2 + +const ( + APIFile = "npt66" + APIVersion = "0.0.1" + VersionCrc = 0x4e353b99 +) + +// // Copyright(c) 2023 Cisco Systems, Inc. +// Npt66BindingAddDel defines message 'npt66_binding_add_del'. +type Npt66BindingAddDel struct { + IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` + Internal ip_types.IP6Prefix `binapi:"ip6_prefix,name=internal" json:"internal,omitempty"` + External ip_types.IP6Prefix `binapi:"ip6_prefix,name=external" json:"external,omitempty"` +} + +func (m *Npt66BindingAddDel) Reset() { *m = Npt66BindingAddDel{} } +func (*Npt66BindingAddDel) GetMessageName() string { return "npt66_binding_add_del" } +func (*Npt66BindingAddDel) GetCrcString() string { return "8aa10a52" } +func (*Npt66BindingAddDel) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *Npt66BindingAddDel) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.IsAdd + size += 4 // m.SwIfIndex + size += 1 * 16 // m.Internal.Address + size += 1 // m.Internal.Len + size += 1 * 16 // m.External.Address + size += 1 // m.External.Len + return size +} +func (m *Npt66BindingAddDel) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBool(m.IsAdd) + buf.EncodeUint32(uint32(m.SwIfIndex)) + buf.EncodeBytes(m.Internal.Address[:], 16) + buf.EncodeUint8(m.Internal.Len) + buf.EncodeBytes(m.External.Address[:], 16) + buf.EncodeUint8(m.External.Len) + return buf.Bytes(), nil +} +func (m *Npt66BindingAddDel) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.IsAdd = buf.DecodeBool() + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + copy(m.Internal.Address[:], buf.DecodeBytes(16)) + m.Internal.Len = buf.DecodeUint8() + copy(m.External.Address[:], buf.DecodeBytes(16)) + m.External.Len = buf.DecodeUint8() + return nil +} + +// Npt66BindingAddDelReply defines message 'npt66_binding_add_del_reply'. +type Npt66BindingAddDelReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *Npt66BindingAddDelReply) Reset() { *m = Npt66BindingAddDelReply{} } +func (*Npt66BindingAddDelReply) GetMessageName() string { return "npt66_binding_add_del_reply" } +func (*Npt66BindingAddDelReply) GetCrcString() string { return "e8d4e804" } +func (*Npt66BindingAddDelReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *Npt66BindingAddDelReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *Npt66BindingAddDelReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *Npt66BindingAddDelReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + +func init() { file_npt66_binapi_init() } +func file_npt66_binapi_init() { + api.RegisterMessage((*Npt66BindingAddDel)(nil), "npt66_binding_add_del_8aa10a52") + api.RegisterMessage((*Npt66BindingAddDelReply)(nil), "npt66_binding_add_del_reply_e8d4e804") +} + +// Messages returns list of all messages in this module. +func AllMessages() []api.Message { + return []api.Message{ + (*Npt66BindingAddDel)(nil), + (*Npt66BindingAddDelReply)(nil), + } +} diff --git a/binapi/npt66/npt66_rpc.ba.go b/binapi/npt66/npt66_rpc.ba.go new file mode 100644 index 00000000..ed4816f6 --- /dev/null +++ b/binapi/npt66/npt66_rpc.ba.go @@ -0,0 +1,31 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. + +package npt66 + +import ( + "context" + + api "go.fd.io/govpp/api" +) + +// RPCService defines RPC service npt66. +type RPCService interface { + Npt66BindingAddDel(ctx context.Context, in *Npt66BindingAddDel) (*Npt66BindingAddDelReply, error) +} + +type serviceClient struct { + conn api.Connection +} + +func NewServiceClient(conn api.Connection) RPCService { + return &serviceClient{conn} +} + +func (c *serviceClient) Npt66BindingAddDel(ctx context.Context, in *Npt66BindingAddDel) (*Npt66BindingAddDelReply, error) { + out := new(Npt66BindingAddDelReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} diff --git a/binapi/nsh/nsh.ba.go b/binapi/nsh/nsh.ba.go index c2afded3..b62100f8 100644 --- a/binapi/nsh/nsh.ba.go +++ b/binapi/nsh/nsh.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nsh.api.json // Package nsh contains generated bindings for API file nsh.api. diff --git a/binapi/nsim/nsim.ba.go b/binapi/nsim/nsim.ba.go index 78c80623..630ba24d 100644 --- a/binapi/nsim/nsim.ba.go +++ b/binapi/nsim/nsim.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/nsim.api.json // Package nsim contains generated bindings for API file nsim.api. diff --git a/binapi/oddbuf/oddbuf.ba.go b/binapi/oddbuf/oddbuf.ba.go index 87d89925..c60b8583 100644 --- a/binapi/oddbuf/oddbuf.ba.go +++ b/binapi/oddbuf/oddbuf.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/oddbuf.api.json // Package oddbuf contains generated bindings for API file oddbuf.api. diff --git a/binapi/one/one.ba.go b/binapi/one/one.ba.go index 61e01784..64659d35 100644 --- a/binapi/one/one.ba.go +++ b/binapi/one/one.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/one.api.json // Package one contains generated bindings for API file one.api. diff --git a/binapi/p2p_ethernet/p2p_ethernet.ba.go b/binapi/p2p_ethernet/p2p_ethernet.ba.go index 5af4244a..1124bdf2 100644 --- a/binapi/p2p_ethernet/p2p_ethernet.ba.go +++ b/binapi/p2p_ethernet/p2p_ethernet.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/p2p_ethernet.api.json // Package p2p_ethernet contains generated bindings for API file p2p_ethernet.api. diff --git a/binapi/pci_types/pci_types.ba.go b/binapi/pci_types/pci_types.ba.go index 45f8b7cc..cfc491e8 100644 --- a/binapi/pci_types/pci_types.ba.go +++ b/binapi/pci_types/pci_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/pci_types.api.json // Package pci_types contains generated bindings for API file pci_types.api. diff --git a/binapi/pg/pg.ba.go b/binapi/pg/pg.ba.go index cba900b6..22d751dd 100644 --- a/binapi/pg/pg.ba.go +++ b/binapi/pg/pg.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/pg.api.json // Package pg contains generated bindings for API file pg.api. @@ -151,6 +151,7 @@ func (m *PgCaptureReply) Unmarshal(b []byte) error { // - gso_size - gso size on this interface // // PgCreateInterface defines message 'pg_create_interface'. +// Deprecated: the message will be removed in the future versions type PgCreateInterface struct { InterfaceID interface_types.InterfaceIndex `binapi:"interface_index,name=interface_id" json:"interface_id,omitempty"` GsoEnabled bool `binapi:"bool,name=gso_enabled" json:"gso_enabled,omitempty"` @@ -195,6 +196,7 @@ func (m *PgCreateInterface) Unmarshal(b []byte) error { // - retval - return value for request // // PgCreateInterfaceReply defines message 'pg_create_interface_reply'. +// Deprecated: the message will be removed in the future versions type PgCreateInterfaceReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` diff --git a/binapi/pipe/pipe.ba.go b/binapi/pipe/pipe.ba.go index 161e2255..2a7813f1 100644 --- a/binapi/pipe/pipe.ba.go +++ b/binapi/pipe/pipe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/pipe.api.json // Package pipe contains generated bindings for API file pipe.api. diff --git a/binapi/pnat/pnat.ba.go b/binapi/pnat/pnat.ba.go index 10717f0e..a42d71a6 100644 --- a/binapi/pnat/pnat.ba.go +++ b/binapi/pnat/pnat.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/pnat.api.json // Package pnat contains generated bindings for API file pnat.api. diff --git a/binapi/policer/policer.ba.go b/binapi/policer/policer.ba.go index 9868a2aa..ada8a6cb 100644 --- a/binapi/policer/policer.ba.go +++ b/binapi/policer/policer.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/policer.api.json // Package policer contains generated bindings for API file policer.api. diff --git a/binapi/policer_types/policer_types.ba.go b/binapi/policer_types/policer_types.ba.go index f64f5fd2..bc5e066c 100644 --- a/binapi/policer_types/policer_types.ba.go +++ b/binapi/policer_types/policer_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/policer_types.api.json // Package policer_types contains generated bindings for API file policer_types.api. diff --git a/binapi/pot/pot.ba.go b/binapi/pot/pot.ba.go index e0e80790..2ef6223e 100644 --- a/binapi/pot/pot.ba.go +++ b/binapi/pot/pot.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/pot.api.json // Package pot contains generated bindings for API file pot.api. diff --git a/binapi/pppoe/pppoe.ba.go b/binapi/pppoe/pppoe.ba.go index 331a7501..6af7aabe 100644 --- a/binapi/pppoe/pppoe.ba.go +++ b/binapi/pppoe/pppoe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/pppoe.api.json // Package pppoe contains generated bindings for API file pppoe.api. diff --git a/binapi/punt/punt.ba.go b/binapi/punt/punt.ba.go index 332ccf84..5a555561 100644 --- a/binapi/punt/punt.ba.go +++ b/binapi/punt/punt.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/punt.api.json // Package punt contains generated bindings for API file punt.api. diff --git a/binapi/qos/qos.ba.go b/binapi/qos/qos.ba.go index cac0e92a..81a54a34 100644 --- a/binapi/qos/qos.ba.go +++ b/binapi/qos/qos.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/qos.api.json // Package qos contains generated bindings for API file qos.api. diff --git a/binapi/rd_cp/rd_cp.ba.go b/binapi/rd_cp/rd_cp.ba.go index f3e45e1c..5577f2ab 100644 --- a/binapi/rd_cp/rd_cp.ba.go +++ b/binapi/rd_cp/rd_cp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/rd_cp.api.json // Package rd_cp contains generated bindings for API file rd_cp.api. diff --git a/binapi/rdma/rdma.ba.go b/binapi/rdma/rdma.ba.go index cd8d520e..67e13830 100644 --- a/binapi/rdma/rdma.ba.go +++ b/binapi/rdma/rdma.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/rdma.api.json // Package rdma contains generated bindings for API file rdma.api. diff --git a/binapi/session/session.ba.go b/binapi/session/session.ba.go index c9e432c6..c69dfb1f 100644 --- a/binapi/session/session.ba.go +++ b/binapi/session/session.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/session.api.json // Package session contains generated bindings for API file session.api. diff --git a/binapi/span/span.ba.go b/binapi/span/span.ba.go index 68a45187..74bb07eb 100644 --- a/binapi/span/span.ba.go +++ b/binapi/span/span.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/span.api.json // Package span contains generated bindings for API file span.api. diff --git a/binapi/sr/sr.ba.go b/binapi/sr/sr.ba.go index e06f4571..83c2a0fb 100644 --- a/binapi/sr/sr.ba.go +++ b/binapi/sr/sr.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/sr.api.json // Package sr contains generated bindings for API file sr.api. @@ -468,6 +468,7 @@ func (m *SrPoliciesDetails) Unmarshal(b []byte) error { // Dump the list of SR policies // SrPoliciesDump defines message 'sr_policies_dump'. +// Deprecated: the message will be removed in the future versions type SrPoliciesDump struct{} func (m *SrPoliciesDump) Reset() { *m = SrPoliciesDump{} } @@ -495,7 +496,6 @@ func (m *SrPoliciesDump) Unmarshal(b []byte) error { } // SrPoliciesV2Details defines message 'sr_policies_v2_details'. -// InProgress: the message form may change in the future versions type SrPoliciesV2Details struct { Bsid ip_types.IP6Address `binapi:"ip6_address,name=bsid" json:"bsid,omitempty"` EncapSrc ip_types.IP6Address `binapi:"ip6_address,name=encap_src" json:"encap_src,omitempty"` diff --git a/binapi/sr_mpls/sr_mpls.ba.go b/binapi/sr_mpls/sr_mpls.ba.go index 0cccf4b7..a484bf4b 100644 --- a/binapi/sr_mpls/sr_mpls.ba.go +++ b/binapi/sr_mpls/sr_mpls.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/sr_mpls.api.json // Package sr_mpls contains generated bindings for API file sr_mpls.api. diff --git a/binapi/sr_pt/sr_pt.ba.go b/binapi/sr_pt/sr_pt.ba.go index 69d1736d..6cdf24f4 100644 --- a/binapi/sr_pt/sr_pt.ba.go +++ b/binapi/sr_pt/sr_pt.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/sr_pt.api.json // Package sr_pt contains generated bindings for API file sr_pt.api. diff --git a/binapi/sr_types/sr_types.ba.go b/binapi/sr_types/sr_types.ba.go index d12f0011..1bca4102 100644 --- a/binapi/sr_types/sr_types.ba.go +++ b/binapi/sr_types/sr_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/sr_types.api.json // Package sr_types contains generated bindings for API file sr_types.api. diff --git a/binapi/stn/stn.ba.go b/binapi/stn/stn.ba.go index 26169568..4d0edc88 100644 --- a/binapi/stn/stn.ba.go +++ b/binapi/stn/stn.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/stn.api.json // Package stn contains generated bindings for API file stn.api. diff --git a/binapi/svs/svs.ba.go b/binapi/svs/svs.ba.go index 87a17e65..7228f7e4 100644 --- a/binapi/svs/svs.ba.go +++ b/binapi/svs/svs.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/svs.api.json // Package svs contains generated bindings for API file svs.api. diff --git a/binapi/syslog/syslog.ba.go b/binapi/syslog/syslog.ba.go index 4c83407a..3622e47d 100644 --- a/binapi/syslog/syslog.ba.go +++ b/binapi/syslog/syslog.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/syslog.api.json // Package syslog contains generated bindings for API file syslog.api. diff --git a/binapi/tapv2/tapv2.ba.go b/binapi/tapv2/tapv2.ba.go index c33c4237..8447dc5f 100644 --- a/binapi/tapv2/tapv2.ba.go +++ b/binapi/tapv2/tapv2.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/tapv2.api.json // Package tapv2 contains generated bindings for API file tapv2.api. @@ -264,6 +264,7 @@ func (m *SwInterfaceTapV2Dump) Unmarshal(b []byte) error { // - tag - tag // // TapCreateV2 defines message 'tap_create_v2'. +// Deprecated: the message will be removed in the future versions type TapCreateV2 struct { ID uint32 `binapi:"u32,name=id,default=4294967295" json:"id,omitempty"` UseRandomMac bool `binapi:"bool,name=use_random_mac,default=true" json:"use_random_mac,omitempty"` @@ -407,6 +408,7 @@ func (m *TapCreateV2) Unmarshal(b []byte) error { // - sw_if_index - software index allocated for the new tap interface // // TapCreateV2Reply defines message 'tap_create_v2_reply'. +// Deprecated: the message will be removed in the future versions type TapCreateV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` diff --git a/binapi/tcp/tcp.ba.go b/binapi/tcp/tcp.ba.go index 07117bc2..37d013e6 100644 --- a/binapi/tcp/tcp.ba.go +++ b/binapi/tcp/tcp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/tcp.api.json // Package tcp contains generated bindings for API file tcp.api. diff --git a/binapi/teib/teib.ba.go b/binapi/teib/teib.ba.go index 257bdbbe..d375ea8b 100644 --- a/binapi/teib/teib.ba.go +++ b/binapi/teib/teib.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/teib.api.json // Package teib contains generated bindings for API file teib.api. diff --git a/binapi/tls_openssl/tls_openssl.ba.go b/binapi/tls_openssl/tls_openssl.ba.go index 2ceb39e5..5dd00cdc 100644 --- a/binapi/tls_openssl/tls_openssl.ba.go +++ b/binapi/tls_openssl/tls_openssl.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/tls_openssl.api.json // Package tls_openssl contains generated bindings for API file tls_openssl.api. diff --git a/binapi/trace/trace.ba.go b/binapi/trace/trace.ba.go index 44bbbb76..bb5d5dee 100644 --- a/binapi/trace/trace.ba.go +++ b/binapi/trace/trace.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/trace.api.json // Package trace contains generated bindings for API file trace.api. diff --git a/binapi/tracedump/tracedump.ba.go b/binapi/tracedump/tracedump.ba.go index 2ed7e88a..0a29919a 100644 --- a/binapi/tracedump/tracedump.ba.go +++ b/binapi/tracedump/tracedump.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/tracedump.api.json // Package tracedump contains generated bindings for API file tracedump.api. // // Contents: // - 1 enum -// - 13 messages +// - 17 messages package tracedump import ( @@ -27,7 +27,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "tracedump" APIVersion = "0.2.0" - VersionCrc = 0x1ca3fc2f + VersionCrc = 0x56abf80a ) // TraceFilterFlag defines enum 'trace_filter_flag'. @@ -436,6 +436,136 @@ func (m *TraceDumpReply) Unmarshal(b []byte) error { return nil } +// TraceFilterFunctionDetails defines message 'trace_filter_function_details'. +type TraceFilterFunctionDetails struct { + Selected bool `binapi:"bool,name=selected" json:"selected,omitempty"` + Name string `binapi:"string[],name=name" json:"name,omitempty"` +} + +func (m *TraceFilterFunctionDetails) Reset() { *m = TraceFilterFunctionDetails{} } +func (*TraceFilterFunctionDetails) GetMessageName() string { return "trace_filter_function_details" } +func (*TraceFilterFunctionDetails) GetCrcString() string { return "28821359" } +func (*TraceFilterFunctionDetails) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *TraceFilterFunctionDetails) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.Selected + size += 4 + len(m.Name) // m.Name + return size +} +func (m *TraceFilterFunctionDetails) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBool(m.Selected) + buf.EncodeString(m.Name, 0) + return buf.Bytes(), nil +} +func (m *TraceFilterFunctionDetails) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Selected = buf.DecodeBool() + m.Name = buf.DecodeString(0) + return nil +} + +// TraceFilterFunctionDump defines message 'trace_filter_function_dump'. +type TraceFilterFunctionDump struct{} + +func (m *TraceFilterFunctionDump) Reset() { *m = TraceFilterFunctionDump{} } +func (*TraceFilterFunctionDump) GetMessageName() string { return "trace_filter_function_dump" } +func (*TraceFilterFunctionDump) GetCrcString() string { return "51077d14" } +func (*TraceFilterFunctionDump) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *TraceFilterFunctionDump) Size() (size int) { + if m == nil { + return 0 + } + return size +} +func (m *TraceFilterFunctionDump) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + return buf.Bytes(), nil +} +func (m *TraceFilterFunctionDump) Unmarshal(b []byte) error { + return nil +} + +// TraceSetFilterFunction defines message 'trace_set_filter_function'. +type TraceSetFilterFunction struct { + FilterFunctionName string `binapi:"string[],name=filter_function_name" json:"filter_function_name,omitempty"` +} + +func (m *TraceSetFilterFunction) Reset() { *m = TraceSetFilterFunction{} } +func (*TraceSetFilterFunction) GetMessageName() string { return "trace_set_filter_function" } +func (*TraceSetFilterFunction) GetCrcString() string { return "616abb92" } +func (*TraceSetFilterFunction) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *TraceSetFilterFunction) Size() (size int) { + if m == nil { + return 0 + } + size += 4 + len(m.FilterFunctionName) // m.FilterFunctionName + return size +} +func (m *TraceSetFilterFunction) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeString(m.FilterFunctionName, 0) + return buf.Bytes(), nil +} +func (m *TraceSetFilterFunction) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.FilterFunctionName = buf.DecodeString(0) + return nil +} + +// TraceSetFilterFunctionReply defines message 'trace_set_filter_function_reply'. +type TraceSetFilterFunctionReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *TraceSetFilterFunctionReply) Reset() { *m = TraceSetFilterFunctionReply{} } +func (*TraceSetFilterFunctionReply) GetMessageName() string { return "trace_set_filter_function_reply" } +func (*TraceSetFilterFunctionReply) GetCrcString() string { return "e8d4e804" } +func (*TraceSetFilterFunctionReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *TraceSetFilterFunctionReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *TraceSetFilterFunctionReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *TraceSetFilterFunctionReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // trace_set_filters // - flag - One of the trace_filter_flag values // - node_index = The node-index to include/exclude @@ -633,6 +763,10 @@ func file_tracedump_binapi_init() { api.RegisterMessage((*TraceDetails)(nil), "trace_details_1553e9eb") api.RegisterMessage((*TraceDump)(nil), "trace_dump_c7d6681f") api.RegisterMessage((*TraceDumpReply)(nil), "trace_dump_reply_e0e87f9d") + api.RegisterMessage((*TraceFilterFunctionDetails)(nil), "trace_filter_function_details_28821359") + api.RegisterMessage((*TraceFilterFunctionDump)(nil), "trace_filter_function_dump_51077d14") + api.RegisterMessage((*TraceSetFilterFunction)(nil), "trace_set_filter_function_616abb92") + api.RegisterMessage((*TraceSetFilterFunctionReply)(nil), "trace_set_filter_function_reply_e8d4e804") api.RegisterMessage((*TraceSetFilters)(nil), "trace_set_filters_f522b44a") api.RegisterMessage((*TraceSetFiltersReply)(nil), "trace_set_filters_reply_e8d4e804") api.RegisterMessage((*TraceV2Details)(nil), "trace_v2_details_91f87d52") @@ -651,6 +785,10 @@ func AllMessages() []api.Message { (*TraceDetails)(nil), (*TraceDump)(nil), (*TraceDumpReply)(nil), + (*TraceFilterFunctionDetails)(nil), + (*TraceFilterFunctionDump)(nil), + (*TraceSetFilterFunction)(nil), + (*TraceSetFilterFunctionReply)(nil), (*TraceSetFilters)(nil), (*TraceSetFiltersReply)(nil), (*TraceV2Details)(nil), diff --git a/binapi/tracedump/tracedump_rpc.ba.go b/binapi/tracedump/tracedump_rpc.ba.go index 56ee6f8f..609308e7 100644 --- a/binapi/tracedump/tracedump_rpc.ba.go +++ b/binapi/tracedump/tracedump_rpc.ba.go @@ -17,6 +17,8 @@ type RPCService interface { TraceClearCache(ctx context.Context, in *TraceClearCache) (*TraceClearCacheReply, error) TraceClearCapture(ctx context.Context, in *TraceClearCapture) (*TraceClearCaptureReply, error) TraceDump(ctx context.Context, in *TraceDump) (RPCService_TraceDumpClient, error) + TraceFilterFunctionDump(ctx context.Context, in *TraceFilterFunctionDump) (RPCService_TraceFilterFunctionDumpClient, error) + TraceSetFilterFunction(ctx context.Context, in *TraceSetFilterFunction) (*TraceSetFilterFunctionReply, error) TraceSetFilters(ctx context.Context, in *TraceSetFilters) (*TraceSetFiltersReply, error) TraceV2Dump(ctx context.Context, in *TraceV2Dump) (RPCService_TraceV2DumpClient, error) } @@ -100,6 +102,58 @@ func (c *serviceClient_TraceDumpClient) Recv() (*TraceDetails, *TraceDumpReply, } } +func (c *serviceClient) TraceFilterFunctionDump(ctx context.Context, in *TraceFilterFunctionDump) (RPCService_TraceFilterFunctionDumpClient, error) { + stream, err := c.conn.NewStream(ctx) + if err != nil { + return nil, err + } + x := &serviceClient_TraceFilterFunctionDumpClient{stream} + if err := x.Stream.SendMsg(in); err != nil { + return nil, err + } + if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil { + return nil, err + } + return x, nil +} + +type RPCService_TraceFilterFunctionDumpClient interface { + Recv() (*TraceFilterFunctionDetails, error) + api.Stream +} + +type serviceClient_TraceFilterFunctionDumpClient struct { + api.Stream +} + +func (c *serviceClient_TraceFilterFunctionDumpClient) Recv() (*TraceFilterFunctionDetails, error) { + msg, err := c.Stream.RecvMsg() + if err != nil { + return nil, err + } + switch m := msg.(type) { + case *TraceFilterFunctionDetails: + return m, nil + case *memclnt.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) + } +} + +func (c *serviceClient) TraceSetFilterFunction(ctx context.Context, in *TraceSetFilterFunction) (*TraceSetFilterFunctionReply, error) { + out := new(TraceSetFilterFunctionReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} + func (c *serviceClient) TraceSetFilters(ctx context.Context, in *TraceSetFilters) (*TraceSetFiltersReply, error) { out := new(TraceSetFiltersReply) err := c.conn.Invoke(ctx, in, out) diff --git a/binapi/tracenode/tracenode.ba.go b/binapi/tracenode/tracenode.ba.go new file mode 100644 index 00000000..594a4768 --- /dev/null +++ b/binapi/tracenode/tracenode.ba.go @@ -0,0 +1,122 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.9.0 +// VPP: 23.10-release +// source: plugins/tracenode.api.json + +// Package tracenode contains generated bindings for API file tracenode.api. +// +// Contents: +// - 2 messages +package tracenode + +import ( + api "go.fd.io/govpp/api" + interface_types "go.fd.io/govpp/binapi/interface_types" + codec "go.fd.io/govpp/codec" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the GoVPP api package it is being compiled against. +// A compilation error at this line likely means your copy of the +// GoVPP api package needs to be updated. +const _ = api.GoVppAPIPackageIsVersion2 + +const ( + APIFile = "tracenode" + APIVersion = "0.1.0" + VersionCrc = 0xdbc1eb27 +) + +// Enable/disable trace filtering feature +// - sw_if_index - interface on which to enable/disable trace filtering feature +// - is_pcap - if non-zero enable the feature for pcap capture, else for trace +// - enable - if non-zero then enable the feature, else disable it +// +// TracenodeEnableDisable defines message 'tracenode_enable_disable'. +type TracenodeEnableDisable struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` + IsPcap bool `binapi:"bool,name=is_pcap,default=false" json:"is_pcap,omitempty"` + Enable bool `binapi:"bool,name=enable,default=true" json:"enable,omitempty"` +} + +func (m *TracenodeEnableDisable) Reset() { *m = TracenodeEnableDisable{} } +func (*TracenodeEnableDisable) GetMessageName() string { return "tracenode_enable_disable" } +func (*TracenodeEnableDisable) GetCrcString() string { return "4013643c" } +func (*TracenodeEnableDisable) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *TracenodeEnableDisable) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + size += 1 // m.IsPcap + size += 1 // m.Enable + return size +} +func (m *TracenodeEnableDisable) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + buf.EncodeBool(m.IsPcap) + buf.EncodeBool(m.Enable) + return buf.Bytes(), nil +} +func (m *TracenodeEnableDisable) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + m.IsPcap = buf.DecodeBool() + m.Enable = buf.DecodeBool() + return nil +} + +// TracenodeEnableDisableReply defines message 'tracenode_enable_disable_reply'. +type TracenodeEnableDisableReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *TracenodeEnableDisableReply) Reset() { *m = TracenodeEnableDisableReply{} } +func (*TracenodeEnableDisableReply) GetMessageName() string { return "tracenode_enable_disable_reply" } +func (*TracenodeEnableDisableReply) GetCrcString() string { return "e8d4e804" } +func (*TracenodeEnableDisableReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *TracenodeEnableDisableReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *TracenodeEnableDisableReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + return buf.Bytes(), nil +} +func (m *TracenodeEnableDisableReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + +func init() { file_tracenode_binapi_init() } +func file_tracenode_binapi_init() { + api.RegisterMessage((*TracenodeEnableDisable)(nil), "tracenode_enable_disable_4013643c") + api.RegisterMessage((*TracenodeEnableDisableReply)(nil), "tracenode_enable_disable_reply_e8d4e804") +} + +// Messages returns list of all messages in this module. +func AllMessages() []api.Message { + return []api.Message{ + (*TracenodeEnableDisable)(nil), + (*TracenodeEnableDisableReply)(nil), + } +} diff --git a/binapi/tracenode/tracenode_rpc.ba.go b/binapi/tracenode/tracenode_rpc.ba.go new file mode 100644 index 00000000..e930619e --- /dev/null +++ b/binapi/tracenode/tracenode_rpc.ba.go @@ -0,0 +1,31 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. + +package tracenode + +import ( + "context" + + api "go.fd.io/govpp/api" +) + +// RPCService defines RPC service tracenode. +type RPCService interface { + TracenodeEnableDisable(ctx context.Context, in *TracenodeEnableDisable) (*TracenodeEnableDisableReply, error) +} + +type serviceClient struct { + conn api.Connection +} + +func NewServiceClient(conn api.Connection) RPCService { + return &serviceClient{conn} +} + +func (c *serviceClient) TracenodeEnableDisable(ctx context.Context, in *TracenodeEnableDisable) (*TracenodeEnableDisableReply, error) { + out := new(TracenodeEnableDisableReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, api.RetvalToVPPApiError(out.Retval) +} diff --git a/binapi/tunnel_types/tunnel_types.ba.go b/binapi/tunnel_types/tunnel_types.ba.go index 3df68927..47e4614e 100644 --- a/binapi/tunnel_types/tunnel_types.ba.go +++ b/binapi/tunnel_types/tunnel_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/tunnel_types.api.json // Package tunnel_types contains generated bindings for API file tunnel_types.api. diff --git a/binapi/udp/udp.ba.go b/binapi/udp/udp.ba.go index a4e934b1..c63d172a 100644 --- a/binapi/udp/udp.ba.go +++ b/binapi/udp/udp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/udp.api.json // Package udp contains generated bindings for API file udp.api. diff --git a/binapi/udp_ping/udp_ping.ba.go b/binapi/udp_ping/udp_ping.ba.go index f98a71de..76fff4e5 100644 --- a/binapi/udp_ping/udp_ping.ba.go +++ b/binapi/udp_ping/udp_ping.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/udp_ping.api.json // Package udp_ping contains generated bindings for API file udp_ping.api. diff --git a/binapi/urpf/urpf.ba.go b/binapi/urpf/urpf.ba.go index 7bb909e6..0737c78c 100644 --- a/binapi/urpf/urpf.ba.go +++ b/binapi/urpf/urpf.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/urpf.api.json // Package urpf contains generated bindings for API file urpf.api. diff --git a/binapi/vhost_user/vhost_user.ba.go b/binapi/vhost_user/vhost_user.ba.go index 387b5a41..2b16cb58 100644 --- a/binapi/vhost_user/vhost_user.ba.go +++ b/binapi/vhost_user/vhost_user.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/vhost_user.api.json // Package vhost_user contains generated bindings for API file vhost_user.api. diff --git a/binapi/virtio/virtio.ba.go b/binapi/virtio/virtio.ba.go index 0baf5b1e..b589b4cb 100644 --- a/binapi/virtio/virtio.ba.go +++ b/binapi/virtio/virtio.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/virtio.api.json // Package virtio contains generated bindings for API file virtio.api. diff --git a/binapi/virtio_types/virtio_types.ba.go b/binapi/virtio_types/virtio_types.ba.go index 7dd58e37..39b8e523 100644 --- a/binapi/virtio_types/virtio_types.ba.go +++ b/binapi/virtio_types/virtio_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/virtio_types.api.json // Package virtio_types contains generated bindings for API file virtio_types.api. diff --git a/binapi/vlib/vlib.ba.go b/binapi/vlib/vlib.ba.go index d1f7ce67..b85f8f89 100644 --- a/binapi/vlib/vlib.ba.go +++ b/binapi/vlib/vlib.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/vlib.api.json // Package vlib contains generated bindings for API file vlib.api. diff --git a/binapi/vmxnet3/vmxnet3.ba.go b/binapi/vmxnet3/vmxnet3.ba.go index 80faf412..858238a9 100644 --- a/binapi/vmxnet3/vmxnet3.ba.go +++ b/binapi/vmxnet3/vmxnet3.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/vmxnet3.api.json // Package vmxnet3 contains generated bindings for API file vmxnet3.api. diff --git a/binapi/vpe/vpe.ba.go b/binapi/vpe/vpe.ba.go index 459ccec8..1061c26b 100644 --- a/binapi/vpe/vpe.ba.go +++ b/binapi/vpe/vpe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/vpe.api.json // Package vpe contains generated bindings for API file vpe.api. diff --git a/binapi/vpe_types/vpe_types.ba.go b/binapi/vpe_types/vpe_types.ba.go index 81e29851..0c18fbe6 100644 --- a/binapi/vpe_types/vpe_types.ba.go +++ b/binapi/vpe_types/vpe_types.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/vpe_types.api.json // Package vpe_types contains generated bindings for API file vpe_types.api. diff --git a/binapi/vrrp/vrrp.ba.go b/binapi/vrrp/vrrp.ba.go index 6f629f27..3f6b4834 100644 --- a/binapi/vrrp/vrrp.ba.go +++ b/binapi/vrrp/vrrp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/vrrp.api.json // Package vrrp contains generated bindings for API file vrrp.api. diff --git a/binapi/vxlan/vxlan.ba.go b/binapi/vxlan/vxlan.ba.go index 9786f959..c0a3809f 100644 --- a/binapi/vxlan/vxlan.ba.go +++ b/binapi/vxlan/vxlan.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/vxlan.api.json // Package vxlan contains generated bindings for API file vxlan.api. @@ -121,6 +121,7 @@ func (m *SwInterfaceSetVxlanBypassReply) Unmarshal(b []byte) error { // - vni - The VXLAN Network Identifier, uint24 // // VxlanAddDelTunnel defines message 'vxlan_add_del_tunnel'. +// Deprecated: the message will be removed in the future versions type VxlanAddDelTunnel struct { IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"` Instance uint32 `binapi:"u32,name=instance" json:"instance,omitempty"` @@ -188,6 +189,7 @@ func (m *VxlanAddDelTunnel) Unmarshal(b []byte) error { } // VxlanAddDelTunnelReply defines message 'vxlan_add_del_tunnel_reply'. +// Deprecated: the message will be removed in the future versions type VxlanAddDelTunnelReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -237,6 +239,7 @@ func (m *VxlanAddDelTunnelReply) Unmarshal(b []byte) error { // - vni - The VXLAN Network Identifier, uint24 // // VxlanAddDelTunnelV2 defines message 'vxlan_add_del_tunnel_v2'. +// Deprecated: the message will be removed in the future versions type VxlanAddDelTunnelV2 struct { IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"` Instance uint32 `binapi:"u32,name=instance,default=4294967295" json:"instance,omitempty"` @@ -312,6 +315,7 @@ func (m *VxlanAddDelTunnelV2) Unmarshal(b []byte) error { } // VxlanAddDelTunnelV2Reply defines message 'vxlan_add_del_tunnel_v2_reply'. +// Deprecated: the message will be removed in the future versions type VxlanAddDelTunnelV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -557,6 +561,7 @@ func (m *VxlanOffloadRxReply) Unmarshal(b []byte) error { } // VxlanTunnelDetails defines message 'vxlan_tunnel_details'. +// Deprecated: the message will be removed in the future versions type VxlanTunnelDetails struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Instance uint32 `binapi:"u32,name=instance" json:"instance,omitempty"` @@ -624,6 +629,7 @@ func (m *VxlanTunnelDetails) Unmarshal(b []byte) error { } // VxlanTunnelDump defines message 'vxlan_tunnel_dump'. +// Deprecated: the message will be removed in the future versions type VxlanTunnelDump struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` } diff --git a/binapi/vxlan_gpe/vxlan_gpe.ba.go b/binapi/vxlan_gpe/vxlan_gpe.ba.go index 248f49bc..7634fd8f 100644 --- a/binapi/vxlan_gpe/vxlan_gpe.ba.go +++ b/binapi/vxlan_gpe/vxlan_gpe.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: core/vxlan_gpe.api.json // Package vxlan_gpe contains generated bindings for API file vxlan_gpe.api. diff --git a/binapi/vxlan_gpe_ioam_export/vxlan_gpe_ioam_export.ba.go b/binapi/vxlan_gpe_ioam_export/vxlan_gpe_ioam_export.ba.go index 87f8ff49..92f089e8 100644 --- a/binapi/vxlan_gpe_ioam_export/vxlan_gpe_ioam_export.ba.go +++ b/binapi/vxlan_gpe_ioam_export/vxlan_gpe_ioam_export.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/vxlan_gpe_ioam_export.api.json // Package vxlan_gpe_ioam_export contains generated bindings for API file vxlan_gpe_ioam_export.api. diff --git a/binapi/wireguard/wireguard.ba.go b/binapi/wireguard/wireguard.ba.go index aa471dbe..5d306035 100644 --- a/binapi/wireguard/wireguard.ba.go +++ b/binapi/wireguard/wireguard.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.8.0 -// VPP: 23.06-release +// binapi-generator: v0.9.0 +// VPP: 23.10-release // source: plugins/wireguard.api.json // Package wireguard contains generated bindings for API file wireguard.api. @@ -29,7 +29,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "wireguard" - APIVersion = "0.3.0" + APIVersion = "1.3.0" VersionCrc = 0x5d8f9252 )