// Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.6.0-dev // VPP: 22.02-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 // 17 messages // package vrrp import ( "strconv" api "go.fd.io/govpp/api" ethernet_types "go.fd.io/govpp/binapi/ethernet_types" interface_types "go.fd.io/govpp/binapi/interface_types" ip_types "go.fd.io/govpp/binapi/ip_types" codec "go.fd.io/govpp/codec" ) // 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 = 0x6a3c71cd ) // 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<