X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fvxlan_gbp%2Fvxlan_gbp.ba.go;h=b5df3e00ecd191a1e3a633b8410bd1b76cd91be9;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=d5c3f32a1c79846609cd373093676dd3d06448b2;hpb=d1f24d37bd447b64e402298bb8eb2479681facf9;p=govpp.git diff --git a/binapi/vxlan_gbp/vxlan_gbp.ba.go b/binapi/vxlan_gbp/vxlan_gbp.ba.go index d5c3f32..b5df3e0 100644 --- a/binapi/vxlan_gbp/vxlan_gbp.ba.go +++ b/binapi/vxlan_gbp/vxlan_gbp.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: -// binapi-generator: v0.4.0-dev -// VPP: 20.05-release +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release // source: /usr/share/vpp/api/core/vxlan_gbp.api.json // Package vxlan_gbp contains generated bindings for API file vxlan_gbp.api. @@ -14,11 +14,12 @@ package vxlan_gbp import ( + "strconv" + api "git.fd.io/govpp.git/api" interface_types "git.fd.io/govpp.git/binapi/interface_types" ip_types "git.fd.io/govpp.git/binapi/ip_types" codec "git.fd.io/govpp.git/codec" - "strconv" ) // This is a compile-time assertion to ensure that this generated file @@ -30,7 +31,7 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "vxlan_gbp" APIVersion = "1.1.1" - VersionCrc = 0xfa8aff54 + VersionCrc = 0xb40203a1 ) // VxlanGbpAPITunnelMode defines enum 'vxlan_gbp_api_tunnel_mode'. @@ -73,6 +74,7 @@ type VxlanGbpTunnel struct { } // SwInterfaceSetVxlanGbpBypass defines message 'sw_interface_set_vxlan_gbp_bypass'. +// InProgress: the message form may change in the future versions type SwInterfaceSetVxlanGbpBypass struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` IsIPv6 bool `binapi:"bool,name=is_ipv6" json:"is_ipv6,omitempty"` @@ -88,23 +90,20 @@ func (*SwInterfaceSetVxlanGbpBypass) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *SwInterfaceSetVxlanGbpBypass) Size() int { +func (m *SwInterfaceSetVxlanGbpBypass) 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 *SwInterfaceSetVxlanGbpBypass) 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) @@ -119,6 +118,7 @@ func (m *SwInterfaceSetVxlanGbpBypass) Unmarshal(b []byte) error { } // SwInterfaceSetVxlanGbpBypassReply defines message 'sw_interface_set_vxlan_gbp_bypass_reply'. +// InProgress: the message form may change in the future versions type SwInterfaceSetVxlanGbpBypassReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -132,31 +132,29 @@ func (*SwInterfaceSetVxlanGbpBypassReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *SwInterfaceSetVxlanGbpBypassReply) Size() int { +func (m *SwInterfaceSetVxlanGbpBypassReply) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Retval return size } func (m *SwInterfaceSetVxlanGbpBypassReply) 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 *SwInterfaceSetVxlanGbpBypassReply) Unmarshal(b []byte) error { buf := codec.NewBuffer(b) - m.Retval = int32(buf.DecodeUint32()) + m.Retval = buf.DecodeInt32() return nil } // VxlanGbpTunnelAddDel defines message 'vxlan_gbp_tunnel_add_del'. +// InProgress: the message form may change in the future versions type VxlanGbpTunnelAddDel struct { IsAdd bool `binapi:"bool,name=is_add,default=true" json:"is_add,omitempty"` Tunnel VxlanGbpTunnel `binapi:"vxlan_gbp_tunnel,name=tunnel" json:"tunnel,omitempty"` @@ -164,16 +162,15 @@ type VxlanGbpTunnelAddDel struct { func (m *VxlanGbpTunnelAddDel) Reset() { *m = VxlanGbpTunnelAddDel{} } func (*VxlanGbpTunnelAddDel) GetMessageName() string { return "vxlan_gbp_tunnel_add_del" } -func (*VxlanGbpTunnelAddDel) GetCrcString() string { return "8c819166" } +func (*VxlanGbpTunnelAddDel) GetCrcString() string { return "6c743427" } func (*VxlanGbpTunnelAddDel) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *VxlanGbpTunnelAddDel) Size() int { +func (m *VxlanGbpTunnelAddDel) Size() (size int) { if m == nil { return 0 } - var size int size += 1 // m.IsAdd size += 4 // m.Tunnel.Instance size += 1 // m.Tunnel.Src.Af @@ -188,21 +185,19 @@ func (m *VxlanGbpTunnelAddDel) Size() int { return size } func (m *VxlanGbpTunnelAddDel) 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.EncodeUint32(uint32(m.Tunnel.Instance)) + buf.EncodeUint32(m.Tunnel.Instance) buf.EncodeUint8(uint8(m.Tunnel.Src.Af)) - buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 0) + buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 16) buf.EncodeUint8(uint8(m.Tunnel.Dst.Af)) - buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 0) + buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 16) buf.EncodeUint32(uint32(m.Tunnel.McastSwIfIndex)) - buf.EncodeUint32(uint32(m.Tunnel.EncapTableID)) - buf.EncodeUint32(uint32(m.Tunnel.Vni)) + buf.EncodeUint32(m.Tunnel.EncapTableID) + buf.EncodeUint32(m.Tunnel.Vni) buf.EncodeUint32(uint32(m.Tunnel.SwIfIndex)) buf.EncodeUint32(uint32(m.Tunnel.Mode)) return buf.Bytes(), nil @@ -224,6 +219,7 @@ func (m *VxlanGbpTunnelAddDel) Unmarshal(b []byte) error { } // VxlanGbpTunnelAddDelReply defines message 'vxlan_gbp_tunnel_add_del_reply'. +// InProgress: the message form may change in the future versions type VxlanGbpTunnelAddDelReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -236,50 +232,47 @@ func (*VxlanGbpTunnelAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *VxlanGbpTunnelAddDelReply) Size() int { +func (m *VxlanGbpTunnelAddDelReply) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Retval size += 4 // m.SwIfIndex return size } func (m *VxlanGbpTunnelAddDelReply) 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 *VxlanGbpTunnelAddDelReply) 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 } // VxlanGbpTunnelDetails defines message 'vxlan_gbp_tunnel_details'. +// InProgress: the message form may change in the future versions type VxlanGbpTunnelDetails struct { Tunnel VxlanGbpTunnel `binapi:"vxlan_gbp_tunnel,name=tunnel" json:"tunnel,omitempty"` } func (m *VxlanGbpTunnelDetails) Reset() { *m = VxlanGbpTunnelDetails{} } func (*VxlanGbpTunnelDetails) GetMessageName() string { return "vxlan_gbp_tunnel_details" } -func (*VxlanGbpTunnelDetails) GetCrcString() string { return "1da24016" } +func (*VxlanGbpTunnelDetails) GetCrcString() string { return "66e94a89" } func (*VxlanGbpTunnelDetails) GetMessageType() api.MessageType { return api.ReplyMessage } -func (m *VxlanGbpTunnelDetails) Size() int { +func (m *VxlanGbpTunnelDetails) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.Tunnel.Instance size += 1 // m.Tunnel.Src.Af size += 1 * 16 // m.Tunnel.Src.Un @@ -293,20 +286,18 @@ func (m *VxlanGbpTunnelDetails) Size() int { return size } func (m *VxlanGbpTunnelDetails) 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.Tunnel.Instance)) + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.Tunnel.Instance) buf.EncodeUint8(uint8(m.Tunnel.Src.Af)) - buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 0) + buf.EncodeBytes(m.Tunnel.Src.Un.XXX_UnionData[:], 16) buf.EncodeUint8(uint8(m.Tunnel.Dst.Af)) - buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 0) + buf.EncodeBytes(m.Tunnel.Dst.Un.XXX_UnionData[:], 16) buf.EncodeUint32(uint32(m.Tunnel.McastSwIfIndex)) - buf.EncodeUint32(uint32(m.Tunnel.EncapTableID)) - buf.EncodeUint32(uint32(m.Tunnel.Vni)) + buf.EncodeUint32(m.Tunnel.EncapTableID) + buf.EncodeUint32(m.Tunnel.Vni) buf.EncodeUint32(uint32(m.Tunnel.SwIfIndex)) buf.EncodeUint32(uint32(m.Tunnel.Mode)) return buf.Bytes(), nil @@ -327,8 +318,9 @@ func (m *VxlanGbpTunnelDetails) Unmarshal(b []byte) error { } // VxlanGbpTunnelDump defines message 'vxlan_gbp_tunnel_dump'. +// InProgress: the message form may change in the future versions type VxlanGbpTunnelDump struct { - SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=%!s(float64=4.294967295e+09)" json:"sw_if_index,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index,default=4294967295" json:"sw_if_index,omitempty"` } func (m *VxlanGbpTunnelDump) Reset() { *m = VxlanGbpTunnelDump{} } @@ -338,21 +330,18 @@ func (*VxlanGbpTunnelDump) GetMessageType() api.MessageType { return api.RequestMessage } -func (m *VxlanGbpTunnelDump) Size() int { +func (m *VxlanGbpTunnelDump) Size() (size int) { if m == nil { return 0 } - var size int size += 4 // m.SwIfIndex return size } func (m *VxlanGbpTunnelDump) 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 } @@ -366,9 +355,9 @@ func init() { file_vxlan_gbp_binapi_init() } func file_vxlan_gbp_binapi_init() { api.RegisterMessage((*SwInterfaceSetVxlanGbpBypass)(nil), "sw_interface_set_vxlan_gbp_bypass_65247409") api.RegisterMessage((*SwInterfaceSetVxlanGbpBypassReply)(nil), "sw_interface_set_vxlan_gbp_bypass_reply_e8d4e804") - api.RegisterMessage((*VxlanGbpTunnelAddDel)(nil), "vxlan_gbp_tunnel_add_del_8c819166") + api.RegisterMessage((*VxlanGbpTunnelAddDel)(nil), "vxlan_gbp_tunnel_add_del_6c743427") api.RegisterMessage((*VxlanGbpTunnelAddDelReply)(nil), "vxlan_gbp_tunnel_add_del_reply_5383d31f") - api.RegisterMessage((*VxlanGbpTunnelDetails)(nil), "vxlan_gbp_tunnel_details_1da24016") + api.RegisterMessage((*VxlanGbpTunnelDetails)(nil), "vxlan_gbp_tunnel_details_66e94a89") api.RegisterMessage((*VxlanGbpTunnelDump)(nil), "vxlan_gbp_tunnel_dump_f9e6675e") }