summaryrefslogtreecommitdiffstats
path: root/binapi/geneve
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/geneve')
-rw-r--r--binapi/geneve/geneve.ba.go129
-rw-r--r--binapi/geneve/geneve_rpc.ba.go10
2 files changed, 129 insertions, 10 deletions
diff --git a/binapi/geneve/geneve.ba.go b/binapi/geneve/geneve.ba.go
index 58c5988..27304f0 100644
--- a/binapi/geneve/geneve.ba.go
+++ b/binapi/geneve/geneve.ba.go
@@ -1,13 +1,13 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0
-// VPP: 20.05.1-release
-// source: /usr/share/vpp/api/core/geneve.api.json
+// binapi-generator: v0.3.5-56-gc0da1f2-dirty
+// VPP: 21.06-release
+// source: /usr/share/vpp/api/plugins/geneve.api.json
// Package geneve contains generated bindings for API file geneve.api.
//
// Contents:
-// 6 messages
+// 8 messages
//
package geneve
@@ -27,11 +27,12 @@ const _ = api.GoVppAPIPackageIsVersion2
const (
APIFile = "geneve"
- APIVersion = "2.0.0"
- VersionCrc = 0x7730c1d3
+ APIVersion = "2.1.0"
+ VersionCrc = 0xe3dbb8a3
)
// GeneveAddDelTunnel defines message 'geneve_add_del_tunnel'.
+// Deprecated: the message will be removed in the future versions
type GeneveAddDelTunnel struct {
IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
LocalAddress ip_types.Address `binapi:"address,name=local_address" json:"local_address,omitempty"`
@@ -44,7 +45,7 @@ type GeneveAddDelTunnel struct {
func (m *GeneveAddDelTunnel) Reset() { *m = GeneveAddDelTunnel{} }
func (*GeneveAddDelTunnel) GetMessageName() string { return "geneve_add_del_tunnel" }
-func (*GeneveAddDelTunnel) GetCrcString() string { return "976693b5" }
+func (*GeneveAddDelTunnel) GetCrcString() string { return "99445831" }
func (*GeneveAddDelTunnel) GetMessageType() api.MessageType {
return api.RequestMessage
}
@@ -94,6 +95,110 @@ func (m *GeneveAddDelTunnel) Unmarshal(b []byte) error {
return nil
}
+// GeneveAddDelTunnel2 defines message 'geneve_add_del_tunnel2'.
+type GeneveAddDelTunnel2 struct {
+ IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"`
+ LocalAddress ip_types.Address `binapi:"address,name=local_address" json:"local_address,omitempty"`
+ RemoteAddress ip_types.Address `binapi:"address,name=remote_address" json:"remote_address,omitempty"`
+ McastSwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=mcast_sw_if_index" json:"mcast_sw_if_index,omitempty"`
+ 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"`
+ Vni uint32 `binapi:"u32,name=vni" json:"vni,omitempty"`
+ L3Mode bool `binapi:"bool,name=l3_mode" json:"l3_mode,omitempty"`
+}
+
+func (m *GeneveAddDelTunnel2) Reset() { *m = GeneveAddDelTunnel2{} }
+func (*GeneveAddDelTunnel2) GetMessageName() string { return "geneve_add_del_tunnel2" }
+func (*GeneveAddDelTunnel2) GetCrcString() string { return "8c2a9999" }
+func (*GeneveAddDelTunnel2) GetMessageType() api.MessageType {
+ return api.RequestMessage
+}
+
+func (m *GeneveAddDelTunnel2) Size() (size int) {
+ if m == nil {
+ return 0
+ }
+ size += 1 // m.IsAdd
+ size += 1 // m.LocalAddress.Af
+ size += 1 * 16 // m.LocalAddress.Un
+ size += 1 // m.RemoteAddress.Af
+ size += 1 * 16 // m.RemoteAddress.Un
+ size += 4 // m.McastSwIfIndex
+ size += 4 // m.EncapVrfID
+ size += 4 // m.DecapNextIndex
+ size += 4 // m.Vni
+ size += 1 // m.L3Mode
+ return size
+}
+func (m *GeneveAddDelTunnel2) Marshal(b []byte) ([]byte, error) {
+ if b == nil {
+ b = make([]byte, m.Size())
+ }
+ buf := codec.NewBuffer(b)
+ buf.EncodeBool(m.IsAdd)
+ buf.EncodeUint8(uint8(m.LocalAddress.Af))
+ buf.EncodeBytes(m.LocalAddress.Un.XXX_UnionData[:], 16)
+ buf.EncodeUint8(uint8(m.RemoteAddress.Af))
+ buf.EncodeBytes(m.RemoteAddress.Un.XXX_UnionData[:], 16)
+ buf.EncodeUint32(uint32(m.McastSwIfIndex))
+ buf.EncodeUint32(m.EncapVrfID)
+ buf.EncodeUint32(m.DecapNextIndex)
+ buf.EncodeUint32(m.Vni)
+ buf.EncodeBool(m.L3Mode)
+ return buf.Bytes(), nil
+}
+func (m *GeneveAddDelTunnel2) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.IsAdd = buf.DecodeBool()
+ m.LocalAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.LocalAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.RemoteAddress.Af = ip_types.AddressFamily(buf.DecodeUint8())
+ copy(m.RemoteAddress.Un.XXX_UnionData[:], buf.DecodeBytes(16))
+ m.McastSwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ m.EncapVrfID = buf.DecodeUint32()
+ m.DecapNextIndex = buf.DecodeUint32()
+ m.Vni = buf.DecodeUint32()
+ m.L3Mode = buf.DecodeBool()
+ return nil
+}
+
+// GeneveAddDelTunnel2Reply defines message 'geneve_add_del_tunnel2_reply'.
+type GeneveAddDelTunnel2Reply 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"`
+}
+
+func (m *GeneveAddDelTunnel2Reply) Reset() { *m = GeneveAddDelTunnel2Reply{} }
+func (*GeneveAddDelTunnel2Reply) GetMessageName() string { return "geneve_add_del_tunnel2_reply" }
+func (*GeneveAddDelTunnel2Reply) GetCrcString() string { return "5383d31f" }
+func (*GeneveAddDelTunnel2Reply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}
+
+func (m *GeneveAddDelTunnel2Reply) Size() (size int) {
+ if m == nil {
+ return 0
+ }
+ size += 4 // m.Retval
+ size += 4 // m.SwIfIndex
+ return size
+}
+func (m *GeneveAddDelTunnel2Reply) Marshal(b []byte) ([]byte, error) {
+ if b == nil {
+ b = make([]byte, m.Size())
+ }
+ buf := codec.NewBuffer(b)
+ buf.EncodeInt32(m.Retval)
+ buf.EncodeUint32(uint32(m.SwIfIndex))
+ return buf.Bytes(), nil
+}
+func (m *GeneveAddDelTunnel2Reply) Unmarshal(b []byte) error {
+ buf := codec.NewBuffer(b)
+ m.Retval = buf.DecodeInt32()
+ m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
+ return nil
+}
+
// GeneveAddDelTunnelReply defines message 'geneve_add_del_tunnel_reply'.
type GeneveAddDelTunnelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
@@ -144,7 +249,7 @@ type GeneveTunnelDetails struct {
func (m *GeneveTunnelDetails) Reset() { *m = GeneveTunnelDetails{} }
func (*GeneveTunnelDetails) GetMessageName() string { return "geneve_tunnel_details" }
-func (*GeneveTunnelDetails) GetCrcString() string { return "e27e2748" }
+func (*GeneveTunnelDetails) GetCrcString() string { return "6b16eb24" }
func (*GeneveTunnelDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
@@ -305,9 +410,11 @@ func (m *SwInterfaceSetGeneveBypassReply) Unmarshal(b []byte) error {
func init() { file_geneve_binapi_init() }
func file_geneve_binapi_init() {
- api.RegisterMessage((*GeneveAddDelTunnel)(nil), "geneve_add_del_tunnel_976693b5")
+ api.RegisterMessage((*GeneveAddDelTunnel)(nil), "geneve_add_del_tunnel_99445831")
+ api.RegisterMessage((*GeneveAddDelTunnel2)(nil), "geneve_add_del_tunnel2_8c2a9999")
+ api.RegisterMessage((*GeneveAddDelTunnel2Reply)(nil), "geneve_add_del_tunnel2_reply_5383d31f")
api.RegisterMessage((*GeneveAddDelTunnelReply)(nil), "geneve_add_del_tunnel_reply_5383d31f")
- api.RegisterMessage((*GeneveTunnelDetails)(nil), "geneve_tunnel_details_e27e2748")
+ api.RegisterMessage((*GeneveTunnelDetails)(nil), "geneve_tunnel_details_6b16eb24")
api.RegisterMessage((*GeneveTunnelDump)(nil), "geneve_tunnel_dump_f9e6675e")
api.RegisterMessage((*SwInterfaceSetGeneveBypass)(nil), "sw_interface_set_geneve_bypass_65247409")
api.RegisterMessage((*SwInterfaceSetGeneveBypassReply)(nil), "sw_interface_set_geneve_bypass_reply_e8d4e804")
@@ -317,6 +424,8 @@ func file_geneve_binapi_init() {
func AllMessages() []api.Message {
return []api.Message{
(*GeneveAddDelTunnel)(nil),
+ (*GeneveAddDelTunnel2)(nil),
+ (*GeneveAddDelTunnel2Reply)(nil),
(*GeneveAddDelTunnelReply)(nil),
(*GeneveTunnelDetails)(nil),
(*GeneveTunnelDump)(nil),
diff --git a/binapi/geneve/geneve_rpc.ba.go b/binapi/geneve/geneve_rpc.ba.go
index f2dacb8..5d44d7d 100644
--- a/binapi/geneve/geneve_rpc.ba.go
+++ b/binapi/geneve/geneve_rpc.ba.go
@@ -14,6 +14,7 @@ import (
// RPCService defines RPC service geneve.
type RPCService interface {
GeneveAddDelTunnel(ctx context.Context, in *GeneveAddDelTunnel) (*GeneveAddDelTunnelReply, error)
+ GeneveAddDelTunnel2(ctx context.Context, in *GeneveAddDelTunnel2) (*GeneveAddDelTunnel2Reply, error)
GeneveTunnelDump(ctx context.Context, in *GeneveTunnelDump) (RPCService_GeneveTunnelDumpClient, error)
SwInterfaceSetGeneveBypass(ctx context.Context, in *SwInterfaceSetGeneveBypass) (*SwInterfaceSetGeneveBypassReply, error)
}
@@ -35,6 +36,15 @@ func (c *serviceClient) GeneveAddDelTunnel(ctx context.Context, in *GeneveAddDel
return out, api.RetvalToVPPApiError(out.Retval)
}
+func (c *serviceClient) GeneveAddDelTunnel2(ctx context.Context, in *GeneveAddDelTunnel2) (*GeneveAddDelTunnel2Reply, error) {
+ out := new(GeneveAddDelTunnel2Reply)
+ err := c.conn.Invoke(ctx, in, out)
+ if err != nil {
+ return nil, err
+ }
+ return out, api.RetvalToVPPApiError(out.Retval)
+}
+
func (c *serviceClient) GeneveTunnelDump(ctx context.Context, in *GeneveTunnelDump) (RPCService_GeneveTunnelDumpClient, error) {
stream, err := c.conn.NewStream(ctx)
if err != nil {