regenerate binapi
[govpp.git] / binapi / interface_types / interface_types.ba.go
index d2a848a..b90fbd9 100644 (file)
@@ -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