X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Finterface_types%2Finterface_types.ba.go;h=b90fbd95559e1b79fa8356c6f68582501f2c3613;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=d2a848ac7e23ee4faf241ec4ab03b347c606f76b;hpb=c0da1f2999a6b08d003c0fed1a23e1ca60dd1571;p=govpp.git diff --git a/binapi/interface_types/interface_types.ba.go b/binapi/interface_types/interface_types.ba.go index d2a848a..b90fbd9 100644 --- a/binapi/interface_types/interface_types.ba.go +++ b/binapi/interface_types/interface_types.ba.go @@ -1,14 +1,14 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0 -// VPP: 20.05.1-release +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release // source: /usr/share/vpp/api/core/interface_types.api.json // Package interface_types contains generated bindings for API file interface_types.api. // // Contents: // 1 alias -// 6 enums +// 7 enums // package interface_types @@ -24,6 +24,33 @@ import ( // GoVPP api package needs to be updated. const _ = api.GoVppAPIPackageIsVersion2 +// Direction defines enum 'direction'. +type Direction uint8 + +const ( + RX Direction = 0 + TX Direction = 1 +) + +var ( + Direction_name = map[uint8]string{ + 0: "RX", + 1: "TX", + } + Direction_value = map[string]uint8{ + "RX": 0, + "TX": 1, + } +) + +func (x Direction) String() string { + s, ok := Direction_name[uint8(x)] + if ok { + return s + } + return "Direction(" + strconv.Itoa(int(x)) + ")" +} + // IfStatusFlags defines enum 'if_status_flags'. type IfStatusFlags uint32