X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip_neighbor%2Fip_neighbor.ba.go;h=45b7464f0394b737a130d49a8ad1311b92645e06;hb=66b2e881b96d9eff429d8136129f194a1d17da87;hp=2ece5ee6c5ae0d7bf86ab08e2c427f17973da3bf;hpb=c94a962279858fb13eaacc689f47aed358373e44;p=govpp.git diff --git a/binapi/ip_neighbor/ip_neighbor.ba.go b/binapi/ip_neighbor/ip_neighbor.ba.go index 2ece5ee..45b7464 100644 --- a/binapi/ip_neighbor/ip_neighbor.ba.go +++ b/binapi/ip_neighbor/ip_neighbor.ba.go @@ -1,14 +1,15 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.5.0 +// VPP: 22.02-release +// source: /usr/share/vpp/api/core/ip_neighbor.api.json // Package ip_neighbor contains generated bindings for API file ip_neighbor.api. // // Contents: -// 1 enum +// 2 enums // 1 struct -// 15 messages +// 18 messages // package ip_neighbor @@ -31,9 +32,55 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "ip_neighbor" APIVersion = "1.0.0" - VersionCrc = 0xe6512b94 + VersionCrc = 0xfde4a69a ) +// IPNeighborEventFlags defines enum 'ip_neighbor_event_flags'. +type IPNeighborEventFlags uint32 + +const ( + IP_NEIGHBOR_API_EVENT_FLAG_ADDED IPNeighborEventFlags = 1 + IP_NEIGHBOR_API_EVENT_FLAG_REMOVED IPNeighborEventFlags = 2 +) + +var ( + IPNeighborEventFlags_name = map[uint32]string{ + 1: "IP_NEIGHBOR_API_EVENT_FLAG_ADDED", + 2: "IP_NEIGHBOR_API_EVENT_FLAG_REMOVED", + } + IPNeighborEventFlags_value = map[string]uint32{ + "IP_NEIGHBOR_API_EVENT_FLAG_ADDED": 1, + "IP_NEIGHBOR_API_EVENT_FLAG_REMOVED": 2, + } +) + +func (x IPNeighborEventFlags) String() string { + s, ok := IPNeighborEventFlags_name[uint32(x)] + if ok { + return s + } + str := func(n uint32) string { + s, ok := IPNeighborEventFlags_name[uint32(n)] + if ok { + return s + } + return "IPNeighborEventFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<