Regenerate binapi from Dockerfile
[govpp.git] / binapi / gtpu / gtpu.ba.go
index 02903a9..20a5b7f 100644 (file)
@@ -1,13 +1,13 @@
 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
 // versions:
-//  binapi-generator: v0.4.0-dev
-//  VPP:              20.05-release
+//  binapi-generator: v0.5.0-dev
+//  VPP:              21.06-release
 // source: /usr/share/vpp/api/plugins/gtpu.api.json
 
 // Package gtpu contains generated bindings for API file gtpu.api.
 //
 // Contents:
-//   8 messages
+//  10 messages
 //
 package gtpu
 
@@ -26,8 +26,8 @@ const _ = api.GoVppAPIPackageIsVersion2
 
 const (
        APIFile    = "gtpu"
-       APIVersion = "2.0.0"
-       VersionCrc = 0x30326e2d
+       APIVersion = "2.0.1"
+       VersionCrc = 0x1462473
 )
 
 // GtpuAddDelTunnel defines message 'gtpu_add_del_tunnel'.
@@ -39,20 +39,20 @@ type GtpuAddDelTunnel struct {
        EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
        DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
        Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
+       Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
 }
 
 func (m *GtpuAddDelTunnel) Reset()               { *m = GtpuAddDelTunnel{} }
 func (*GtpuAddDelTunnel) GetMessageName() string { return "gtpu_add_del_tunnel" }
-func (*GtpuAddDelTunnel) GetCrcString() string   { return "9a26a51c" }
+func (*GtpuAddDelTunnel) GetCrcString() string   { return "ca983a2b" }
 func (*GtpuAddDelTunnel) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *GtpuAddDelTunnel) Size() int {
+func (m *GtpuAddDelTunnel) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 1      // m.IsAdd
        size += 1      // m.SrcAddress.Af
        size += 1 * 16 // m.SrcAddress.Un
@@ -62,24 +62,24 @@ func (m *GtpuAddDelTunnel) Size() int {
        size += 4      // m.EncapVrfID
        size += 4      // m.DecapNextIndex
        size += 4      // m.Teid
+       size += 4      // m.Tteid
        return size
 }
 func (m *GtpuAddDelTunnel) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeBool(m.IsAdd)
        buf.EncodeUint8(uint8(m.SrcAddress.Af))
-       buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
        buf.EncodeUint8(uint8(m.DstAddress.Af))
-       buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
        buf.EncodeUint32(uint32(m.McastSwIfIndex))
-       buf.EncodeUint32(uint32(m.EncapVrfID))
-       buf.EncodeUint32(uint32(m.DecapNextIndex))
-       buf.EncodeUint32(uint32(m.Teid))
+       buf.EncodeUint32(m.EncapVrfID)
+       buf.EncodeUint32(m.DecapNextIndex)
+       buf.EncodeUint32(m.Teid)
+       buf.EncodeUint32(m.Tteid)
        return buf.Bytes(), nil
 }
 func (m *GtpuAddDelTunnel) Unmarshal(b []byte) error {
@@ -93,6 +93,7 @@ func (m *GtpuAddDelTunnel) Unmarshal(b []byte) error {
        m.EncapVrfID = buf.DecodeUint32()
        m.DecapNextIndex = buf.DecodeUint32()
        m.Teid = buf.DecodeUint32()
+       m.Tteid = buf.DecodeUint32()
        return nil
 }
 
@@ -109,29 +110,26 @@ func (*GtpuAddDelTunnelReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *GtpuAddDelTunnelReply) Size() int {
+func (m *GtpuAddDelTunnelReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        size += 4 // m.SwIfIndex
        return size
 }
 func (m *GtpuAddDelTunnelReply) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.Retval))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
        buf.EncodeUint32(uint32(m.SwIfIndex))
        return buf.Bytes(), nil
 }
 func (m *GtpuAddDelTunnelReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
        return nil
 }
