X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fmss_clamp%2Fmss_clamp.ba.go;fp=binapi%2Fmss_clamp%2Fmss_clamp.ba.go;h=b44cc09883fc52b9f5d06877af40cb93a6cab80d;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=0000000000000000000000000000000000000000;hpb=c0da1f2999a6b08d003c0fed1a23e1ca60dd1571;p=govpp.git diff --git a/binapi/mss_clamp/mss_clamp.ba.go b/binapi/mss_clamp/mss_clamp.ba.go new file mode 100644 index 0000000..b44cc09 --- /dev/null +++ b/binapi/mss_clamp/mss_clamp.ba.go @@ -0,0 +1,307 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. +// versions: +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release +// source: /usr/share/vpp/api/plugins/mss_clamp.api.json + +// Package mss_clamp contains generated bindings for API file mss_clamp.api. +// +// Contents: +// 1 enum +// 5 messages +// +package mss_clamp + +import ( + "strconv" + + api "git.fd.io/govpp.git/api" + interface_types "git.fd.io/govpp.git/binapi/interface_types" + 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 = "mss_clamp" + APIVersion = "1.0.0" + VersionCrc = 0xea8186c0 +) + +// MssClampDir defines enum 'mss_clamp_dir'. +type MssClampDir uint8 + +const ( + MSS_CLAMP_DIR_NONE MssClampDir = 0 + MSS_CLAMP_DIR_RX MssClampDir = 1 + MSS_CLAMP_DIR_TX MssClampDir = 2 +) + +var ( + MssClampDir_name = map[uint8]string{ + 0: "MSS_CLAMP_DIR_NONE", + 1: "MSS_CLAMP_DIR_RX", + 2: "MSS_CLAMP_DIR_TX", + } + MssClampDir_value = map[string]uint8{ + "MSS_CLAMP_DIR_NONE": 0, + "MSS_CLAMP_DIR_RX": 1, + "MSS_CLAMP_DIR_TX": 2, + } +) + +func (x MssClampDir) String() string { + s, ok := MssClampDir_name[uint8(x)] + if ok { + return s + } + str := func(n uint8) string { + s, ok := MssClampDir_name[uint8(n)] + if ok { + return s + } + return "MssClampDir(" + strconv.Itoa(int(n)) + ")" + } + for i := uint8(0); i <= 8; i++ { + val := uint8(x) + if val&(1<