X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Ffib_types%2Ffib_types.ba.go;fp=examples%2Fbinapi%2Ffib_types%2Ffib_types.ba.go;h=eb6759708700cf6d853a6381017b4e08d7ed20b6;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=9050e851d3f614acece770296d8f6955d00fbb68;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/examples/binapi/fib_types/fib_types.ba.go b/binapi/fib_types/fib_types.ba.go similarity index 70% rename from examples/binapi/fib_types/fib_types.ba.go rename to binapi/fib_types/fib_types.ba.go index 9050e85..eb67597 100644 --- a/examples/binapi/fib_types/fib_types.ba.go +++ b/binapi/fib_types/fib_types.ba.go @@ -4,53 +4,27 @@ // VPP: 20.05-release // source: /usr/share/vpp/api/core/fib_types.api.json -/* -Package fib_types contains generated code for VPP API file fib_types.api (2.0.0). - -It consists of: - 5 aliases - 7 enums - 9 types - 1 union -*/ +// Package fib_types contains generated bindings for API file fib_types.api. +// +// Contents: +// 3 enums +// 3 structs +// package fib_types import ( - "bytes" - "context" - "encoding/binary" - "fmt" - "io" - "math" - "net" - "strconv" - "strings" - api "git.fd.io/govpp.git/api" - codec "git.fd.io/govpp.git/codec" - struc "github.com/lunixbochs/struc" - - ip_types "git.fd.io/govpp.git/examples/binapi/ip_types" + ip_types "git.fd.io/govpp.git/binapi/ip_types" + "strconv" ) // 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 // please upgrade the GoVPP api package - -const ( - // ModuleName is the name of this module. - ModuleName = "fib_types" - // APIVersion is the API version of this module. - APIVersion = "2.0.0" - // VersionCrc is the CRC of this module. - VersionCrc = 0xd6a5938 -) - -type AddressFamily = ip_types.AddressFamily +const _ = api.GoVppAPIPackageIsVersion2 -// FibPathFlags represents VPP binary API enum 'fib_path_flags'. +// FibPathFlags defines enum 'fib_path_flags'. type FibPathFlags uint32 const ( @@ -80,10 +54,29 @@ func (x FibPathFlags) String() string { if ok { return s } - return "FibPathFlags(" + strconv.Itoa(int(x)) + ")" + str := func(n uint32) string { + s, ok := FibPathFlags_name[uint32(n)] + if ok { + return s + } + return "FibPathFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<