X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapi%2Fpppoe%2Fpppoe.ba.go;h=7b19cae672b5ce9b507414185a4e93f7095dfee1;hb=debc52dea8a81417bb08ca5bb934c7876b6d65e0;hp=277ee869d37d0200688eb774a8f0894d94eba4b0;hpb=c0da1f2999a6b08d003c0fed1a23e1ca60dd1571;p=govpp.git diff --git a/binapi/pppoe/pppoe.ba.go b/binapi/pppoe/pppoe.ba.go index 277ee86..7b19cae 100644 --- a/binapi/pppoe/pppoe.ba.go +++ b/binapi/pppoe/pppoe.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 +// binapi-generator: v0.3.5-56-gc0da1f2-dirty +// VPP: 21.06-release // source: /usr/share/vpp/api/plugins/pppoe.api.json // Package pppoe contains generated bindings for API file pppoe.api. // // Contents: -// 4 messages +// 6 messages // package pppoe @@ -28,9 +28,79 @@ const _ = api.GoVppAPIPackageIsVersion2 const ( APIFile = "pppoe" APIVersion = "2.0.0" - VersionCrc = 0x24ebf557 + VersionCrc = 0xec9e86bf ) +// PppoeAddDelCp defines message 'pppoe_add_del_cp'. +type PppoeAddDelCp struct { + SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` + IsAdd uint8 `binapi:"u8,name=is_add" json:"is_add,omitempty"` +} + +func (m *PppoeAddDelCp) Reset() { *m = PppoeAddDelCp{} } +func (*PppoeAddDelCp) GetMessageName() string { return "pppoe_add_del_cp" } +func (*PppoeAddDelCp) GetCrcString() string { return "eacd9aaa" } +func (*PppoeAddDelCp) GetMessageType() api.MessageType { + return api.RequestMessage +} + +func (m *PppoeAddDelCp) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.SwIfIndex + size += 1 // m.IsAdd + return size +} +func (m *PppoeAddDelCp) Marshal(b []byte) ([]byte, error) { + if b == nil { + b = make([]byte, m.Size()) + } + buf := codec.NewBuffer(b) + buf.EncodeUint32(uint32(m.SwIfIndex)) + buf.EncodeUint8(m.IsAdd) + return buf.Bytes(), nil +} +func (m *PppoeAddDelCp) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32()) + m.IsAdd = buf.DecodeUint8() + return nil +} + +// PppoeAddDelCpReply defines message 'pppoe_add_del_cp_reply'. +type PppoeAddDelCpReply struct { + Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` +} + +func (m *PppoeAddDelCpReply) Reset() { *m = PppoeAddDelCpReply{} } +func (*PppoeAddDelCpReply) GetMessageName() string { return "pppoe_add_del_cp_reply" } +func (*PppoeAddDelCpReply) GetCrcString() string { return "e8d4e804" } +func (*PppoeAddDelCpReply) GetMessageType() api.MessageType { + return api.ReplyMessage +} + +func (m *PppoeAddDelCpReply) Size() (size int) { + if m == nil { + return 0 + } + size += 4 // m.Retval + return size +} +func (m *PppoeAddDelCpReply) 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 *PppoeAddDelCpReply) Unmarshal(b []byte) error { + buf := codec.NewBuffer(b) + m.Retval = buf.DecodeInt32() + return nil +} + // PppoeAddDelSession defines message 'pppoe_add_del_session'. type PppoeAddDelSession struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` @@ -42,7 +112,7 @@ type PppoeAddDelSession struct { func (m *PppoeAddDelSession) Reset() { *m = PppoeAddDelSession{} } func (*PppoeAddDelSession) GetMessageName() string { return "pppoe_add_del_session" } -func (*PppoeAddDelSession) GetCrcString() string { return "46ace853" } +func (*PppoeAddDelSession) GetCrcString() string { return "f6fd759e" } func (*PppoeAddDelSession) GetMessageType() api.MessageType { return api.RequestMessage } @@ -133,7 +203,7 @@ type PppoeSessionDetails struct { func (m *PppoeSessionDetails) Reset() { *m = PppoeSessionDetails{} } func (*PppoeSessionDetails) GetMessageName() string { return "pppoe_session_details" } -func (*PppoeSessionDetails) GetCrcString() string { return "332bc742" } +func (*PppoeSessionDetails) GetCrcString() string { return "4b8e8a4a" } func (*PppoeSessionDetails) GetMessageType() api.MessageType { return api.ReplyMessage } @@ -215,15 +285,19 @@ func (m *PppoeSessionDump) Unmarshal(b []byte) error { func init() { file_pppoe_binapi_init() } func file_pppoe_binapi_init() { - api.RegisterMessage((*PppoeAddDelSession)(nil), "pppoe_add_del_session_46ace853") + api.RegisterMessage((*PppoeAddDelCp)(nil), "pppoe_add_del_cp_eacd9aaa") + api.RegisterMessage((*PppoeAddDelCpReply)(nil), "pppoe_add_del_cp_reply_e8d4e804") + api.RegisterMessage((*PppoeAddDelSession)(nil), "pppoe_add_del_session_f6fd759e") api.RegisterMessage((*PppoeAddDelSessionReply)(nil), "pppoe_add_del_session_reply_5383d31f") - api.RegisterMessage((*PppoeSessionDetails)(nil), "pppoe_session_details_332bc742") + api.RegisterMessage((*PppoeSessionDetails)(nil), "pppoe_session_details_4b8e8a4a") api.RegisterMessage((*PppoeSessionDump)(nil), "pppoe_session_dump_f9e6675e") } // Messages returns list of all messages in this module. func AllMessages() []api.Message { return []api.Message{ + (*PppoeAddDelCp)(nil), + (*PppoeAddDelCpReply)(nil), (*PppoeAddDelSession)(nil), (*PppoeAddDelSessionReply)(nil), (*PppoeSessionDetails)(nil),