X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fvrrp%2Fvrrp.ba.go;fp=binapi%2Fvrrp%2Fvrrp.ba.go;h=297fbd843442e9f490f4375445487aabcd588547;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=0000000000000000000000000000000000000000;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/binapi/vrrp/vrrp.ba.go b/binapi/vrrp/vrrp.ba.go new file mode 100644 index 0000000..297fbd8 --- /dev/null +++ b/binapi/vrrp/vrrp.ba.go @@ -0,0 +1,984 @@ +// 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/plugins/vrrp.api.json + +// Package vrrp contains generated bindings for API file vrrp.api. +// +// Contents: +// 2 enums +// 5 structs +// 14 messages +// +package vrrp + +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 = "vrrp" + APIVersion = "1.0.1" + VersionCrc = 0x1903f1f1 +) + +// VrrpVrFlags defines enum 'vrrp_vr_flags'. +type VrrpVrFlags uint32 + +const ( + VRRP_API_VR_PREEMPT VrrpVrFlags = 1 + VRRP_API_VR_ACCEPT VrrpVrFlags = 2 + VRRP_API_VR_UNICAST VrrpVrFlags = 4 + VRRP_API_VR_IPV6 VrrpVrFlags = 8 +) + +var ( + VrrpVrFlags_name = map[uint32]string{ + 1: "VRRP_API_VR_PREEMPT", + 2: "VRRP_API_VR_ACCEPT", + 4: "VRRP_API_VR_UNICAST", + 8: "VRRP_API_VR_IPV6", + } + VrrpVrFlags_value = map[string]uint32{ + "VRRP_API_VR_PREEMPT": 1, + "VRRP_API_VR_ACCEPT": 2, + "VRRP_API_VR_UNICAST": 4, + "VRRP_API_VR_IPV6": 8, + } +) + +func (x VrrpVrFlags) String() string { + s, ok := VrrpVrFlags_name[uint32(x)] + if ok { + return s + } + str := func(n uint32) string { + s, ok := VrrpVrFlags_name[uint32(n)] + if ok { + return s + } + return "VrrpVrFlags(" + strconv.Itoa(int(n)) + ")" + } + for i := uint32(0); i <= 32; i++ { + val := uint32(x) + if val&(1<