X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Finterface_types%2Finterface_types.ba.go;fp=examples%2Fbinapi%2Finterface_types%2Finterface_types.ba.go;h=607dc9b8e6296a0deddee99651276b48f275a495;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=1c0a72cecad7a41264447b0b0daa6aea35e80baf;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/examples/binapi/interface_types/interface_types.ba.go b/binapi/interface_types/interface_types.ba.go similarity index 77% rename from examples/binapi/interface_types/interface_types.ba.go rename to binapi/interface_types/interface_types.ba.go index 1c0a72c..607dc9b 100644 --- a/examples/binapi/interface_types/interface_types.ba.go +++ b/binapi/interface_types/interface_types.ba.go @@ -4,47 +4,26 @@ // VPP: 20.05-release // source: /usr/share/vpp/api/core/interface_types.api.json -/* -Package interface_types contains generated code for VPP API file interface_types.api (). - -It consists of: - 1 alias - 6 enums -*/ +// Package interface_types contains generated bindings for API file interface_types.api. +// +// Contents: +// 1 alias +// 6 enums +// package interface_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" + "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 = "interface_types" - // APIVersion is the API version of this module. - APIVersion = "" - // VersionCrc is the CRC of this module. - VersionCrc = 0x23822dac -) +const _ = api.GoVppAPIPackageIsVersion2 -// IfStatusFlags represents VPP binary API enum 'if_status_flags'. +// IfStatusFlags defines enum 'if_status_flags'. type IfStatusFlags uint32 const ( @@ -68,10 +47,29 @@ func (x IfStatusFlags) String() string { if ok { return s } - return "IfStatusFlags(" + strconv.Itoa(int(x)) + ")" + str := func(n uint32) string { + s, ok := IfStatusFlags_name[uint32(n)] + if ok { + return s + } + return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<