X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fip_neighbor%2Fip_neighbor.ba.go;fp=binapi%2Fip_neighbor%2Fip_neighbor.ba.go;h=60df4cc2aa857e80cbc8f2adc0f6a45a3edd4bc7;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=0000000000000000000000000000000000000000;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/binapi/ip_neighbor/ip_neighbor.ba.go b/binapi/ip_neighbor/ip_neighbor.ba.go new file mode 100644 index 0000000..60df4cc --- /dev/null +++ b/binapi/ip_neighbor/ip_neighbor.ba.go @@ -0,0 +1,747 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.4.0-dev +// VPP: 20.05-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 +// 1 struct +// 15 messages +// +package ip_neighbor + +import ( + api "git.fd.io/govpp.git/api" + ethernet_types "git.fd.io/govpp.git/binapi/ethernet_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" + "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 + +const ( + APIFile = "ip_neighbor" + APIVersion = "1.0.0" + VersionCrc = 0xe6512b94 +) + +// IPNeighborFlags defines enum 'ip_neighbor_flags'. +type IPNeighborFlags uint8 + +const ( + IP_API_NEIGHBOR_FLAG_NONE IPNeighborFlags = 0 + IP_API_NEIGHBOR_FLAG_STATIC IPNeighborFlags = 1 + IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY IPNeighborFlags = 2 +) + +var ( + IPNeighborFlags_name = map[uint8]string{ + 0: "IP_API_NEIGHBOR_FLAG_NONE", + 1: "IP_API_NEIGHBOR_FLAG_STATIC", + 2: "IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY", + } + IPNeighborFlags_value = map[string]uint8{ + "IP_API_NEIGHBOR_FLAG_NONE": 0, + "IP_API_NEIGHBOR_FLAG_STATIC": 1, + "IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY": 2, + } +) + +func (x IPNeighborFlags) String() string { + s, ok := IPNeighborFlags_name[uint8(x)] + if ok { + return s + } + str := func(n uint8) string { + s, ok := IPNeighborFlags_name[uint8(n)] + if ok { + return s + } + return "IPNeighborFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint8(0); i <= 8; i++ { + val := uint8(x) + if val&(1<