// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: tap.api.json
+// source: tap.api.json
/*
-Package tap is a generated VPP binary API of the 'tap' VPP module.
+ Package tap is a generated from VPP binary API module 'tap'.
-It is generated from this file:
- tap.api.json
+ It contains following objects:
+ 8 messages
+ 4 services
-It contains these VPP binary API objects:
- 8 messages
- 4 services
*/
package tap
import "bytes"
// Reference imports to suppress errors if they are not otherwise used.
+var _ = api.RegisterMessage
var _ = struc.Pack
var _ = bytes.NewBuffer
+// Services represents VPP binary API services:
+//
+// "services": {
+// "tap_delete": {
+// "reply": "tap_delete_reply"
+// },
+// "sw_interface_tap_dump": {
+// "reply": "sw_interface_tap_details",
+// "stream": true
+// },
+// "tap_modify": {
+// "reply": "tap_modify_reply"
+// },
+// "tap_connect": {
+// "reply": "tap_connect_reply"
+// }
+// },
+//
+type Services interface {
+ DumpSwInterfaceTap(*SwInterfaceTapDump) ([]*SwInterfaceTapDetails, error)
+ TapConnect(*TapConnect) (*TapConnectReply, error)
+ TapDelete(*TapDelete) (*TapDeleteReply, error)
+ TapModify(*TapModify) (*TapModifyReply, error)
+}
+
/* Messages */
-// TapConnect represents the VPP binary API message 'tap_connect'.
-// Generated from 'tap.api.json', line 4:
+// TapConnect represents VPP binary API message 'tap_connect':
//
-// "tap_connect",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "use_random_mac"
-// ],
-// [
-// "u8",
-// "tap_name",
-// 64
-// ],
-// [
-// "u8",
-// "mac_address",
-// 6
-// ],
-// [
-// "u8",
-// "renumber"
-// ],
-// [
-// "u32",
-// "custom_dev_instance"
-// ],
-// [
-// "u8",
-// "ip4_address_set"
-// ],
-// [
-// "u8",
-// "ip4_address",
-// 4
-// ],
-// [
-// "u8",
-// "ip4_mask_width"
-// ],
-// [
-// "u8",
-// "ip6_address_set"
-// ],
-// [
-// "u8",
-// "ip6_address",
-// 16
-// ],
-// [
-// "u8",
-// "ip6_mask_width"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// {
-// "crc": "0x9b9c396f"
-// }
+// "tap_connect",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u8",
+// "use_random_mac"
+// ],
+// [
+// "u8",
+// "tap_name",
+// 64
+// ],
+// [
+// "u8",
+// "mac_address",
+// 6
+// ],
+// [
+// "u8",
+// "renumber"
+// ],
+// [
+// "u32",
+// "custom_dev_instance"
+// ],
+// [
+// "u8",
+// "ip4_address_set"
+// ],
+// [
+// "u8",
+// "ip4_address",
+// 4
+// ],
+// [
+// "u8",
+// "ip4_mask_width"
+// ],
+// [
+// "u8",
+// "ip6_address_set"
+// ],
+// [
+// "u8",
+// "ip6_address",
+// 16
+// ],
+// [
+// "u8",
+// "ip6_mask_width"
+// ],
+// [
+// "u8",
+// "tag",
+// 64
+// ],
+// {
+// "crc": "0x9b9c396f"
+// }
//
type TapConnect struct {
UseRandomMac uint8
func (*TapConnect) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewTapConnect() api.Message {
- return &TapConnect{}
-}
-// TapConnectReply represents the VPP binary API message 'tap_connect_reply'.
-// Generated from 'tap.api.json', line 75:
+// TapConnectReply represents VPP binary API message 'tap_connect_reply':
//
-// "tap_connect_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0xfda5941f"
-// }
+// "tap_connect_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// {
+// "crc": "0xfda5941f"
+// }
//
type TapConnectReply struct {
Retval int32
func (*TapConnectReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewTapConnectReply() api.Message {
- return &TapConnectReply{}
-}
-// TapModify represents the VPP binary API message 'tap_modify'.
-// Generated from 'tap.api.json', line 97:
+// TapModify represents VPP binary API message 'tap_modify':
//
-// "tap_modify",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "use_random_mac"
-// ],
-// [
-// "u8",
-// "tap_name",
-// 64
-// ],
-// [
-// "u8",
-// "mac_address",
-// 6
-// ],
-// [
-// "u8",
-// "renumber"
-// ],
-// [
-// "u32",
-// "custom_dev_instance"
-// ],
-// {
-// "crc": "0x8047ae5c"
-// }
+// "tap_modify",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// [
+// "u8",
+// "use_random_mac"
+// ],
+// [
+// "u8",
+// "tap_name",
+// 64
+// ],
+// [
+// "u8",
+// "mac_address",
+// 6
+// ],
+// [
+// "u8",
+// "renumber"
+// ],
+// [
+// "u32",
+// "custom_dev_instance"
+// ],
+// {
+// "crc": "0x8047ae5c"
+// }
//
type TapModify struct {
SwIfIndex uint32
func (*TapModify) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewTapModify() api.Message {
- return &TapModify{}
-}
-// TapModifyReply represents the VPP binary API message 'tap_modify_reply'.
-// Generated from 'tap.api.json', line 141:
+// TapModifyReply represents VPP binary API message 'tap_modify_reply':
//
-// "tap_modify_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0xfda5941f"
-// }
+// "tap_modify_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// {
+// "crc": "0xfda5941f"
+// }
//
type TapModifyReply struct {
Retval int32
func (*TapModifyReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewTapModifyReply() api.Message {
- return &TapModifyReply{}
-}
-// TapDelete represents the VPP binary API message 'tap_delete'.
-// Generated from 'tap.api.json', line 163:
+// TapDelete represents VPP binary API message 'tap_delete':
//
-// "tap_delete",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0x529cb13f"
-// }
+// "tap_delete",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// {
+// "crc": "0x529cb13f"
+// }
//
type TapDelete struct {
SwIfIndex uint32
func (*TapDelete) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewTapDelete() api.Message {
- return &TapDelete{}
-}
-// TapDeleteReply represents the VPP binary API message 'tap_delete_reply'.
-// Generated from 'tap.api.json', line 185:
+// TapDeleteReply represents VPP binary API message 'tap_delete_reply':
//
-// "tap_delete_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
+// "tap_delete_reply",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "i32",
+// "retval"
+// ],
+// {
+// "crc": "0xe8d4e804"
+// }
//
type TapDeleteReply struct {
Retval int32
func (*TapDeleteReply) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewTapDeleteReply() api.Message {
- return &TapDeleteReply{}
-}
-// SwInterfaceTapDump represents the VPP binary API message 'sw_interface_tap_dump'.
-// Generated from 'tap.api.json', line 203:
+// SwInterfaceTapDump represents VPP binary API message 'sw_interface_tap_dump':
//
-// "sw_interface_tap_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// {
-// "crc": "0x51077d14"
-// }
+// "sw_interface_tap_dump",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "client_index"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// {
+// "crc": "0x51077d14"
+// }
//
type SwInterfaceTapDump struct{}
func (*SwInterfaceTapDump) GetMessageType() api.MessageType {
return api.RequestMessage
}
-func NewSwInterfaceTapDump() api.Message {
- return &SwInterfaceTapDump{}
-}
-// SwInterfaceTapDetails represents the VPP binary API message 'sw_interface_tap_details'.
-// Generated from 'tap.api.json', line 221:
+// SwInterfaceTapDetails represents VPP binary API message 'sw_interface_tap_details':
//
-// "sw_interface_tap_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "dev_name",
-// 64
-// ],
-// {
-// "crc": "0x76229a57"
-// }
+// "sw_interface_tap_details",
+// [
+// "u16",
+// "_vl_msg_id"
+// ],
+// [
+// "u32",
+// "context"
+// ],
+// [
+// "u32",
+// "sw_if_index"
+// ],
+// [
+// "u8",
+// "dev_name",
+// 64
+// ],
+// {
+// "crc": "0x76229a57"
+// }
//
type SwInterfaceTapDetails struct {
SwIfIndex uint32
func (*SwInterfaceTapDetails) GetMessageType() api.MessageType {
return api.ReplyMessage
}
-func NewSwInterfaceTapDetails() api.Message {
- return &SwInterfaceTapDetails{}
-}
-
-/* Services */
-
-type Services interface {
- DumpSwInterfaceTap(*SwInterfaceTapDump) (*SwInterfaceTapDetails, error)
- TapConnect(*TapConnect) (*TapConnectReply, error)
- TapDelete(*TapDelete) (*TapDeleteReply, error)
- TapModify(*TapModify) (*TapModifyReply, error)
-}
func init() {
api.RegisterMessage((*TapConnect)(nil), "tap.TapConnect")