@@ -150,26 +148,23 @@ func (*GtpuOffloadRx) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *GtpuOffloadRx) Size() int {
+func (m *GtpuOffloadRx) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.HwIfIndex
        size += 4 // m.SwIfIndex
        size += 1 // m.Enable
        return size
 }
 func (m *GtpuOffloadRx) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.HwIfIndex))
-       buf.EncodeUint32(uint32(m.SwIfIndex))
-       buf.EncodeUint8(uint8(m.Enable))
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint32(m.HwIfIndex)
+       buf.EncodeUint32(m.SwIfIndex)
+       buf.EncodeUint8(m.Enable)
        return buf.Bytes(), nil
 }
 func (m *GtpuOffloadRx) Unmarshal(b []byte) error {
@@ -192,27 +187,24 @@ func (*GtpuOffloadRxReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *GtpuOffloadRxReply) Size() int {
+func (m *GtpuOffloadRxReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *GtpuOffloadRxReply) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.Retval))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
        return buf.Bytes(), nil
 }
 func (m *GtpuOffloadRxReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
@@ -225,20 +217,20 @@ type GtpuTunnelDetails struct {
        EncapVrfID     uint32                         `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
        DecapNextIndex uint32                         `binapi:"u32,name=decap_next_index" json:"decap_next_index,omitempty"`
        Teid           uint32                         `binapi:"u32,name=teid" json:"teid,omitempty"`
+       Tteid          uint32                         `binapi:"u32,name=tteid" json:"tteid,omitempty"`
 }
 
 func (m *GtpuTunnelDetails) Reset()               { *m = GtpuTunnelDetails{} }
 func (*GtpuTunnelDetails) GetMessageName() string { return "gtpu_tunnel_details" }
-func (*GtpuTunnelDetails) GetCrcString() string   { return "a4d81a09" }
+func (*GtpuTunnelDetails) GetCrcString() string   { return "27f434ae" }
 func (*GtpuTunnelDetails) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *GtpuTunnelDetails) Size() int {
+func (m *GtpuTunnelDetails) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4      // m.SwIfIndex
        size += 1      // m.SrcAddress.Af
        size += 1 * 16 // m.SrcAddress.Un
@@ -248,24 +240,24 @@ func (m *GtpuTunnelDetails) Size() int {
        size += 4      // m.EncapVrfID
        size += 4      // m.DecapNextIndex
        size += 4      // m.Teid
+       size += 4      // m.Tteid
        return size
 }
 func (m *GtpuTunnelDetails) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeUint32(uint32(m.SwIfIndex))
        buf.EncodeUint8(uint8(m.SrcAddress.Af))
-       buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.SrcAddress.Un.XXX_UnionData[:], 16)
        buf.EncodeUint8(uint8(m.DstAddress.Af))
-       buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 0)
+       buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
        buf.EncodeUint32(uint32(m.McastSwIfIndex))
-       buf.EncodeUint32(uint32(m.EncapVrfID))
-       buf.EncodeUint32(uint32(m.DecapNextIndex))
-       buf.EncodeUint32(uint32(m.Teid))
+       buf.EncodeUint32(m.EncapVrfID)
+       buf.EncodeUint32(m.DecapNextIndex)
+       buf.EncodeUint32(m.Teid)
+       buf.EncodeUint32(m.Tteid)
        return buf.Bytes(), nil
 }
 func (m *GtpuTunnelDetails) Unmarshal(b []byte) error {
@@ -279,6 +271,7 @@ func (m *GtpuTunnelDetails) Unmarshal(b []byte) error {
        m.EncapVrfID = buf.DecodeUint32()
        m.DecapNextIndex = buf.DecodeUint32()
        m.Teid = buf.DecodeUint32()
+       m.Tteid = buf.DecodeUint32()
        return nil
 }
 
@@ -294,21 +287,18 @@ func (*GtpuTunnelDump) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *GtpuTunnelDump) Size() int {
+func (m *GtpuTunnelDump) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.SwIfIndex
        return size
 }
 func (m *GtpuTunnelDump) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeUint32(uint32(m.SwIfIndex))
        return buf.Bytes(), nil
 }
@@ -318,6 +308,87 @@ func (m *GtpuTunnelDump) Unmarshal(b []byte) error {
        return nil
 }
 
+// GtpuTunnelUpdateTteid defines message 'gtpu_tunnel_update_tteid'.
+type GtpuTunnelUpdateTteid struct {
+       DstAddress ip_types.Address `binapi:"address,name=dst_address" json:"dst_address,omitempty"`
+       EncapVrfID uint32           `binapi:"u32,name=encap_vrf_id" json:"encap_vrf_id,omitempty"`
+       Teid       uint32           `binapi:"u32,name=teid" json:"teid,omitempty"`
+       Tteid      uint32           `binapi:"u32,name=tteid" json:"tteid,omitempty"`
+}
+
+func (m *GtpuTunnelUpdateTteid) Reset()               { *m = GtpuTunnelUpdateTteid{} }
+func (*GtpuTunnelUpdateTteid) GetMessageName() string { return "gtpu_tunnel_update_tteid" }
+func (*GtpuTunnelUpdateTteid) GetCrcString() string   { return "79f33816" }
+func (*GtpuTunnelUpdateTteid) GetMessageType() api.MessageType {
+       return api.RequestMessage
+}
+
+func (m *GtpuTunnelUpdateTteid) Size() (size int) {
+       if m == nil {
+               return 0
+       }
+       size += 1      // m.DstAddress.Af
+       size += 1 * 16 // m.DstAddress.Un
+       size += 4      // m.EncapVrfID
+       size += 4      // m.Teid
+       size += 4      // m.Tteid
+       return size
+}
+func (m *GtpuTunnelUpdateTteid) Marshal(b []byte) ([]byte, error) {
+       if b == nil {
+               b = make([]byte, m.Size())
+       }
+       buf := codec.NewBuffer(b)
+       buf.EncodeUint8(uint8(m.DstAddress.Af))
+       buf.EncodeBytes(m.DstAddress.Un.XXX_UnionData[:], 16)
+       buf.EncodeUint32(m.EncapVrfID)
+       buf.EncodeUint32(m.Teid)
+       buf.EncodeUint32(m.Tteid)
+       return buf.Bytes(), nil
+}
+func (m *GtpuTunnelUpdateTteid) Unmarshal(b []byte) error {
+       buf := codec.NewBuffer(b)
+       m.DstAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
+       copy(m.DstAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+       m.EncapVrfID = buf.DecodeUint32()
+       m.Teid = buf.DecodeUint32()
+       m.Tteid = buf.DecodeUint32()
+       return nil
+}
+
+// GtpuTunnelUpdateTteidReply defines message 'gtpu_tunnel_update_tteid_reply'.
+type GtpuTunnelUpdateTteidReply struct {
+       Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
+}
+
+func (m *GtpuTunnelUpdateTteidReply) Reset()               { *m = GtpuTunnelUpdateTteidReply{} }
+func (*GtpuTunnelUpdateTteidReply) GetMessageName() string { return "gtpu_tunnel_update_tteid_reply" }
+func (*GtpuTunnelUpdateTteidReply) GetCrcString() string   { return "e8d4e804" }
+func (*GtpuTunnelUpdateTteidReply) GetMessageType() api.MessageType {
+       return api.ReplyMessage
+}
+
+func (m *GtpuTunnelUpdateTteidReply) Size() (size int) {
+       if m == nil {
+               return 0
+       }
+       size += 4 // m.Retval
+       return size
+}
+func (m *GtpuTunnelUpdateTteidReply) Marshal(b []byte) ([]byte, error) {
+       if b == nil {
+               b = make([]byte, m.Size())
+       }
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
+       return buf.Bytes(), nil
+}
+func (m *GtpuTunnelUpdateTteidReply) Unmarshal(b []byte) error {
+       buf := codec.NewBuffer(b)
+       m.Retval = buf.DecodeInt32()
+       return nil
+}
+
 // SwInterfaceSetGtpuBypass defines message 'sw_interface_set_gtpu_bypass'.
 type SwInterfaceSetGtpuBypass struct {
        SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
@@ -332,23 +403,20 @@ func (*SwInterfaceSetGtpuBypass) GetMessageType() api.MessageType {
        return api.RequestMessage
 }
 
-func (m *SwInterfaceSetGtpuBypass) Size() int {
+func (m *SwInterfaceSetGtpuBypass) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.SwIfIndex
        size += 1 // m.IsIPv6
        size += 1 // m.Enable
        return size
 }
 func (m *SwInterfaceSetGtpuBypass) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
+       buf := codec.NewBuffer(b)
        buf.EncodeUint32(uint32(m.SwIfIndex))
        buf.EncodeBool(m.IsIPv6)
        buf.EncodeBool(m.Enable)
@@ -376,38 +444,37 @@ func (*SwInterfaceSetGtpuBypassReply) GetMessageType() api.MessageType {
        return api.ReplyMessage
 }
 
-func (m *SwInterfaceSetGtpuBypassReply) Size() int {
+func (m *SwInterfaceSetGtpuBypassReply) Size() (size int) {
        if m == nil {
                return 0
        }
-       var size int
        size += 4 // m.Retval
        return size
 }
 func (m *SwInterfaceSetGtpuBypassReply) Marshal(b []byte) ([]byte, error) {
-       var buf *codec.Buffer
        if b == nil {
-               buf = codec.NewBuffer(make([]byte, m.Size()))
-       } else {
-               buf = codec.NewBuffer(b)
+               b = make([]byte, m.Size())
        }
-       buf.EncodeUint32(uint32(m.Retval))
+       buf := codec.NewBuffer(b)
+       buf.EncodeInt32(m.Retval)
        return buf.Bytes(), nil
 }
 func (m *SwInterfaceSetGtpuBypassReply) Unmarshal(b []byte) error {
        buf := codec.NewBuffer(b)
-       m.Retval = int32(buf.DecodeUint32())
+       m.Retval = buf.DecodeInt32()
        return nil
 }
 
 func init() { file_gtpu_binapi_init() }
 func file_gtpu_binapi_init() {
-       api.RegisterMessage((*GtpuAddDelTunnel)(nil), "gtpu_add_del_tunnel_9a26a51c")
+       api.RegisterMessage((*GtpuAddDelTunnel)(nil), "gtpu_add_del_tunnel_ca983a2b")
        api.RegisterMessage((*GtpuAddDelTunnelReply)(nil), "gtpu_add_del_tunnel_reply_5383d31f")
        api.RegisterMessage((*GtpuOffloadRx)(nil), "gtpu_offload_rx_f0b08786")
        api.RegisterMessage((*GtpuOffloadRxReply)(nil), "gtpu_offload_rx_reply_e8d4e804")
-       api.RegisterMessage((*GtpuTunnelDetails)(nil), "gtpu_tunnel_details_a4d81a09")
+       api.RegisterMessage((*GtpuTunnelDetails)(nil), "gtpu_tunnel_details_27f434ae")
        api.RegisterMessage((*GtpuTunnelDump)(nil), "gtpu_tunnel_dump_f9e6675e")
+       api.RegisterMessage((*GtpuTunnelUpdateTteid)(nil), "gtpu_tunnel_update_tteid_79f33816")
+       api.RegisterMessage((*GtpuTunnelUpdateTteidReply)(nil), "gtpu_tunnel_update_tteid_reply_e8d4e804")
        api.RegisterMessage((*SwInterfaceSetGtpuBypass)(nil), "sw_interface_set_gtpu_bypass_65247409")
        api.RegisterMessage((*SwInterfaceSetGtpuBypassReply)(nil), "sw_interface_set_gtpu_bypass_reply_e8d4e804")
 }
@@ -421,6 +488,8 @@ func AllMessages() []api.Message {
                (*GtpuOffloadRxReply)(nil),
                (*GtpuTunnelDetails)(nil),
                (*GtpuTunnelDump)(nil),
+               (*GtpuTunnelUpdateTteid)(nil),
+               (*GtpuTunnelUpdateTteidReply)(nil),
                (*SwInterfaceSetGtpuBypass)(nil),
                (*SwInterfaceSetGtpuBypassReply)(nil),
        }