Documentation
¶
Overview ¶
Package l2 is a generated from VPP binary API module 'l2'. It contains following objects: 45 messages 10 types 3 enums 1 union 22 services
Index ¶
- type Address
- type AddressFamily
- type AddressUnion
- type BdFlags
- type BdIPMacAddDel
- type BdIPMacAddDelReply
- type BdIPMacDetails
- type BdIPMacDump
- type BridgeDomainAddDel
- type BridgeDomainAddDelReply
- type BridgeDomainDetails
- type BridgeDomainDump
- type BridgeDomainSetMacAge
- type BridgeDomainSetMacAgeReply
- type BridgeDomainSwIf
- type BridgeFlags
- type BridgeFlagsReply
- type IP4Address
- type IP4Prefix
- type IP6Address
- type IP6Prefix
- type L2FibClearTable
- type L2FibClearTableReply
- type L2FibTableDetails
- type L2FibTableDump
- type L2Flags
- type L2FlagsReply
- type L2InterfaceEfpFilter
- type L2InterfaceEfpFilterReply
- type L2InterfacePbbTagRewrite
- type L2InterfacePbbTagRewriteReply
- type L2InterfaceVlanTagRewrite
- type L2InterfaceVlanTagRewriteReply
- type L2MacsEvent
- type L2PatchAddDel
- type L2PatchAddDelReply
- type L2PortType
- type L2XconnectDetails
- type L2XconnectDump
- type L2fibAddDel
- type L2fibAddDelReply
- type L2fibFlushAll
- type L2fibFlushAllReply
- type L2fibFlushBd
- type L2fibFlushBdReply
- type L2fibFlushInt
- type L2fibFlushIntReply
- type MacAddress
- type MacEntry
- type Mprefix
- type Prefix
- type Services
- type SwInterfaceSetL2Bridge
- type SwInterfaceSetL2BridgeReply
- type SwInterfaceSetL2Xconnect
- type SwInterfaceSetL2XconnectReply
- type SwInterfaceSetVpath
- type SwInterfaceSetVpathReply
- type WantL2MacsEvents
- type WantL2MacsEventsReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Af AddressFamily
Un AddressUnion
}
Address represents the VPP binary API type 'address'.
"address",
[
"vl_api_address_family_t",
"af"
],
[
"vl_api_address_union_t",
"un"
],
{
"crc": "0x09f11671"
}
type AddressFamily ¶
type AddressFamily uint32
AddressFamily represents the VPP binary API enum 'address_family'.
"address_family",
[
"ADDRESS_IP4",
0
],
[
"ADDRESS_IP6",
1
],
{
"enumtype": "u32"
}
const ( ADDRESS_IP4 AddressFamily = 0 ADDRESS_IP6 AddressFamily = 1 )
type AddressUnion ¶
type AddressUnion struct {
Union_data [16]byte
}
AddressUnion represents the VPP binary API union 'address_union'.
"address_union",
[
"vl_api_ip4_address_t",
"ip4"
],
[
"vl_api_ip6_address_t",
"ip6"
],
{
"crc": "0xd68a2fb4"
}
func (*AddressUnion) GetCrcString ¶
func (*AddressUnion) GetCrcString() string
func (*AddressUnion) GetIP4 ¶
func (u *AddressUnion) GetIP4() (a IP4Address)
func (*AddressUnion) GetIP6 ¶
func (u *AddressUnion) GetIP6() (a IP6Address)
func (*AddressUnion) GetTypeName ¶
func (*AddressUnion) GetTypeName() string
func (*AddressUnion) SetIP4 ¶
func (u *AddressUnion) SetIP4(a IP4Address)
func (*AddressUnion) SetIP6 ¶
func (u *AddressUnion) SetIP6(a IP6Address)
type BdFlags ¶
type BdFlags uint32
BdFlags represents the VPP binary API enum 'bd_flags'.
"bd_flags",
[
"BRIDGE_API_FLAG_LEARN",
1
],
[
"BRIDGE_API_FLAG_FWD",
2
],
[
"BRIDGE_API_FLAG_FLOOD",
4
],
[
"BRIDGE_API_FLAG_UU_FLOOD",
8
],
[
"BRIDGE_API_FLAG_ARP_TERM",
16
],
{
"enumtype": "u32"
}
type BdIPMacAddDel ¶
type BdIPMacAddDel struct {
BdID uint32
IsAdd uint8
IP Address
Mac MacAddress
}
BdIPMacAddDel represents the VPP binary API message 'bd_ip_mac_add_del'.
"bd_ip_mac_add_del",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"is_add"
],
[
"vl_api_address_t",
"ip"
],
[
"vl_api_mac_address_t",
"mac"
],
{
"crc": "0xfb873902"
}
func (*BdIPMacAddDel) GetCrcString ¶
func (*BdIPMacAddDel) GetCrcString() string
func (*BdIPMacAddDel) GetMessageName ¶
func (*BdIPMacAddDel) GetMessageName() string
func (*BdIPMacAddDel) GetMessageType ¶
func (*BdIPMacAddDel) GetMessageType() api.MessageType
type BdIPMacAddDelReply ¶
type BdIPMacAddDelReply struct {
Retval int32
}
BdIPMacAddDelReply represents the VPP binary API message 'bd_ip_mac_add_del_reply'.
"bd_ip_mac_add_del_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*BdIPMacAddDelReply) GetCrcString ¶
func (*BdIPMacAddDelReply) GetCrcString() string
func (*BdIPMacAddDelReply) GetMessageName ¶
func (*BdIPMacAddDelReply) GetMessageName() string
func (*BdIPMacAddDelReply) GetMessageType ¶
func (*BdIPMacAddDelReply) GetMessageType() api.MessageType
type BdIPMacDetails ¶
type BdIPMacDetails struct {
BdID uint32
IsIPv6 uint8
IPAddress []byte `struc:"[16]byte"`
MacAddress []byte `struc:"[6]byte"`
}
BdIPMacDetails represents the VPP binary API message 'bd_ip_mac_details'.
"bd_ip_mac_details",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"is_ipv6"
],
[
"u8",
"ip_address",
16
],
[
"u8",
"mac_address",
6
],
{
"crc": "0xd3184eda"
}
func (*BdIPMacDetails) GetCrcString ¶
func (*BdIPMacDetails) GetCrcString() string
func (*BdIPMacDetails) GetMessageName ¶
func (*BdIPMacDetails) GetMessageName() string
func (*BdIPMacDetails) GetMessageType ¶
func (*BdIPMacDetails) GetMessageType() api.MessageType
type BdIPMacDump ¶
type BdIPMacDump struct {
BdID uint32
}
BdIPMacDump represents the VPP binary API message 'bd_ip_mac_dump'.
"bd_ip_mac_dump",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
{
"crc": "0xc25fdce6"
}
func (*BdIPMacDump) GetCrcString ¶
func (*BdIPMacDump) GetCrcString() string
func (*BdIPMacDump) GetMessageName ¶
func (*BdIPMacDump) GetMessageName() string
func (*BdIPMacDump) GetMessageType ¶
func (*BdIPMacDump) GetMessageType() api.MessageType
type BridgeDomainAddDel ¶
type BridgeDomainAddDel struct {
BdID uint32
Flood uint8
UuFlood uint8
Forward uint8
Learn uint8
ArpTerm uint8
MacAge uint8
BdTag []byte `struc:"[64]byte"`
IsAdd uint8
}
BridgeDomainAddDel represents the VPP binary API message 'bridge_domain_add_del'.
"bridge_domain_add_del",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"flood"
],
[
"u8",
"uu_flood"
],
[
"u8",
"forward"
],
[
"u8",
"learn"
],
[
"u8",
"arp_term"
],
[
"u8",
"mac_age"
],
[
"u8",
"bd_tag",
64
],
[
"u8",
"is_add"
],
{
"crc": "0x6f668fd9"
}
func (*BridgeDomainAddDel) GetCrcString ¶
func (*BridgeDomainAddDel) GetCrcString() string
func (*BridgeDomainAddDel) GetMessageName ¶
func (*BridgeDomainAddDel) GetMessageName() string
func (*BridgeDomainAddDel) GetMessageType ¶
func (*BridgeDomainAddDel) GetMessageType() api.MessageType
type BridgeDomainAddDelReply ¶
type BridgeDomainAddDelReply struct {
Retval int32
}
BridgeDomainAddDelReply represents the VPP binary API message 'bridge_domain_add_del_reply'.
"bridge_domain_add_del_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*BridgeDomainAddDelReply) GetCrcString ¶
func (*BridgeDomainAddDelReply) GetCrcString() string
func (*BridgeDomainAddDelReply) GetMessageName ¶
func (*BridgeDomainAddDelReply) GetMessageName() string
func (*BridgeDomainAddDelReply) GetMessageType ¶
func (*BridgeDomainAddDelReply) GetMessageType() api.MessageType
type BridgeDomainDetails ¶
type BridgeDomainDetails struct {
BdID uint32
Flood uint8
UuFlood uint8
Forward uint8
Learn uint8
ArpTerm uint8
MacAge uint8
BdTag []byte `struc:"[64]byte"`
BviSwIfIndex uint32
UuFwdSwIfIndex uint32
NSwIfs uint32 `struc:"sizeof=SwIfDetails"`
SwIfDetails []BridgeDomainSwIf
}
BridgeDomainDetails represents the VPP binary API message 'bridge_domain_details'.
"bridge_domain_details",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"flood"
],
[
"u8",
"uu_flood"
],
[
"u8",
"forward"
],
[
"u8",
"learn"
],
[
"u8",
"arp_term"
],
[
"u8",
"mac_age"
],
[
"u8",
"bd_tag",
64
],
[
"u32",
"bvi_sw_if_index"
],
[
"u32",
"uu_fwd_sw_if_index"
],
[
"u32",
"n_sw_ifs"
],
[
"vl_api_bridge_domain_sw_if_t",
"sw_if_details",
0,
"n_sw_ifs"
],
{
"crc": "0xb2134997"
}
func (*BridgeDomainDetails) GetCrcString ¶
func (*BridgeDomainDetails) GetCrcString() string
func (*BridgeDomainDetails) GetMessageName ¶
func (*BridgeDomainDetails) GetMessageName() string
func (*BridgeDomainDetails) GetMessageType ¶
func (*BridgeDomainDetails) GetMessageType() api.MessageType
type BridgeDomainDump ¶
type BridgeDomainDump struct {
BdID uint32
}
BridgeDomainDump represents the VPP binary API message 'bridge_domain_dump'.
"bridge_domain_dump",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
{
"crc": "0xc25fdce6"
}
func (*BridgeDomainDump) GetCrcString ¶
func (*BridgeDomainDump) GetCrcString() string
func (*BridgeDomainDump) GetMessageName ¶
func (*BridgeDomainDump) GetMessageName() string
func (*BridgeDomainDump) GetMessageType ¶
func (*BridgeDomainDump) GetMessageType() api.MessageType
type BridgeDomainSetMacAge ¶
BridgeDomainSetMacAge represents the VPP binary API message 'bridge_domain_set_mac_age'.
"bridge_domain_set_mac_age",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"mac_age"
],
{
"crc": "0xb537ad7b"
}
func (*BridgeDomainSetMacAge) GetCrcString ¶
func (*BridgeDomainSetMacAge) GetCrcString() string
func (*BridgeDomainSetMacAge) GetMessageName ¶
func (*BridgeDomainSetMacAge) GetMessageName() string
func (*BridgeDomainSetMacAge) GetMessageType ¶
func (*BridgeDomainSetMacAge) GetMessageType() api.MessageType
type BridgeDomainSetMacAgeReply ¶
type BridgeDomainSetMacAgeReply struct {
Retval int32
}
BridgeDomainSetMacAgeReply represents the VPP binary API message 'bridge_domain_set_mac_age_reply'.
"bridge_domain_set_mac_age_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*BridgeDomainSetMacAgeReply) GetCrcString ¶
func (*BridgeDomainSetMacAgeReply) GetCrcString() string
func (*BridgeDomainSetMacAgeReply) GetMessageName ¶
func (*BridgeDomainSetMacAgeReply) GetMessageName() string
func (*BridgeDomainSetMacAgeReply) GetMessageType ¶
func (*BridgeDomainSetMacAgeReply) GetMessageType() api.MessageType
type BridgeDomainSwIf ¶
BridgeDomainSwIf represents the VPP binary API type 'bridge_domain_sw_if'.
"bridge_domain_sw_if",
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u8",
"shg"
],
{
"crc": "0xa06dd426"
}
func (*BridgeDomainSwIf) GetCrcString ¶
func (*BridgeDomainSwIf) GetCrcString() string
func (*BridgeDomainSwIf) GetTypeName ¶
func (*BridgeDomainSwIf) GetTypeName() string
type BridgeFlags ¶
BridgeFlags represents the VPP binary API message 'bridge_flags'.
"bridge_flags",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"is_set"
],
[
"vl_api_bd_flags_t",
"flags"
],
{
"crc": "0x8563d406"
}
func (*BridgeFlags) GetCrcString ¶
func (*BridgeFlags) GetCrcString() string
func (*BridgeFlags) GetMessageName ¶
func (*BridgeFlags) GetMessageName() string
func (*BridgeFlags) GetMessageType ¶
func (*BridgeFlags) GetMessageType() api.MessageType
type BridgeFlagsReply ¶
BridgeFlagsReply represents the VPP binary API message 'bridge_flags_reply'.
"bridge_flags_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
[
"u32",
"resulting_feature_bitmap"
],
{
"crc": "0x29b2a2b3"
}
func (*BridgeFlagsReply) GetCrcString ¶
func (*BridgeFlagsReply) GetCrcString() string
func (*BridgeFlagsReply) GetMessageName ¶
func (*BridgeFlagsReply) GetMessageName() string
func (*BridgeFlagsReply) GetMessageType ¶
func (*BridgeFlagsReply) GetMessageType() api.MessageType
type IP4Address ¶
type IP4Address struct {
Address []byte `struc:"[4]byte"`
}
IP4Address represents the VPP binary API type 'ip4_address'.
"ip4_address",
[
"u8",
"address",
4
],
{
"crc": "0xfc4baa28"
}
func (*IP4Address) GetCrcString ¶
func (*IP4Address) GetCrcString() string
func (*IP4Address) GetTypeName ¶
func (*IP4Address) GetTypeName() string
type IP4Prefix ¶
type IP4Prefix struct {
Prefix IP4Address
Len uint8
}
IP4Prefix represents the VPP binary API type 'ip4_prefix'.
"ip4_prefix",
[
"vl_api_ip4_address_t",
"prefix"
],
[
"u8",
"len"
],
{
"crc": "0xea8dc11d"
}
type IP6Address ¶
type IP6Address struct {
Address []byte `struc:"[16]byte"`
}
IP6Address represents the VPP binary API type 'ip6_address'.
"ip6_address",
[
"u8",
"address",
16
],
{
"crc": "0xad99ccc2"
}
func (*IP6Address) GetCrcString ¶
func (*IP6Address) GetCrcString() string
func (*IP6Address) GetTypeName ¶
func (*IP6Address) GetTypeName() string
type IP6Prefix ¶
type IP6Prefix struct {
Prefix IP6Address
Len uint8
}
IP6Prefix represents the VPP binary API type 'ip6_prefix'.
"ip6_prefix",
[
"vl_api_ip6_address_t",
"prefix"
],
[
"u8",
"len"
],
{
"crc": "0x779fd64f"
}
type L2FibClearTable ¶
type L2FibClearTable struct{}
L2FibClearTable represents the VPP binary API message 'l2_fib_clear_table'.
"l2_fib_clear_table",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
{
"crc": "0x51077d14"
}
func (*L2FibClearTable) GetCrcString ¶
func (*L2FibClearTable) GetCrcString() string
func (*L2FibClearTable) GetMessageName ¶
func (*L2FibClearTable) GetMessageName() string
func (*L2FibClearTable) GetMessageType ¶
func (*L2FibClearTable) GetMessageType() api.MessageType
type L2FibClearTableReply ¶
type L2FibClearTableReply struct {
Retval int32
}
L2FibClearTableReply represents the VPP binary API message 'l2_fib_clear_table_reply'.
"l2_fib_clear_table_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2FibClearTableReply) GetCrcString ¶
func (*L2FibClearTableReply) GetCrcString() string
func (*L2FibClearTableReply) GetMessageName ¶
func (*L2FibClearTableReply) GetMessageName() string
func (*L2FibClearTableReply) GetMessageType ¶
func (*L2FibClearTableReply) GetMessageType() api.MessageType
type L2FibTableDetails ¶
type L2FibTableDetails struct {
BdID uint32
Mac []byte `struc:"[6]byte"`
SwIfIndex uint32
StaticMac uint8
FilterMac uint8
BviMac uint8
}
L2FibTableDetails represents the VPP binary API message 'l2_fib_table_details'.
"l2_fib_table_details",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
[
"u8",
"mac",
6
],
[
"u32",
"sw_if_index"
],
[
"u8",
"static_mac"
],
[
"u8",
"filter_mac"
],
[
"u8",
"bvi_mac"
],
{
"crc": "0xc7392706"
}
func (*L2FibTableDetails) GetCrcString ¶
func (*L2FibTableDetails) GetCrcString() string
func (*L2FibTableDetails) GetMessageName ¶
func (*L2FibTableDetails) GetMessageName() string
func (*L2FibTableDetails) GetMessageType ¶
func (*L2FibTableDetails) GetMessageType() api.MessageType
type L2FibTableDump ¶
type L2FibTableDump struct {
BdID uint32
}
L2FibTableDump represents the VPP binary API message 'l2_fib_table_dump'.
"l2_fib_table_dump",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
{
"crc": "0xc25fdce6"
}
func (*L2FibTableDump) GetCrcString ¶
func (*L2FibTableDump) GetCrcString() string
func (*L2FibTableDump) GetMessageName ¶
func (*L2FibTableDump) GetMessageName() string
func (*L2FibTableDump) GetMessageType ¶
func (*L2FibTableDump) GetMessageType() api.MessageType
type L2Flags ¶
L2Flags represents the VPP binary API message 'l2_flags'.
"l2_flags",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u8",
"is_set"
],
[
"u32",
"feature_bitmap"
],
{
"crc": "0x0e889fb9"
}
func (*L2Flags) GetMessageType ¶
func (*L2Flags) GetMessageType() api.MessageType
type L2FlagsReply ¶
L2FlagsReply represents the VPP binary API message 'l2_flags_reply'.
"l2_flags_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
[
"u32",
"resulting_feature_bitmap"
],
{
"crc": "0x29b2a2b3"
}
func (*L2FlagsReply) GetCrcString ¶
func (*L2FlagsReply) GetCrcString() string
func (*L2FlagsReply) GetMessageName ¶
func (*L2FlagsReply) GetMessageName() string
func (*L2FlagsReply) GetMessageType ¶
func (*L2FlagsReply) GetMessageType() api.MessageType
type L2InterfaceEfpFilter ¶
L2InterfaceEfpFilter represents the VPP binary API message 'l2_interface_efp_filter'.
"l2_interface_efp_filter",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u8",
"enable_disable"
],
{
"crc": "0x69d24598"
}
func (*L2InterfaceEfpFilter) GetCrcString ¶
func (*L2InterfaceEfpFilter) GetCrcString() string
func (*L2InterfaceEfpFilter) GetMessageName ¶
func (*L2InterfaceEfpFilter) GetMessageName() string
func (*L2InterfaceEfpFilter) GetMessageType ¶
func (*L2InterfaceEfpFilter) GetMessageType() api.MessageType
type L2InterfaceEfpFilterReply ¶
type L2InterfaceEfpFilterReply struct {
Retval int32
}
L2InterfaceEfpFilterReply represents the VPP binary API message 'l2_interface_efp_filter_reply'.
"l2_interface_efp_filter_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2InterfaceEfpFilterReply) GetCrcString ¶
func (*L2InterfaceEfpFilterReply) GetCrcString() string
func (*L2InterfaceEfpFilterReply) GetMessageName ¶
func (*L2InterfaceEfpFilterReply) GetMessageName() string
func (*L2InterfaceEfpFilterReply) GetMessageType ¶
func (*L2InterfaceEfpFilterReply) GetMessageType() api.MessageType
type L2InterfacePbbTagRewrite ¶
type L2InterfacePbbTagRewrite struct {
SwIfIndex uint32
VtrOp uint32
OuterTag uint16
BDmac []byte `struc:"[6]byte"`
BSmac []byte `struc:"[6]byte"`
BVlanid uint16
ISid uint32
}
L2InterfacePbbTagRewrite represents the VPP binary API message 'l2_interface_pbb_tag_rewrite'.
"l2_interface_pbb_tag_rewrite",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u32",
"vtr_op"
],
[
"u16",
"outer_tag"
],
[
"u8",
"b_dmac",
6
],
[
"u8",
"b_smac",
6
],
[
"u16",
"b_vlanid"
],
[
"u32",
"i_sid"
],
{
"crc": "0x6cf815f9"
}
func (*L2InterfacePbbTagRewrite) GetCrcString ¶
func (*L2InterfacePbbTagRewrite) GetCrcString() string
func (*L2InterfacePbbTagRewrite) GetMessageName ¶
func (*L2InterfacePbbTagRewrite) GetMessageName() string
func (*L2InterfacePbbTagRewrite) GetMessageType ¶
func (*L2InterfacePbbTagRewrite) GetMessageType() api.MessageType
type L2InterfacePbbTagRewriteReply ¶
type L2InterfacePbbTagRewriteReply struct {
Retval int32
}
L2InterfacePbbTagRewriteReply represents the VPP binary API message 'l2_interface_pbb_tag_rewrite_reply'.
"l2_interface_pbb_tag_rewrite_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2InterfacePbbTagRewriteReply) GetCrcString ¶
func (*L2InterfacePbbTagRewriteReply) GetCrcString() string
func (*L2InterfacePbbTagRewriteReply) GetMessageName ¶
func (*L2InterfacePbbTagRewriteReply) GetMessageName() string
func (*L2InterfacePbbTagRewriteReply) GetMessageType ¶
func (*L2InterfacePbbTagRewriteReply) GetMessageType() api.MessageType
type L2InterfaceVlanTagRewrite ¶
type L2InterfaceVlanTagRewrite struct {
SwIfIndex uint32
VtrOp uint32
PushDot1q uint32
Tag1 uint32
Tag2 uint32
}
L2InterfaceVlanTagRewrite represents the VPP binary API message 'l2_interface_vlan_tag_rewrite'.
"l2_interface_vlan_tag_rewrite",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u32",
"vtr_op"
],
[
"u32",
"push_dot1q"
],
[
"u32",
"tag1"
],
[
"u32",
"tag2"
],
{
"crc": "0xb90be6b4"
}
func (*L2InterfaceVlanTagRewrite) GetCrcString ¶
func (*L2InterfaceVlanTagRewrite) GetCrcString() string
func (*L2InterfaceVlanTagRewrite) GetMessageName ¶
func (*L2InterfaceVlanTagRewrite) GetMessageName() string
func (*L2InterfaceVlanTagRewrite) GetMessageType ¶
func (*L2InterfaceVlanTagRewrite) GetMessageType() api.MessageType
type L2InterfaceVlanTagRewriteReply ¶
type L2InterfaceVlanTagRewriteReply struct {
Retval int32
}
L2InterfaceVlanTagRewriteReply represents the VPP binary API message 'l2_interface_vlan_tag_rewrite_reply'.
"l2_interface_vlan_tag_rewrite_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2InterfaceVlanTagRewriteReply) GetCrcString ¶
func (*L2InterfaceVlanTagRewriteReply) GetCrcString() string
func (*L2InterfaceVlanTagRewriteReply) GetMessageName ¶
func (*L2InterfaceVlanTagRewriteReply) GetMessageName() string
func (*L2InterfaceVlanTagRewriteReply) GetMessageType ¶
func (*L2InterfaceVlanTagRewriteReply) GetMessageType() api.MessageType
type L2MacsEvent ¶
L2MacsEvent represents the VPP binary API message 'l2_macs_event'.
"l2_macs_event",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"pid"
],
[
"u32",
"n_macs"
],
[
"vl_api_mac_entry_t",
"mac",
0,
"n_macs"
],
{
"crc": "0x4e5ab0c8"
}
func (*L2MacsEvent) GetCrcString ¶
func (*L2MacsEvent) GetCrcString() string
func (*L2MacsEvent) GetMessageName ¶
func (*L2MacsEvent) GetMessageName() string
func (*L2MacsEvent) GetMessageType ¶
func (*L2MacsEvent) GetMessageType() api.MessageType
type L2PatchAddDel ¶
L2PatchAddDel represents the VPP binary API message 'l2_patch_add_del'.
"l2_patch_add_del",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"rx_sw_if_index"
],
[
"u32",
"tx_sw_if_index"
],
[
"u8",
"is_add"
],
{
"crc": "0x62506e63"
}
func (*L2PatchAddDel) GetCrcString ¶
func (*L2PatchAddDel) GetCrcString() string
func (*L2PatchAddDel) GetMessageName ¶
func (*L2PatchAddDel) GetMessageName() string
func (*L2PatchAddDel) GetMessageType ¶
func (*L2PatchAddDel) GetMessageType() api.MessageType
type L2PatchAddDelReply ¶
type L2PatchAddDelReply struct {
Retval int32
}
L2PatchAddDelReply represents the VPP binary API message 'l2_patch_add_del_reply'.
"l2_patch_add_del_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2PatchAddDelReply) GetCrcString ¶
func (*L2PatchAddDelReply) GetCrcString() string
func (*L2PatchAddDelReply) GetMessageName ¶
func (*L2PatchAddDelReply) GetMessageName() string
func (*L2PatchAddDelReply) GetMessageType ¶
func (*L2PatchAddDelReply) GetMessageType() api.MessageType
type L2PortType ¶
type L2PortType uint32
L2PortType represents the VPP binary API enum 'l2_port_type'.
"l2_port_type",
[
"L2_API_PORT_TYPE_NORMAL",
0
],
[
"L2_API_PORT_TYPE_BVI",
1
],
[
"L2_API_PORT_TYPE_UU_FWD",
2
],
{
"enumtype": "u32"
}
const ( L2_API_PORT_TYPE_NORMAL L2PortType = 0 L2_API_PORT_TYPE_BVI L2PortType = 1 L2_API_PORT_TYPE_UU_FWD L2PortType = 2 )
type L2XconnectDetails ¶
L2XconnectDetails represents the VPP binary API message 'l2_xconnect_details'.
"l2_xconnect_details",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"u32",
"rx_sw_if_index"
],
[
"u32",
"tx_sw_if_index"
],
{
"crc": "0x722e2378"
}
func (*L2XconnectDetails) GetCrcString ¶
func (*L2XconnectDetails) GetCrcString() string
func (*L2XconnectDetails) GetMessageName ¶
func (*L2XconnectDetails) GetMessageName() string
func (*L2XconnectDetails) GetMessageType ¶
func (*L2XconnectDetails) GetMessageType() api.MessageType
type L2XconnectDump ¶
type L2XconnectDump struct{}
L2XconnectDump represents the VPP binary API message 'l2_xconnect_dump'.
"l2_xconnect_dump",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
{
"crc": "0x51077d14"
}
func (*L2XconnectDump) GetCrcString ¶
func (*L2XconnectDump) GetCrcString() string
func (*L2XconnectDump) GetMessageName ¶
func (*L2XconnectDump) GetMessageName() string
func (*L2XconnectDump) GetMessageType ¶
func (*L2XconnectDump) GetMessageType() api.MessageType
type L2fibAddDel ¶
type L2fibAddDel struct {
Mac []byte `struc:"[6]byte"`
BdID uint32
SwIfIndex uint32
IsAdd uint8
StaticMac uint8
FilterMac uint8
BviMac uint8
}
L2fibAddDel represents the VPP binary API message 'l2fib_add_del'.
"l2fib_add_del",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u8",
"mac",
6
],
[
"u32",
"bd_id"
],
[
"u32",
"sw_if_index"
],
[
"u8",
"is_add"
],
[
"u8",
"static_mac"
],
[
"u8",
"filter_mac"
],
[
"u8",
"bvi_mac"
],
{
"crc": "0x34ced3eb"
}
func (*L2fibAddDel) GetCrcString ¶
func (*L2fibAddDel) GetCrcString() string
func (*L2fibAddDel) GetMessageName ¶
func (*L2fibAddDel) GetMessageName() string
func (*L2fibAddDel) GetMessageType ¶
func (*L2fibAddDel) GetMessageType() api.MessageType
type L2fibAddDelReply ¶
type L2fibAddDelReply struct {
Retval int32
}
L2fibAddDelReply represents the VPP binary API message 'l2fib_add_del_reply'.
"l2fib_add_del_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2fibAddDelReply) GetCrcString ¶
func (*L2fibAddDelReply) GetCrcString() string
func (*L2fibAddDelReply) GetMessageName ¶
func (*L2fibAddDelReply) GetMessageName() string
func (*L2fibAddDelReply) GetMessageType ¶
func (*L2fibAddDelReply) GetMessageType() api.MessageType
type L2fibFlushAll ¶
type L2fibFlushAll struct{}
L2fibFlushAll represents the VPP binary API message 'l2fib_flush_all'.
"l2fib_flush_all",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
{
"crc": "0x51077d14"
}
func (*L2fibFlushAll) GetCrcString ¶
func (*L2fibFlushAll) GetCrcString() string
func (*L2fibFlushAll) GetMessageName ¶
func (*L2fibFlushAll) GetMessageName() string
func (*L2fibFlushAll) GetMessageType ¶
func (*L2fibFlushAll) GetMessageType() api.MessageType
type L2fibFlushAllReply ¶
type L2fibFlushAllReply struct {
Retval int32
}
L2fibFlushAllReply represents the VPP binary API message 'l2fib_flush_all_reply'.
"l2fib_flush_all_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2fibFlushAllReply) GetCrcString ¶
func (*L2fibFlushAllReply) GetCrcString() string
func (*L2fibFlushAllReply) GetMessageName ¶
func (*L2fibFlushAllReply) GetMessageName() string
func (*L2fibFlushAllReply) GetMessageType ¶
func (*L2fibFlushAllReply) GetMessageType() api.MessageType
type L2fibFlushBd ¶
type L2fibFlushBd struct {
BdID uint32
}
L2fibFlushBd represents the VPP binary API message 'l2fib_flush_bd'.
"l2fib_flush_bd",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"bd_id"
],
{
"crc": "0xc25fdce6"
}
func (*L2fibFlushBd) GetCrcString ¶
func (*L2fibFlushBd) GetCrcString() string
func (*L2fibFlushBd) GetMessageName ¶
func (*L2fibFlushBd) GetMessageName() string
func (*L2fibFlushBd) GetMessageType ¶
func (*L2fibFlushBd) GetMessageType() api.MessageType
type L2fibFlushBdReply ¶
type L2fibFlushBdReply struct {
Retval int32
}
L2fibFlushBdReply represents the VPP binary API message 'l2fib_flush_bd_reply'.
"l2fib_flush_bd_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2fibFlushBdReply) GetCrcString ¶
func (*L2fibFlushBdReply) GetCrcString() string
func (*L2fibFlushBdReply) GetMessageName ¶
func (*L2fibFlushBdReply) GetMessageName() string
func (*L2fibFlushBdReply) GetMessageType ¶
func (*L2fibFlushBdReply) GetMessageType() api.MessageType
type L2fibFlushInt ¶
type L2fibFlushInt struct {
SwIfIndex uint32
}
L2fibFlushInt represents the VPP binary API message 'l2fib_flush_int'.
"l2fib_flush_int",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
{
"crc": "0x529cb13f"
}
func (*L2fibFlushInt) GetCrcString ¶
func (*L2fibFlushInt) GetCrcString() string
func (*L2fibFlushInt) GetMessageName ¶
func (*L2fibFlushInt) GetMessageName() string
func (*L2fibFlushInt) GetMessageType ¶
func (*L2fibFlushInt) GetMessageType() api.MessageType
type L2fibFlushIntReply ¶
type L2fibFlushIntReply struct {
Retval int32
}
L2fibFlushIntReply represents the VPP binary API message 'l2fib_flush_int_reply'.
"l2fib_flush_int_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*L2fibFlushIntReply) GetCrcString ¶
func (*L2fibFlushIntReply) GetCrcString() string
func (*L2fibFlushIntReply) GetMessageName ¶
func (*L2fibFlushIntReply) GetMessageName() string
func (*L2fibFlushIntReply) GetMessageType ¶
func (*L2fibFlushIntReply) GetMessageType() api.MessageType
type MacAddress ¶
type MacAddress struct {
Bytes []byte `struc:"[6]byte"`
}
MacAddress represents the VPP binary API type 'mac_address'.
"mac_address",
[
"u8",
"bytes",
6
],
{
"crc": "0xefdbdddc"
}
func (*MacAddress) GetCrcString ¶
func (*MacAddress) GetCrcString() string
func (*MacAddress) GetTypeName ¶
func (*MacAddress) GetTypeName() string
type MacEntry ¶
MacEntry represents the VPP binary API type 'mac_entry'.
"mac_entry",
[
"u32",
"sw_if_index"
],
[
"u8",
"mac_addr",
6
],
[
"u8",
"action"
],
[
"u8",
"flags"
],
{
"crc": "0x971135b8"
}
type Mprefix ¶
type Mprefix struct {
Af AddressFamily
GrpAddressLength uint16
GrpAddress AddressUnion
SrcAddress AddressUnion
}
Mprefix represents the VPP binary API type 'mprefix'.
"mprefix",
[
"vl_api_address_family_t",
"af"
],
[
"u16",
"grp_address_length"
],
[
"vl_api_address_union_t",
"grp_address"
],
[
"vl_api_address_union_t",
"src_address"
],
{
"crc": "0x1c4cba05"
}
type Prefix ¶
Prefix represents the VPP binary API type 'prefix'.
"prefix",
[
"vl_api_address_t",
"address"
],
[
"u8",
"address_length"
],
{
"crc": "0x0403aebc"
}
type Services ¶
type Services interface {
DumpBdIPMac(*BdIPMacDump) (*BdIPMacDetails, error)
DumpBridgeDomain(*BridgeDomainDump) (*BridgeDomainDetails, error)
DumpL2FibTable(*L2FibTableDump) (*L2FibTableDetails, error)
DumpL2Xconnect(*L2XconnectDump) (*L2XconnectDetails, error)
BdIPMacAddDel(*BdIPMacAddDel) (*BdIPMacAddDelReply, error)
BridgeDomainAddDel(*BridgeDomainAddDel) (*BridgeDomainAddDelReply, error)
BridgeDomainSetMacAge(*BridgeDomainSetMacAge) (*BridgeDomainSetMacAgeReply, error)
BridgeFlags(*BridgeFlags) (*BridgeFlagsReply, error)
L2FibClearTable(*L2FibClearTable) (*L2FibClearTableReply, error)
L2Flags(*L2Flags) (*L2FlagsReply, error)
L2InterfaceEfpFilter(*L2InterfaceEfpFilter) (*L2InterfaceEfpFilterReply, error)
L2InterfacePbbTagRewrite(*L2InterfacePbbTagRewrite) (*L2InterfacePbbTagRewriteReply, error)
L2InterfaceVlanTagRewrite(*L2InterfaceVlanTagRewrite) (*L2InterfaceVlanTagRewriteReply, error)
L2PatchAddDel(*L2PatchAddDel) (*L2PatchAddDelReply, error)
L2fibAddDel(*L2fibAddDel) (*L2fibAddDelReply, error)
L2fibFlushAll(*L2fibFlushAll) (*L2fibFlushAllReply, error)
L2fibFlushBd(*L2fibFlushBd) (*L2fibFlushBdReply, error)
L2fibFlushInt(*L2fibFlushInt) (*L2fibFlushIntReply, error)
SwInterfaceSetL2Bridge(*SwInterfaceSetL2Bridge) (*SwInterfaceSetL2BridgeReply, error)
SwInterfaceSetL2Xconnect(*SwInterfaceSetL2Xconnect) (*SwInterfaceSetL2XconnectReply, error)
SwInterfaceSetVpath(*SwInterfaceSetVpath) (*SwInterfaceSetVpathReply, error)
WantL2MacsEvents(*WantL2MacsEvents) (*WantL2MacsEventsReply, error)
}
type SwInterfaceSetL2Bridge ¶
type SwInterfaceSetL2Bridge struct {
RxSwIfIndex uint32
BdID uint32
PortType L2PortType
Shg uint8
Enable uint8
}
SwInterfaceSetL2Bridge represents the VPP binary API message 'sw_interface_set_l2_bridge'.
"sw_interface_set_l2_bridge",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"rx_sw_if_index"
],
[
"u32",
"bd_id"
],
[
"vl_api_l2_port_type_t",
"port_type"
],
[
"u8",
"shg"
],
[
"u8",
"enable"
],
{
"crc": "0x2af7795e"
}
func (*SwInterfaceSetL2Bridge) GetCrcString ¶
func (*SwInterfaceSetL2Bridge) GetCrcString() string
func (*SwInterfaceSetL2Bridge) GetMessageName ¶
func (*SwInterfaceSetL2Bridge) GetMessageName() string
func (*SwInterfaceSetL2Bridge) GetMessageType ¶
func (*SwInterfaceSetL2Bridge) GetMessageType() api.MessageType
type SwInterfaceSetL2BridgeReply ¶
type SwInterfaceSetL2BridgeReply struct {
Retval int32
}
SwInterfaceSetL2BridgeReply represents the VPP binary API message 'sw_interface_set_l2_bridge_reply'.
"sw_interface_set_l2_bridge_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*SwInterfaceSetL2BridgeReply) GetCrcString ¶
func (*SwInterfaceSetL2BridgeReply) GetCrcString() string
func (*SwInterfaceSetL2BridgeReply) GetMessageName ¶
func (*SwInterfaceSetL2BridgeReply) GetMessageName() string
func (*SwInterfaceSetL2BridgeReply) GetMessageType ¶
func (*SwInterfaceSetL2BridgeReply) GetMessageType() api.MessageType
type SwInterfaceSetL2Xconnect ¶
SwInterfaceSetL2Xconnect represents the VPP binary API message 'sw_interface_set_l2_xconnect'.
"sw_interface_set_l2_xconnect",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"rx_sw_if_index"
],
[
"u32",
"tx_sw_if_index"
],
[
"u8",
"enable"
],
{
"crc": "0x95de3988"
}
func (*SwInterfaceSetL2Xconnect) GetCrcString ¶
func (*SwInterfaceSetL2Xconnect) GetCrcString() string
func (*SwInterfaceSetL2Xconnect) GetMessageName ¶
func (*SwInterfaceSetL2Xconnect) GetMessageName() string
func (*SwInterfaceSetL2Xconnect) GetMessageType ¶
func (*SwInterfaceSetL2Xconnect) GetMessageType() api.MessageType
type SwInterfaceSetL2XconnectReply ¶
type SwInterfaceSetL2XconnectReply struct {
Retval int32
}
SwInterfaceSetL2XconnectReply represents the VPP binary API message 'sw_interface_set_l2_xconnect_reply'.
"sw_interface_set_l2_xconnect_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*SwInterfaceSetL2XconnectReply) GetCrcString ¶
func (*SwInterfaceSetL2XconnectReply) GetCrcString() string
func (*SwInterfaceSetL2XconnectReply) GetMessageName ¶
func (*SwInterfaceSetL2XconnectReply) GetMessageName() string
func (*SwInterfaceSetL2XconnectReply) GetMessageType ¶
func (*SwInterfaceSetL2XconnectReply) GetMessageType() api.MessageType
type SwInterfaceSetVpath ¶
SwInterfaceSetVpath represents the VPP binary API message 'sw_interface_set_vpath'.
"sw_interface_set_vpath",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"sw_if_index"
],
[
"u8",
"enable"
],
{
"crc": "0xa36fadc0"
}
func (*SwInterfaceSetVpath) GetCrcString ¶
func (*SwInterfaceSetVpath) GetCrcString() string
func (*SwInterfaceSetVpath) GetMessageName ¶
func (*SwInterfaceSetVpath) GetMessageName() string
func (*SwInterfaceSetVpath) GetMessageType ¶
func (*SwInterfaceSetVpath) GetMessageType() api.MessageType
type SwInterfaceSetVpathReply ¶
type SwInterfaceSetVpathReply struct {
Retval int32
}
SwInterfaceSetVpathReply represents the VPP binary API message 'sw_interface_set_vpath_reply'.
"sw_interface_set_vpath_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*SwInterfaceSetVpathReply) GetCrcString ¶
func (*SwInterfaceSetVpathReply) GetCrcString() string
func (*SwInterfaceSetVpathReply) GetMessageName ¶
func (*SwInterfaceSetVpathReply) GetMessageName() string
func (*SwInterfaceSetVpathReply) GetMessageType ¶
func (*SwInterfaceSetVpathReply) GetMessageType() api.MessageType
type WantL2MacsEvents ¶
type WantL2MacsEvents struct {
LearnLimit uint32
ScanDelay uint8
MaxMacsInEvent uint8
EnableDisable uint8
PID uint32
}
WantL2MacsEvents represents the VPP binary API message 'want_l2_macs_events'.
"want_l2_macs_events",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"client_index"
],
[
"u32",
"context"
],
[
"u32",
"learn_limit"
],
[
"u8",
"scan_delay"
],
[
"u8",
"max_macs_in_event"
],
[
"u8",
"enable_disable"
],
[
"u32",
"pid"
],
{
"crc": "0x94e63394"
}
func (*WantL2MacsEvents) GetCrcString ¶
func (*WantL2MacsEvents) GetCrcString() string
func (*WantL2MacsEvents) GetMessageName ¶
func (*WantL2MacsEvents) GetMessageName() string
func (*WantL2MacsEvents) GetMessageType ¶
func (*WantL2MacsEvents) GetMessageType() api.MessageType
type WantL2MacsEventsReply ¶
type WantL2MacsEventsReply struct {
Retval int32
}
WantL2MacsEventsReply represents the VPP binary API message 'want_l2_macs_events_reply'.
"want_l2_macs_events_reply",
[
"u16",
"_vl_msg_id"
],
[
"u32",
"context"
],
[
"i32",
"retval"
],
{
"crc": "0xe8d4e804"
}
func (*WantL2MacsEventsReply) GetCrcString ¶
func (*WantL2MacsEventsReply) GetCrcString() string
func (*WantL2MacsEventsReply) GetMessageName ¶
func (*WantL2MacsEventsReply) GetMessageName() string
func (*WantL2MacsEventsReply) GetMessageType ¶
func (*WantL2MacsEventsReply) GetMessageType() api.MessageType
Source Files
¶
- l2.ba.go