X-Git-Url: https://gerrit.fd.io/r/gitweb?p=govpp.git;a=blobdiff_plain;f=internal%2Ftestbinapi%2Fbinapi2001%2Fl2%2Fl2.ba.go;fp=internal%2Ftestbinapi%2Fbinapi2001%2Fl2%2Fl2.ba.go;h=0000000000000000000000000000000000000000;hp=9eee598eda4b35eb3c249de2f48e02fe989a821f;hb=e9567fa8c853dda16c54afbd2ba99b7263fa37f1;hpb=4102c72bce694babd94a481b1201d33895a6f9c5 diff --git a/internal/testbinapi/binapi2001/l2/l2.ba.go b/internal/testbinapi/binapi2001/l2/l2.ba.go deleted file mode 100644 index 9eee598..0000000 --- a/internal/testbinapi/binapi2001/l2/l2.ba.go +++ /dev/null @@ -1,3285 +0,0 @@ -// Code generated by GoVPP's binapi-generator. DO NOT EDIT. -// versions: -// binapi-generator: v0.5.0-dev -// VPP: 20.01 -// source: .vppapi/core/l2.api.json - -// Package l2 contains generated bindings for API file l2.api. -// -// Contents: -// 7 aliases -// 12 enums -// 9 structs -// 1 union -// 54 messages -// -package l2 - -import ( - "fmt" - "net" - "strconv" - "strings" - - api "git.fd.io/govpp.git/api" - codec "git.fd.io/govpp.git/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 = "l2" - APIVersion = "2.2.2" - VersionCrc = 0x2e148df3 -) - -// AddressFamily defines enum 'address_family'. -type AddressFamily uint32 - -const ( - ADDRESS_IP4 AddressFamily = 0 - ADDRESS_IP6 AddressFamily = 1 -) - -var ( - AddressFamily_name = map[uint32]string{ - 0: "ADDRESS_IP4", - 1: "ADDRESS_IP6", - } - AddressFamily_value = map[string]uint32{ - "ADDRESS_IP4": 0, - "ADDRESS_IP6": 1, - } -) - -func (x AddressFamily) String() string { - s, ok := AddressFamily_name[uint32(x)] - if ok { - return s - } - return "AddressFamily(" + strconv.Itoa(int(x)) + ")" -} - -// BdFlags defines enum 'bd_flags'. -type BdFlags uint32 - -const ( - BRIDGE_API_FLAG_NONE BdFlags = 0 - BRIDGE_API_FLAG_LEARN BdFlags = 1 - BRIDGE_API_FLAG_FWD BdFlags = 2 - BRIDGE_API_FLAG_FLOOD BdFlags = 4 - BRIDGE_API_FLAG_UU_FLOOD BdFlags = 8 - BRIDGE_API_FLAG_ARP_TERM BdFlags = 16 - BRIDGE_API_FLAG_ARP_UFWD BdFlags = 32 -) - -var ( - BdFlags_name = map[uint32]string{ - 0: "BRIDGE_API_FLAG_NONE", - 1: "BRIDGE_API_FLAG_LEARN", - 2: "BRIDGE_API_FLAG_FWD", - 4: "BRIDGE_API_FLAG_FLOOD", - 8: "BRIDGE_API_FLAG_UU_FLOOD", - 16: "BRIDGE_API_FLAG_ARP_TERM", - 32: "BRIDGE_API_FLAG_ARP_UFWD", - } - BdFlags_value = map[string]uint32{ - "BRIDGE_API_FLAG_NONE": 0, - "BRIDGE_API_FLAG_LEARN": 1, - "BRIDGE_API_FLAG_FWD": 2, - "BRIDGE_API_FLAG_FLOOD": 4, - "BRIDGE_API_FLAG_UU_FLOOD": 8, - "BRIDGE_API_FLAG_ARP_TERM": 16, - "BRIDGE_API_FLAG_ARP_UFWD": 32, - } -) - -func (x BdFlags) String() string { - s, ok := BdFlags_name[uint32(x)] - if ok { - return s - } - str := func(n uint32) string { - s, ok := BdFlags_name[uint32(n)] - if ok { - return s - } - return "BdFlags(" + strconv.Itoa(int(n)) + ")" - } - for i := uint32(0); i <= 32; i++ { - val := uint32(x) - if val&(1<