X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=internal%2Ftestbinapi%2Fbinapi2001%2Fclassify%2Fclassify.ba.go;fp=internal%2Ftestbinapi%2Fbinapi2001%2Fclassify%2Fclassify.ba.go;h=0000000000000000000000000000000000000000;hb=e9567fa8c853dda16c54afbd2ba99b7263fa37f1;hp=b542382773f95cbd96c5af9730289e24cf0df27c;hpb=4102c72bce694babd94a481b1201d33895a6f9c5;p=govpp.git diff --git a/internal/testbinapi/binapi2001/classify/classify.ba.go b/internal/testbinapi/binapi2001/classify/classify.ba.go deleted file mode 100644 index b542382..0000000 --- a/internal/testbinapi/binapi2001/classify/classify.ba.go +++ /dev/null @@ -1,1662 +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/classify.api.json - -// Package classify contains generated bindings for API file classify.api. -// -// Contents: -// 1 alias -// 9 enums -// 28 messages -// -package classify - -import ( - "strconv" - - 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 = "classify" - APIVersion = "3.0.0" - VersionCrc = 0x13587952 -) - -// ClassifyAction defines enum 'classify_action'. -type ClassifyAction uint8 - -const ( - CLASSIFY_API_ACTION_NONE ClassifyAction = 0 - CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX ClassifyAction = 1 - CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX ClassifyAction = 2 - CLASSIFY_API_ACTION_SET_METADATA ClassifyAction = 3 -) - -var ( - ClassifyAction_name = map[uint8]string{ - 0: "CLASSIFY_API_ACTION_NONE", - 1: "CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX", - 2: "CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX", - 3: "CLASSIFY_API_ACTION_SET_METADATA", - } - ClassifyAction_value = map[string]uint8{ - "CLASSIFY_API_ACTION_NONE": 0, - "CLASSIFY_API_ACTION_SET_IP4_FIB_INDEX": 1, - "CLASSIFY_API_ACTION_SET_IP6_FIB_INDEX": 2, - "CLASSIFY_API_ACTION_SET_METADATA": 3, - } -) - -func (x ClassifyAction) String() string { - s, ok := ClassifyAction_name[uint8(x)] - if ok { - return s - } - return "ClassifyAction(" + strconv.Itoa(int(x)) + ")" -} - -// FlowClassifyTable defines enum 'flow_classify_table'. -type FlowClassifyTable uint8 - -const ( - FLOW_CLASSIFY_API_TABLE_IP4 FlowClassifyTable = 1 - FLOW_CLASSIFY_API_TABLE_IP6 FlowClassifyTable = 2 -) - -var ( - FlowClassifyTable_name = map[uint8]string{ - 1: "FLOW_CLASSIFY_API_TABLE_IP4", - 2: "FLOW_CLASSIFY_API_TABLE_IP6", - } - FlowClassifyTable_value = map[string]uint8{ - "FLOW_CLASSIFY_API_TABLE_IP4": 1, - "FLOW_CLASSIFY_API_TABLE_IP6": 2, - } -) - -func (x FlowClassifyTable) String() string { - s, ok := FlowClassifyTable_name[uint8(x)] - if ok { - return s - } - return "FlowClassifyTable(" + strconv.Itoa(int(x)) + ")" -} - -// IfStatusFlags defines enum 'if_status_flags'. -type IfStatusFlags uint32 - -const ( - IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 - IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 -) - -var ( - IfStatusFlags_name = map[uint32]string{ - 1: "IF_STATUS_API_FLAG_ADMIN_UP", - 2: "IF_STATUS_API_FLAG_LINK_UP", - } - IfStatusFlags_value = map[string]uint32{ - "IF_STATUS_API_FLAG_ADMIN_UP": 1, - "IF_STATUS_API_FLAG_LINK_UP": 2, - } -) - -func (x IfStatusFlags) String() string { - s, ok := IfStatusFlags_name[uint32(x)] - if ok { - return s - } - str := func(n uint32) string { - s, ok := IfStatusFlags_name[uint32(n)] - if ok { - return s - } - return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")" - } - for i := uint32(0); i <= 32; i++ { - val := uint32(x) - if val&(1<