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/cnat/cnat.ba.go | 1213 ++++++++++++++++++++++++++++++++++++++++++++ binapi/cnat/cnat_rpc.ba.go | 184 +++++++ 2 files changed, 1397 insertions(+) create mode 100644 binapi/cnat/cnat.ba.go create mode 100644 binapi/cnat/cnat_rpc.ba.go (limited to 'binapi/cnat') diff --git a/binapi/cnat/cnat.ba.go b/binapi/cnat/cnat.ba.go new file mode 100644 index 0000000..735aaeb --- /dev/null +++ b/binapi/cnat/cnat.ba.go @@ -0,0 +1,1213 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release +// source: /usr/share/vpp/api/plugins/cnat.api.json + +// Package cnat contains generated bindings for API file cnat.api. +// +// Contents: +// 5 enums +// 4 structs +// 20 messages +// +package cnat + +import ( + "strconv" + + api "git.fd.io/govpp.git/api" + _ "git.fd.io/govpp.git/binapi/fib_types" + interface_types "git.fd.io/govpp.git/binapi/interface_types" + ip_types "git.fd.io/govpp.git/binapi/ip_types" + codec "git.fd.io/govpp.git/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 = "cnat" + APIVersion = "0.2.0" + VersionCrc = 0xfd05573b +) + +// CnatEndpointTupleFlags defines enum 'cnat_endpoint_tuple_flags'. +type CnatEndpointTupleFlags uint8 + +const ( + CNAT_EPT_NO_NAT CnatEndpointTupleFlags = 1 +) + +var ( + CnatEndpointTupleFlags_name = map[uint8]string{ + 1: "CNAT_EPT_NO_NAT", + } + CnatEndpointTupleFlags_value = map[string]uint8{ + "CNAT_EPT_NO_NAT": 1, + } +) + +func (x CnatEndpointTupleFlags) String() string { + s, ok := CnatEndpointTupleFlags_name[uint8(x)] + if ok { + return s + } + str := func(n uint8) string { + s, ok := CnatEndpointTupleFlags_name[uint8(n)] + if ok { + return s + } + return "CnatEndpointTupleFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint8(0); i <= 8; i++ { + val := uint8(x) + if val&(1<