diff options
Diffstat (limited to 'binapi/nat44_ed/nat44_ed.ba.go')
-rw-r--r-- | binapi/nat44_ed/nat44_ed.ba.go | 331 |
1 files changed, 327 insertions, 4 deletions
diff --git a/binapi/nat44_ed/nat44_ed.ba.go b/binapi/nat44_ed/nat44_ed.ba.go index b8aef37..6bc9b75 100644 --- a/binapi/nat44_ed/nat44_ed.ba.go +++ b/binapi/nat44_ed/nat44_ed.ba.go @@ -1,7 +1,7 @@ // Code generated by GoVPP's binapi-generator. DO NOT EDIT. // versions: // binapi-generator: v0.5.0-dev -// VPP: 21.06-release +// VPP: 22.02-release // source: /usr/share/vpp/api/plugins/nat44_ed.api.json // Package nat44_ed contains generated bindings for API file nat44_ed.api. @@ -9,7 +9,7 @@ // Contents: // 1 enum // 1 struct -// 97 messages +// 104 messages // package nat44_ed @@ -31,8 +31,8 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "nat44_ed" - APIVersion = "5.3.0" - VersionCrc = 0xfd9ae40f + APIVersion = "5.4.0" + VersionCrc = 0x5697d0ef ) // Nat44ConfigFlags defines enum 'nat44_config_flags'. @@ -925,6 +925,187 @@ func (m *Nat44DelUserReply) Unmarshal(b []byte) error { return nil } +// Nat44EdAddDelOutputInterface defines message 'nat44_ed_add_del_output_interface'. +type Nat44EdAddDelOutputInterface struct { + IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *Nat44EdAddDelOutputInterface) Reset() { *m = Nat44EdAddDelOutputInterface{} } +func (*Nat44EdAddDelOutputInterface) GetMessageName() string { + return "nat44_ed_add_del_output_interface" +} +func (*Nat44EdAddDelOutputInterface) GetCrcString() string { return "47d6e753" } +func (*Nat44EdAddDelOutputInterface) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *Nat44EdAddDelOutputInterface) Size() (size int) { + if m == nil { + return 0 + } + size += 1 // m.IsAdd + size += 4 // m.SwIfIndex + return size +} +func (m *Nat44EdAddDelOutputInterface) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBool(m.IsAdd) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *Nat44EdAddDelOutputInterface) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.IsAdd = buf.DecodeBool() + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + +// Nat44EdAddDelOutputInterfaceReply defines message 'nat44_ed_add_del_output_interface_reply'. +type Nat44EdAddDelOutputInterfaceReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *Nat44EdAddDelOutputInterfaceReply) Reset() { *m = Nat44EdAddDelOutputInterfaceReply{} } +func (*Nat44EdAddDelOutputInterfaceReply) GetMessageName() string { + return "nat44_ed_add_del_output_interface_reply" +} +func (*Nat44EdAddDelOutputInterfaceReply) GetCrcString() string { return "e8d4e804" } +func (*Nat44EdAddDelOutputInterfaceReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *Nat44EdAddDelOutputInterfaceReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *Nat44EdAddDelOutputInterfaceReply) 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 *Nat44EdAddDelOutputInterfaceReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + +// Nat44EdOutputInterfaceDetails defines message 'nat44_ed_output_interface_details'. +type Nat44EdOutputInterfaceDetails struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` +} + +func (m *Nat44EdOutputInterfaceDetails) Reset() { *m = Nat44EdOutputInterfaceDetails{} } +func (*Nat44EdOutputInterfaceDetails) GetMessageName() string { + return "nat44_ed_output_interface_details" +} +func (*Nat44EdOutputInterfaceDetails) GetCrcString() string { return "0b45011c" } +func (*Nat44EdOutputInterfaceDetails) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *Nat44EdOutputInterfaceDetails) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + return size +} +func (m *Nat44EdOutputInterfaceDetails) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + return buf.Bytes(), nil +} +func (m *Nat44EdOutputInterfaceDetails) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + return nil +} + +// Nat44EdOutputInterfaceGet defines message 'nat44_ed_output_interface_get'. +type Nat44EdOutputInterfaceGet struct { + Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` +} + +func (m *Nat44EdOutputInterfaceGet) Reset() { *m = Nat44EdOutputInterfaceGet{} } +func (*Nat44EdOutputInterfaceGet) GetMessageName() string { return "nat44_ed_output_interface_get" } +func (*Nat44EdOutputInterfaceGet) GetCrcString() string { return "f75ba505" } +func (*Nat44EdOutputInterfaceGet) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *Nat44EdOutputInterfaceGet) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Cursor + return size +} +func (m *Nat44EdOutputInterfaceGet) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(m.Cursor) + return buf.Bytes(), nil +} +func (m *Nat44EdOutputInterfaceGet) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Cursor = buf.DecodeUint32() + return nil +} + +// Nat44EdOutputInterfaceGetReply defines message 'nat44_ed_output_interface_get_reply'. +type Nat44EdOutputInterfaceGetReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` + Cursor uint32 `binapi:"u32,name=cursor" json:"cursor,omitempty"` +} + +func (m *Nat44EdOutputInterfaceGetReply) Reset() { *m = Nat44EdOutputInterfaceGetReply{} } +func (*Nat44EdOutputInterfaceGetReply) GetMessageName() string { + return "nat44_ed_output_interface_get_reply" +} +func (*Nat44EdOutputInterfaceGetReply) GetCrcString() string { return "53b48f5d" } +func (*Nat44EdOutputInterfaceGetReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *Nat44EdOutputInterfaceGetReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + size += 4 // m.Cursor + return size +} +func (m *Nat44EdOutputInterfaceGetReply) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeInt32(m.Retval) + buf.EncodeUint32(m.Cursor) + return buf.Bytes(), nil +} +func (m *Nat44EdOutputInterfaceGetReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + m.Cursor = buf.DecodeUint32() + return nil +} + // Nat44EdPluginEnableDisable defines message 'nat44_ed_plugin_enable_disable'. // InProgress: the message form may change in the future versions type Nat44EdPluginEnableDisable struct { @@ -1446,6 +1627,7 @@ func (m *Nat44InterfaceAddDelFeatureReply) Unmarshal(b []byte) error { } // Nat44InterfaceAddDelOutputFeature defines message 'nat44_interface_add_del_output_feature'. +// Deprecated: the message will be removed in the future versions type Nat44InterfaceAddDelOutputFeature struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` @@ -1489,6 +1671,7 @@ func (m *Nat44InterfaceAddDelOutputFeature) Unmarshal(b []byte) error { } // Nat44InterfaceAddDelOutputFeatureReply defines message 'nat44_interface_add_del_output_feature_reply'. +// Deprecated: the message will be removed in the future versions type Nat44InterfaceAddDelOutputFeatureReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` } @@ -1654,6 +1837,7 @@ func (m *Nat44InterfaceDump) Unmarshal(b []byte) error { } // Nat44InterfaceOutputFeatureDetails defines message 'nat44_interface_output_feature_details'. +// Deprecated: the message will be removed in the future versions type Nat44InterfaceOutputFeatureDetails struct { Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` @@ -1693,6 +1877,7 @@ func (m *Nat44InterfaceOutputFeatureDetails) Unmarshal(b []byte) error { } // Nat44InterfaceOutputFeatureDump defines message 'nat44_interface_output_feature_dump'. +// Deprecated: the message will be removed in the future versions type Nat44InterfaceOutputFeatureDump struct{} func (m *Nat44InterfaceOutputFeatureDump) Reset() { *m = Nat44InterfaceOutputFeatureDump{} } @@ -2564,6 +2749,130 @@ func (m *Nat44UserSessionDump) Unmarshal(b []byte) error { return nil } +// Nat44UserSessionV2Details defines message 'nat44_user_session_v2_details'. +// InProgress: the message form may change in the future versions +type Nat44UserSessionV2Details struct { + OutsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=outside_ip_address" json:"outside_ip_address,omitempty"` + OutsidePort uint16 `binapi:"u16,name=outside_port" json:"outside_port,omitempty"` + InsideIPAddress ip_types.IP4Address `binapi:"ip4_address,name=inside_ip_address" json:"inside_ip_address,omitempty"` + InsidePort uint16 `binapi:"u16,name=inside_port" json:"inside_port,omitempty"` + Protocol uint16 `binapi:"u16,name=protocol" json:"protocol,omitempty"` + Flags nat_types.NatConfigFlags `binapi:"nat_config_flags,name=flags" json:"flags,omitempty"` + LastHeard uint64 `binapi:"u64,name=last_heard" json:"last_heard,omitempty"` + TotalBytes uint64 `binapi:"u64,name=total_bytes" json:"total_bytes,omitempty"` + TotalPkts uint32 `binapi:"u32,name=total_pkts" json:"total_pkts,omitempty"` + ExtHostAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_address" json:"ext_host_address,omitempty"` + ExtHostPort uint16 `binapi:"u16,name=ext_host_port" json:"ext_host_port,omitempty"` + ExtHostNatAddress ip_types.IP4Address `binapi:"ip4_address,name=ext_host_nat_address" json:"ext_host_nat_address,omitempty"` + ExtHostNatPort uint16 `binapi:"u16,name=ext_host_nat_port" json:"ext_host_nat_port,omitempty"` + IsTimedOut bool `binapi:"bool,name=is_timed_out" json:"is_timed_out,omitempty"` +} + +func (m *Nat44UserSessionV2Details) Reset() { *m = Nat44UserSessionV2Details{} } +func (*Nat44UserSessionV2Details) GetMessageName() string { return "nat44_user_session_v2_details" } +func (*Nat44UserSessionV2Details) GetCrcString() string { return "fd42b729" } +func (*Nat44UserSessionV2Details) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *Nat44UserSessionV2Details) Size() (size int) { + if m == nil { + return 0 + } + size += 1 * 4 // m.OutsideIPAddress + size += 2 // m.OutsidePort + size += 1 * 4 // m.InsideIPAddress + size += 2 // m.InsidePort + size += 2 // m.Protocol + size += 1 // m.Flags + size += 8 // m.LastHeard + size += 8 // m.TotalBytes + size += 4 // m.TotalPkts + size += 1 * 4 // m.ExtHostAddress + size += 2 // m.ExtHostPort + size += 1 * 4 // m.ExtHostNatAddress + size += 2 // m.ExtHostNatPort + size += 1 // m.IsTimedOut + return size +} +func (m *Nat44UserSessionV2Details) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBytes(m.OutsideIPAddress[:], 4) + buf.EncodeUint16(m.OutsidePort) + buf.EncodeBytes(m.InsideIPAddress[:], 4) + buf.EncodeUint16(m.InsidePort) + buf.EncodeUint16(m.Protocol) + buf.EncodeUint8(uint8(m.Flags)) + buf.EncodeUint64(m.LastHeard) + buf.EncodeUint64(m.TotalBytes) + buf.EncodeUint32(m.TotalPkts) + buf.EncodeBytes(m.ExtHostAddress[:], 4) + buf.EncodeUint16(m.ExtHostPort) + buf.EncodeBytes(m.ExtHostNatAddress[:], 4) + buf.EncodeUint16(m.ExtHostNatPort) + buf.EncodeBool(m.IsTimedOut) + return buf.Bytes(), nil +} +func (m *Nat44UserSessionV2Details) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + copy(m.OutsideIPAddress[:], buf.DecodeBytes(4)) + m.OutsidePort = buf.DecodeUint16() + copy(m.InsideIPAddress[:], buf.DecodeBytes(4)) + m.InsidePort = buf.DecodeUint16() + m.Protocol = buf.DecodeUint16() + m.Flags = nat_types.NatConfigFlags(buf.DecodeUint8()) + m.LastHeard = buf.DecodeUint64() + m.TotalBytes = buf.DecodeUint64() + m.TotalPkts = buf.DecodeUint32() + copy(m.ExtHostAddress[:], buf.DecodeBytes(4)) + m.ExtHostPort = buf.DecodeUint16() + copy(m.ExtHostNatAddress[:], buf.DecodeBytes(4)) + m.ExtHostNatPort = buf.DecodeUint16() + m.IsTimedOut = buf.DecodeBool() + return nil +} + +// Nat44UserSessionV2Dump defines message 'nat44_user_session_v2_dump'. +// InProgress: the message form may change in the future versions +type Nat44UserSessionV2Dump struct { + IPAddress ip_types.IP4Address `binapi:"ip4_address,name=ip_address" json:"ip_address,omitempty"` + VrfID uint32 `binapi:"u32,name=vrf_id" json:"vrf_id,omitempty"` +} + +func (m *Nat44UserSessionV2Dump) Reset() { *m = Nat44UserSessionV2Dump{} } +func (*Nat44UserSessionV2Dump) GetMessageName() string { return "nat44_user_session_v2_dump" } +func (*Nat44UserSessionV2Dump) GetCrcString() string { return "e1899c98" } +func (*Nat44UserSessionV2Dump) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *Nat44UserSessionV2Dump) Size() (size int) { + if m == nil { + return 0 + } + size += 1 * 4 // m.IPAddress + size += 4 // m.VrfID + return size +} +func (m *Nat44UserSessionV2Dump) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeBytes(m.IPAddress[:], 4) + buf.EncodeUint32(m.VrfID) + return buf.Bytes(), nil +} +func (m *Nat44UserSessionV2Dump) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + copy(m.IPAddress[:], buf.DecodeBytes(4)) + m.VrfID = buf.DecodeUint32() + return nil +} + // NatControlPing defines message 'nat_control_ping'. // Deprecated: the message will be removed in the future versions type NatControlPing struct{} @@ -4129,6 +4438,11 @@ func file_nat44_ed_binapi_init() { api.RegisterMessage((*Nat44DelSessionReply)(nil), "nat44_del_session_reply_e8d4e804") api.RegisterMessage((*Nat44DelUser)(nil), "nat44_del_user_99a9f998") api.RegisterMessage((*Nat44DelUserReply)(nil), "nat44_del_user_reply_e8d4e804") + api.RegisterMessage((*Nat44EdAddDelOutputInterface)(nil), "nat44_ed_add_del_output_interface_47d6e753") + api.RegisterMessage((*Nat44EdAddDelOutputInterfaceReply)(nil), "nat44_ed_add_del_output_interface_reply_e8d4e804") + api.RegisterMessage((*Nat44EdOutputInterfaceDetails)(nil), "nat44_ed_output_interface_details_0b45011c") + api.RegisterMessage((*Nat44EdOutputInterfaceGet)(nil), "nat44_ed_output_interface_get_f75ba505") + api.RegisterMessage((*Nat44EdOutputInterfaceGetReply)(nil), "nat44_ed_output_interface_get_reply_53b48f5d") api.RegisterMessage((*Nat44EdPluginEnableDisable)(nil), "nat44_ed_plugin_enable_disable_be17f8dd") api.RegisterMessage((*Nat44EdPluginEnableDisableReply)(nil), "nat44_ed_plugin_enable_disable_reply_e8d4e804") api.RegisterMessage((*Nat44EdSetFqOptions)(nil), "nat44_ed_set_fq_options_2399bd71") @@ -4169,6 +4483,8 @@ func file_nat44_ed_binapi_init() { api.RegisterMessage((*Nat44UserDump)(nil), "nat44_user_dump_51077d14") api.RegisterMessage((*Nat44UserSessionDetails)(nil), "nat44_user_session_details_2cf6e16d") api.RegisterMessage((*Nat44UserSessionDump)(nil), "nat44_user_session_dump_e1899c98") + api.RegisterMessage((*Nat44UserSessionV2Details)(nil), "nat44_user_session_v2_details_fd42b729") + api.RegisterMessage((*Nat44UserSessionV2Dump)(nil), "nat44_user_session_v2_dump_e1899c98") api.RegisterMessage((*NatControlPing)(nil), "nat_control_ping_51077d14") api.RegisterMessage((*NatControlPingReply)(nil), "nat_control_ping_reply_f6b0b8ca") api.RegisterMessage((*NatGetAddrAndPortAllocAlg)(nil), "nat_get_addr_and_port_alloc_alg_51077d14") @@ -4231,6 +4547,11 @@ func AllMessages() []api.Message { (*Nat44DelSessionReply)(nil), (*Nat44DelUser)(nil), (*Nat44DelUserReply)(nil), + (*Nat44EdAddDelOutputInterface)(nil), + (*Nat44EdAddDelOutputInterfaceReply)(nil), + (*Nat44EdOutputInterfaceDetails)(nil), + (*Nat44EdOutputInterfaceGet)(nil), + (*Nat44EdOutputInterfaceGetReply)(nil), (*Nat44EdPluginEnableDisable)(nil), (*Nat44EdPluginEnableDisableReply)(nil), (*Nat44EdSetFqOptions)(nil), @@ -4271,6 +4592,8 @@ func AllMessages() []api.Message { (*Nat44UserDump)(nil), (*Nat44UserSessionDetails)(nil), (*Nat44UserSessionDump)(nil), + (*Nat44UserSessionV2Details)(nil), + (*Nat44UserSessionV2Dump)(nil), (*NatControlPing)(nil), (*NatControlPingReply)(nil), (*NatGetAddrAndPortAllocAlg)(nil), |