From debc52dea8a81417bb08ca5bb934c7876b6d65e0 Mon Sep 17 00:00:00 2001 From: mhalaj1 Date: Thu, 26 Aug 2021 13:10:48 +0200 Subject: regenerate binapi Signed-off-by: mhalaj1 Change-Id: I9bb6a5ca00aa542128bde0bfbbba7b57b9f16ed2 --- binapi/ip/ip.ba.go | 1381 ++++++++++++++++++++++++++++++++++++++++++++---- binapi/ip/ip_rpc.ba.go | 157 ++++++ 2 files changed, 1437 insertions(+), 101 deletions(-) (limited to 'binapi/ip') diff --git a/binapi/ip/ip.ba.go b/binapi/ip/ip.ba.go index ce8278c..fa9d1a0 100644 --- a/binapi/ip/ip.ba.go +++ b/binapi/ip/ip.ba.go @@ -1,15 +1,15 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0 -// VPP: 20.05.1-release +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release // source: /usr/share/vpp/api/core/ip.api.json // Package ip contains generated bindings for API file ip.api. // // Contents: -// 1 enum -// 4 structs -// 60 messages +// 2 enums +// 6 structs +// 81 messages // package ip @@ -33,8 +33,8 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ip" - APIVersion = "3.0.1" - VersionCrc = 0x765d74b1 + APIVersion = "3.1.0" + VersionCrc = 0x972432b4 ) // IPReassType defines enum 'ip_reass_type'. @@ -64,14 +64,87 @@ func (x IPReassType) String() string { return "IPReassType(" + strconv.Itoa(int(x)) + ")" } +// IPFlowHashConfig defines enum 'ip_flow_hash_config'. +type IPFlowHashConfig uint32 + +const ( + IP_API_FLOW_HASH_SRC_IP IPFlowHashConfig = 1 + IP_API_FLOW_HASH_DST_IP IPFlowHashConfig = 2 + IP_API_FLOW_HASH_SRC_PORT IPFlowHashConfig = 4 + IP_API_FLOW_HASH_DST_PORT IPFlowHashConfig = 8 + IP_API_FLOW_HASH_PROTO IPFlowHashConfig = 16 + IP_API_FLOW_HASH_REVERSE IPFlowHashConfig = 32 + IP_API_FLOW_HASH_SYMETRIC IPFlowHashConfig = 64 + IP_API_FLOW_HASH_FLOW_LABEL IPFlowHashConfig = 128 +) + +var ( + IPFlowHashConfig_name = map[uint32]string{ + 1: "IP_API_FLOW_HASH_SRC_IP", + 2: "IP_API_FLOW_HASH_DST_IP", + 4: "IP_API_FLOW_HASH_SRC_PORT", + 8: "IP_API_FLOW_HASH_DST_PORT", + 16: "IP_API_FLOW_HASH_PROTO", + 32: "IP_API_FLOW_HASH_REVERSE", + 64: "IP_API_FLOW_HASH_SYMETRIC", + 128: "IP_API_FLOW_HASH_FLOW_LABEL", + } + IPFlowHashConfig_value = map[string]uint32{ + "IP_API_FLOW_HASH_SRC_IP": 1, + "IP_API_FLOW_HASH_DST_IP": 2, + "IP_API_FLOW_HASH_SRC_PORT": 4, + "IP_API_FLOW_HASH_DST_PORT": 8, + "IP_API_FLOW_HASH_PROTO": 16, + "IP_API_FLOW_HASH_REVERSE": 32, + "IP_API_FLOW_HASH_SYMETRIC": 64, + "IP_API_FLOW_HASH_FLOW_LABEL": 128, + } +) + +func (x IPFlowHashConfig) String() string { + s, ok := IPFlowHashConfig_name[uint32(x)] + if ok { + return s + } + str := func(n uint32) string { + s, ok := IPFlowHashConfig_name[uint32(n)] + if ok { + return s + } + return "IPFlowHashConfig(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<