Documentation ¶
Overview ¶
Package l2 is a generated VPP binary API for 'l2' module.
It consists of:
13 enums 7 aliases 9 types 1 union 54 messages 26 services
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type Address
- type AddressFamily
- type AddressUnion
- type AddressWithPrefix
- type BdFlags
- type BdIPMac
- type BdIPMacAddDel
- type BdIPMacAddDelReply
- type BdIPMacDetails
- type BdIPMacDump
- type BdIPMacFlush
- type BdIPMacFlushReply
- type BridgeDomainAddDel
- type BridgeDomainAddDelReply
- type BridgeDomainDetails
- type BridgeDomainDump
- type BridgeDomainSetMacAge
- type BridgeDomainSetMacAgeReply
- type BridgeDomainSwIf
- type BridgeFlags
- type BridgeFlagsReply
- type BviCreate
- type BviCreateReply
- type BviDelete
- type BviDeleteReply
- type IP4Address
- type IP4AddressWithPrefix
- type IP4Prefix
- type IP6Address
- type IP6AddressWithPrefix
- type IP6Prefix
- type IPDscp
- type IPEcn
- type IPProto
- type IfStatusFlags
- type IfType
- type InterfaceIndex
- type L2ArpTermEvent
- 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 LinkDuplex
- type MacAddress
- type MacEntry
- type MacEventAction
- type Mprefix
- type MtuProto
- type Prefix
- type PrefixMatcher
- type RPCService
- type RPCService_DumpBdIPMacClient
- type RPCService_DumpBridgeDomainClient
- type RPCService_DumpL2FibTableClient
- type RPCService_DumpL2XconnectClient
- type RxMode
- type SubIfFlags
- type SwInterfaceSetL2Bridge
- type SwInterfaceSetL2BridgeReply
- type SwInterfaceSetL2Xconnect
- type SwInterfaceSetL2XconnectReply
- type SwInterfaceSetVpath
- type SwInterfaceSetVpathReply
- type WantL2ArpTermEvents
- type WantL2ArpTermEventsReply
- type WantL2MacsEvents
- type WantL2MacsEventsReply
Constants ¶
const ( // ModuleName is the name of this module. ModuleName = "l2" // APIVersion is the API version of this module. APIVersion = "3.0.0" // VersionCrc is the CRC of this module. VersionCrc = 0x58ce8a6b )
Variables ¶
var AddressFamily_name = map[uint8]string{
0: "ADDRESS_IP4",
1: "ADDRESS_IP6",
}
var AddressFamily_value = map[string]uint8{
"ADDRESS_IP4": 0,
"ADDRESS_IP6": 1,
}
var BdFlags_name = map[uint32]string{
0: "BRIDGE_API_FLAG_NONE",
1: "BRIDGE_API_FLAG_LEARN",
2: "BRIDGE_API_FLAG_FWD",
4: "BRIDGE_API_FLAG_FLOOD",
8: "BRIDGE_API_FLAG_UU_FLOOD",
16: "BRIDGE_API_FLAG_ARP_TERM",
32: "BRIDGE_API_FLAG_ARP_UFWD",
}
var BdFlags_value = map[string]uint32{
"BRIDGE_API_FLAG_NONE": 0,
"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,
"BRIDGE_API_FLAG_ARP_UFWD": 32,
}
var IPDscp_name = map[uint8]string{
0: "IP_API_DSCP_CS0",
8: "IP_API_DSCP_CS1",
10: "IP_API_DSCP_AF11",
12: "IP_API_DSCP_AF12",
14: "IP_API_DSCP_AF13",
16: "IP_API_DSCP_CS2",
18: "IP_API_DSCP_AF21",
20: "IP_API_DSCP_AF22",
22: "IP_API_DSCP_AF23",
24: "IP_API_DSCP_CS3",
26: "IP_API_DSCP_AF31",
28: "IP_API_DSCP_AF32",
30: "IP_API_DSCP_AF33",
32: "IP_API_DSCP_CS4",
34: "IP_API_DSCP_AF41",
36: "IP_API_DSCP_AF42",
38: "IP_API_DSCP_AF43",
40: "IP_API_DSCP_CS5",
46: "IP_API_DSCP_EF",
48: "IP_API_DSCP_CS6",
50: "IP_API_DSCP_CS7",
}
var IPDscp_value = map[string]uint8{
"IP_API_DSCP_CS0": 0,
"IP_API_DSCP_CS1": 8,
"IP_API_DSCP_AF11": 10,
"IP_API_DSCP_AF12": 12,
"IP_API_DSCP_AF13": 14,
"IP_API_DSCP_CS2": 16,
"IP_API_DSCP_AF21": 18,
"IP_API_DSCP_AF22": 20,
"IP_API_DSCP_AF23": 22,
"IP_API_DSCP_CS3": 24,
"IP_API_DSCP_AF31": 26,
"IP_API_DSCP_AF32": 28,
"IP_API_DSCP_AF33": 30,
"IP_API_DSCP_CS4": 32,
"IP_API_DSCP_AF41": 34,
"IP_API_DSCP_AF42": 36,
"IP_API_DSCP_AF43": 38,
"IP_API_DSCP_CS5": 40,
"IP_API_DSCP_EF": 46,
"IP_API_DSCP_CS6": 48,
"IP_API_DSCP_CS7": 50,
}
var IPEcn_name = map[uint8]string{
0: "IP_API_ECN_NONE",
1: "IP_API_ECN_ECT0",
2: "IP_API_ECN_ECT1",
3: "IP_API_ECN_CE",
}
var IPEcn_value = map[string]uint8{
"IP_API_ECN_NONE": 0,
"IP_API_ECN_ECT0": 1,
"IP_API_ECN_ECT1": 2,
"IP_API_ECN_CE": 3,
}
var IPProto_name = map[uint8]string{
0: "IP_API_PROTO_HOPOPT",
1: "IP_API_PROTO_ICMP",
2: "IP_API_PROTO_IGMP",
6: "IP_API_PROTO_TCP",
17: "IP_API_PROTO_UDP",
47: "IP_API_PROTO_GRE",
50: "IP_API_PROTO_ESP",
51: "IP_API_PROTO_AH",
58: "IP_API_PROTO_ICMP6",
88: "IP_API_PROTO_EIGRP",
89: "IP_API_PROTO_OSPF",
132: "IP_API_PROTO_SCTP",
255: "IP_API_PROTO_RESERVED",
}
var IPProto_value = map[string]uint8{
"IP_API_PROTO_HOPOPT": 0,
"IP_API_PROTO_ICMP": 1,
"IP_API_PROTO_IGMP": 2,
"IP_API_PROTO_TCP": 6,
"IP_API_PROTO_UDP": 17,
"IP_API_PROTO_GRE": 47,
"IP_API_PROTO_ESP": 50,
"IP_API_PROTO_AH": 51,
"IP_API_PROTO_ICMP6": 58,
"IP_API_PROTO_EIGRP": 88,
"IP_API_PROTO_OSPF": 89,
"IP_API_PROTO_SCTP": 132,
"IP_API_PROTO_RESERVED": 255,
}
var IfStatusFlags_name = map[uint32]string{
1: "IF_STATUS_API_FLAG_ADMIN_UP",
2: "IF_STATUS_API_FLAG_LINK_UP",
}
var IfStatusFlags_value = map[string]uint32{
"IF_STATUS_API_FLAG_ADMIN_UP": 1,
"IF_STATUS_API_FLAG_LINK_UP": 2,
}
var IfType_name = map[uint32]string{
0: "IF_API_TYPE_HARDWARE",
1: "IF_API_TYPE_SUB",
2: "IF_API_TYPE_P2P",
3: "IF_API_TYPE_PIPE",
}
var IfType_value = map[string]uint32{
"IF_API_TYPE_HARDWARE": 0,
"IF_API_TYPE_SUB": 1,
"IF_API_TYPE_P2P": 2,
"IF_API_TYPE_PIPE": 3,
}
var L2PortType_name = map[uint32]string{
0: "L2_API_PORT_TYPE_NORMAL",
1: "L2_API_PORT_TYPE_BVI",
2: "L2_API_PORT_TYPE_UU_FWD",
}
var L2PortType_value = map[string]uint32{
"L2_API_PORT_TYPE_NORMAL": 0,
"L2_API_PORT_TYPE_BVI": 1,
"L2_API_PORT_TYPE_UU_FWD": 2,
}
var LinkDuplex_name = map[uint32]string{
0: "LINK_DUPLEX_API_UNKNOWN",
1: "LINK_DUPLEX_API_HALF",
2: "LINK_DUPLEX_API_FULL",
}
var LinkDuplex_value = map[string]uint32{
"LINK_DUPLEX_API_UNKNOWN": 0,
"LINK_DUPLEX_API_HALF": 1,
"LINK_DUPLEX_API_FULL": 2,
}
var MacEventAction_name = map[uint32]string{
0: "MAC_EVENT_ACTION_API_ADD",
1: "MAC_EVENT_ACTION_API_DELETE",
2: "MAC_EVENT_ACTION_API_MOVE",
}
var MacEventAction_value = map[string]uint32{
"MAC_EVENT_ACTION_API_ADD": 0,
"MAC_EVENT_ACTION_API_DELETE": 1,
"MAC_EVENT_ACTION_API_MOVE": 2,
}
var MtuProto_name = map[uint32]string{
0: "MTU_PROTO_API_L3",
1: "MTU_PROTO_API_IP4",
2: "MTU_PROTO_API_IP6",
3: "MTU_PROTO_API_MPLS",
}
var MtuProto_value = map[string]uint32{
"MTU_PROTO_API_L3": 0,
"MTU_PROTO_API_IP4": 1,
"MTU_PROTO_API_IP6": 2,
"MTU_PROTO_API_MPLS": 3,
}
var RxMode_name = map[uint32]string{
0: "RX_MODE_API_UNKNOWN",
1: "RX_MODE_API_POLLING",
2: "RX_MODE_API_INTERRUPT",
3: "RX_MODE_API_ADAPTIVE",
4: "RX_MODE_API_DEFAULT",
}
var RxMode_value = map[string]uint32{
"RX_MODE_API_UNKNOWN": 0,
"RX_MODE_API_POLLING": 1,
"RX_MODE_API_INTERRUPT": 2,
"RX_MODE_API_ADAPTIVE": 3,
"RX_MODE_API_DEFAULT": 4,
}
var SubIfFlags_name = map[uint32]string{
1: "SUB_IF_API_FLAG_NO_TAGS",
2: "SUB_IF_API_FLAG_ONE_TAG",
4: "SUB_IF_API_FLAG_TWO_TAGS",
8: "SUB_IF_API_FLAG_DOT1AD",
16: "SUB_IF_API_FLAG_EXACT_MATCH",
32: "SUB_IF_API_FLAG_DEFAULT",
64: "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
254: "SUB_IF_API_FLAG_MASK_VNET",
256: "SUB_IF_API_FLAG_DOT1AH",
}
var SubIfFlags_value = map[string]uint32{
"SUB_IF_API_FLAG_NO_TAGS": 1,
"SUB_IF_API_FLAG_ONE_TAG": 2,
"SUB_IF_API_FLAG_TWO_TAGS": 4,
"SUB_IF_API_FLAG_DOT1AD": 8,
"SUB_IF_API_FLAG_EXACT_MATCH": 16,
"SUB_IF_API_FLAG_DEFAULT": 32,
"SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
"SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
"SUB_IF_API_FLAG_MASK_VNET": 254,
"SUB_IF_API_FLAG_DOT1AH": 256,
}
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type Address ¶
type Address struct { Af AddressFamily Un AddressUnion }
Address represents VPP binary API type 'address'.
func (*Address) GetTypeName ¶
type AddressFamily ¶
type AddressFamily uint8
AddressFamily represents VPP binary API enum 'address_family'.
const ( ADDRESS_IP4 AddressFamily = 0 ADDRESS_IP6 AddressFamily = 1 )
func (AddressFamily) String ¶
func (x AddressFamily) String() string
type AddressUnion ¶
type AddressUnion struct {
XXX_UnionData [16]byte
}
AddressUnion represents VPP binary API union 'address_union'.
func AddressUnionIP4 ¶
func AddressUnionIP4(a IP4Address) (u AddressUnion)
func AddressUnionIP6 ¶
func AddressUnionIP6(a IP6Address) (u AddressUnion)
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 AddressWithPrefix ¶
type AddressWithPrefix Prefix
AddressWithPrefix represents VPP binary API alias 'address_with_prefix'.
type BdIPMac ¶
type BdIPMac struct { BdID uint32 IP Address Mac MacAddress }
BdIPMac represents VPP binary API type 'bd_ip_mac'.
func (*BdIPMac) GetTypeName ¶
type BdIPMacAddDel ¶
BdIPMacAddDel represents VPP binary API message 'bd_ip_mac_add_del'.
func (*BdIPMacAddDel) GetCrcString ¶
func (*BdIPMacAddDel) GetCrcString() string
func (*BdIPMacAddDel) GetMessageName ¶
func (*BdIPMacAddDel) GetMessageName() string
func (*BdIPMacAddDel) GetMessageType ¶
func (*BdIPMacAddDel) GetMessageType() api.MessageType
func (*BdIPMacAddDel) Reset ¶
func (m *BdIPMacAddDel) Reset()
type BdIPMacAddDelReply ¶
type BdIPMacAddDelReply struct {
Retval int32
}
BdIPMacAddDelReply represents VPP binary API message 'bd_ip_mac_add_del_reply'.
func (*BdIPMacAddDelReply) GetCrcString ¶
func (*BdIPMacAddDelReply) GetCrcString() string
func (*BdIPMacAddDelReply) GetMessageName ¶
func (*BdIPMacAddDelReply) GetMessageName() string
func (*BdIPMacAddDelReply) GetMessageType ¶
func (*BdIPMacAddDelReply) GetMessageType() api.MessageType
func (*BdIPMacAddDelReply) Reset ¶
func (m *BdIPMacAddDelReply) Reset()
type BdIPMacDetails ¶
type BdIPMacDetails struct {
Entry BdIPMac
}
BdIPMacDetails represents VPP binary API message 'bd_ip_mac_details'.
func (*BdIPMacDetails) GetCrcString ¶
func (*BdIPMacDetails) GetCrcString() string
func (*BdIPMacDetails) GetMessageName ¶
func (*BdIPMacDetails) GetMessageName() string
func (*BdIPMacDetails) GetMessageType ¶
func (*BdIPMacDetails) GetMessageType() api.MessageType
func (*BdIPMacDetails) Reset ¶
func (m *BdIPMacDetails) Reset()
type BdIPMacDump ¶
type BdIPMacDump struct {
BdID uint32
}
BdIPMacDump represents VPP binary API message 'bd_ip_mac_dump'.
func (*BdIPMacDump) GetCrcString ¶
func (*BdIPMacDump) GetCrcString() string
func (*BdIPMacDump) GetMessageName ¶
func (*BdIPMacDump) GetMessageName() string
func (*BdIPMacDump) GetMessageType ¶
func (*BdIPMacDump) GetMessageType() api.MessageType
func (*BdIPMacDump) Reset ¶
func (m *BdIPMacDump) Reset()
type BdIPMacFlush ¶
type BdIPMacFlush struct {
BdID uint32
}
BdIPMacFlush represents VPP binary API message 'bd_ip_mac_flush'.
func (*BdIPMacFlush) GetCrcString ¶
func (*BdIPMacFlush) GetCrcString() string
func (*BdIPMacFlush) GetMessageName ¶
func (*BdIPMacFlush) GetMessageName() string
func (*BdIPMacFlush) GetMessageType ¶
func (*BdIPMacFlush) GetMessageType() api.MessageType
func (*BdIPMacFlush) Reset ¶
func (m *BdIPMacFlush) Reset()
type BdIPMacFlushReply ¶
type BdIPMacFlushReply struct {
Retval int32
}
BdIPMacFlushReply represents VPP binary API message 'bd_ip_mac_flush_reply'.
func (*BdIPMacFlushReply) GetCrcString ¶
func (*BdIPMacFlushReply) GetCrcString() string
func (*BdIPMacFlushReply) GetMessageName ¶
func (*BdIPMacFlushReply) GetMessageName() string
func (*BdIPMacFlushReply) GetMessageType ¶
func (*BdIPMacFlushReply) GetMessageType() api.MessageType
func (*BdIPMacFlushReply) Reset ¶
func (m *BdIPMacFlushReply) Reset()
type BridgeDomainAddDel ¶
type BridgeDomainAddDel struct { BdID uint32 Flood bool UuFlood bool Forward bool Learn bool ArpTerm bool ArpUfwd bool MacAge uint8 BdTag string `struc:"[64]byte"` IsAdd bool }
BridgeDomainAddDel represents VPP binary API message 'bridge_domain_add_del'.
func (*BridgeDomainAddDel) GetCrcString ¶
func (*BridgeDomainAddDel) GetCrcString() string
func (*BridgeDomainAddDel) GetMessageName ¶
func (*BridgeDomainAddDel) GetMessageName() string
func (*BridgeDomainAddDel) GetMessageType ¶
func (*BridgeDomainAddDel) GetMessageType() api.MessageType
func (*BridgeDomainAddDel) Reset ¶
func (m *BridgeDomainAddDel) Reset()
type BridgeDomainAddDelReply ¶
type BridgeDomainAddDelReply struct {
Retval int32
}
BridgeDomainAddDelReply represents VPP binary API message 'bridge_domain_add_del_reply'.
func (*BridgeDomainAddDelReply) GetCrcString ¶
func (*BridgeDomainAddDelReply) GetCrcString() string
func (*BridgeDomainAddDelReply) GetMessageName ¶
func (*BridgeDomainAddDelReply) GetMessageName() string
func (*BridgeDomainAddDelReply) GetMessageType ¶
func (*BridgeDomainAddDelReply) GetMessageType() api.MessageType
func (*BridgeDomainAddDelReply) Reset ¶
func (m *BridgeDomainAddDelReply) Reset()
type BridgeDomainDetails ¶
type BridgeDomainDetails struct { BdID uint32 Flood bool UuFlood bool Forward bool Learn bool ArpTerm bool ArpUfwd bool MacAge uint8 BdTag string `struc:"[64]byte"` BviSwIfIndex InterfaceIndex UuFwdSwIfIndex InterfaceIndex NSwIfs uint32 `struc:"sizeof=SwIfDetails"` SwIfDetails []BridgeDomainSwIf }
BridgeDomainDetails represents VPP binary API message 'bridge_domain_details'.
func (*BridgeDomainDetails) GetCrcString ¶
func (*BridgeDomainDetails) GetCrcString() string
func (*BridgeDomainDetails) GetMessageName ¶
func (*BridgeDomainDetails) GetMessageName() string
func (*BridgeDomainDetails) GetMessageType ¶
func (*BridgeDomainDetails) GetMessageType() api.MessageType
func (*BridgeDomainDetails) Reset ¶
func (m *BridgeDomainDetails) Reset()
type BridgeDomainDump ¶
type BridgeDomainDump struct { BdID uint32 SwIfIndex InterfaceIndex }
BridgeDomainDump represents VPP binary API message 'bridge_domain_dump'.
func (*BridgeDomainDump) GetCrcString ¶
func (*BridgeDomainDump) GetCrcString() string
func (*BridgeDomainDump) GetMessageName ¶
func (*BridgeDomainDump) GetMessageName() string
func (*BridgeDomainDump) GetMessageType ¶
func (*BridgeDomainDump) GetMessageType() api.MessageType
func (*BridgeDomainDump) Reset ¶
func (m *BridgeDomainDump) Reset()
type BridgeDomainSetMacAge ¶
BridgeDomainSetMacAge represents VPP binary API message 'bridge_domain_set_mac_age'.
func (*BridgeDomainSetMacAge) GetCrcString ¶
func (*BridgeDomainSetMacAge) GetCrcString() string
func (*BridgeDomainSetMacAge) GetMessageName ¶
func (*BridgeDomainSetMacAge) GetMessageName() string
func (*BridgeDomainSetMacAge) GetMessageType ¶
func (*BridgeDomainSetMacAge) GetMessageType() api.MessageType
func (*BridgeDomainSetMacAge) Reset ¶
func (m *BridgeDomainSetMacAge) Reset()
type BridgeDomainSetMacAgeReply ¶
type BridgeDomainSetMacAgeReply struct {
Retval int32
}
BridgeDomainSetMacAgeReply represents VPP binary API message 'bridge_domain_set_mac_age_reply'.
func (*BridgeDomainSetMacAgeReply) GetCrcString ¶
func (*BridgeDomainSetMacAgeReply) GetCrcString() string
func (*BridgeDomainSetMacAgeReply) GetMessageName ¶
func (*BridgeDomainSetMacAgeReply) GetMessageName() string
func (*BridgeDomainSetMacAgeReply) GetMessageType ¶
func (*BridgeDomainSetMacAgeReply) GetMessageType() api.MessageType
func (*BridgeDomainSetMacAgeReply) Reset ¶
func (m *BridgeDomainSetMacAgeReply) Reset()
type BridgeDomainSwIf ¶
type BridgeDomainSwIf struct { Context uint32 SwIfIndex InterfaceIndex Shg uint8 }
BridgeDomainSwIf represents VPP binary API type 'bridge_domain_sw_if'.
func (*BridgeDomainSwIf) GetTypeName ¶
func (*BridgeDomainSwIf) GetTypeName() string
type BridgeFlags ¶
BridgeFlags represents VPP binary API message 'bridge_flags'.
func (*BridgeFlags) GetCrcString ¶
func (*BridgeFlags) GetCrcString() string
func (*BridgeFlags) GetMessageName ¶
func (*BridgeFlags) GetMessageName() string
func (*BridgeFlags) GetMessageType ¶
func (*BridgeFlags) GetMessageType() api.MessageType
func (*BridgeFlags) Reset ¶
func (m *BridgeFlags) Reset()
type BridgeFlagsReply ¶
BridgeFlagsReply represents VPP binary API message 'bridge_flags_reply'.
func (*BridgeFlagsReply) GetCrcString ¶
func (*BridgeFlagsReply) GetCrcString() string
func (*BridgeFlagsReply) GetMessageName ¶
func (*BridgeFlagsReply) GetMessageName() string
func (*BridgeFlagsReply) GetMessageType ¶
func (*BridgeFlagsReply) GetMessageType() api.MessageType
func (*BridgeFlagsReply) Reset ¶
func (m *BridgeFlagsReply) Reset()
type BviCreate ¶
type BviCreate struct { Mac MacAddress UserInstance uint32 }
BviCreate represents VPP binary API message 'bvi_create'.
func (*BviCreate) GetCrcString ¶
func (*BviCreate) GetMessageName ¶
func (*BviCreate) GetMessageType ¶
func (*BviCreate) GetMessageType() api.MessageType
type BviCreateReply ¶
type BviCreateReply struct { Retval int32 SwIfIndex InterfaceIndex }
BviCreateReply represents VPP binary API message 'bvi_create_reply'.
func (*BviCreateReply) GetCrcString ¶
func (*BviCreateReply) GetCrcString() string
func (*BviCreateReply) GetMessageName ¶
func (*BviCreateReply) GetMessageName() string
func (*BviCreateReply) GetMessageType ¶
func (*BviCreateReply) GetMessageType() api.MessageType
func (*BviCreateReply) Reset ¶
func (m *BviCreateReply) Reset()
type BviDelete ¶
type BviDelete struct {
SwIfIndex InterfaceIndex
}
BviDelete represents VPP binary API message 'bvi_delete'.
func (*BviDelete) GetCrcString ¶
func (*BviDelete) GetMessageName ¶
func (*BviDelete) GetMessageType ¶
func (*BviDelete) GetMessageType() api.MessageType
type BviDeleteReply ¶
type BviDeleteReply struct {
Retval int32
}
BviDeleteReply represents VPP binary API message 'bvi_delete_reply'.
func (*BviDeleteReply) GetCrcString ¶
func (*BviDeleteReply) GetCrcString() string
func (*BviDeleteReply) GetMessageName ¶
func (*BviDeleteReply) GetMessageName() string
func (*BviDeleteReply) GetMessageType ¶
func (*BviDeleteReply) GetMessageType() api.MessageType
func (*BviDeleteReply) Reset ¶
func (m *BviDeleteReply) Reset()
type IP4Address ¶
type IP4Address [4]uint8
IP4Address represents VPP binary API alias 'ip4_address'.
type IP4AddressWithPrefix ¶
type IP4AddressWithPrefix IP4Prefix
IP4AddressWithPrefix represents VPP binary API alias 'ip4_address_with_prefix'.
type IP4Prefix ¶
type IP4Prefix struct { Address IP4Address Len uint8 }
IP4Prefix represents VPP binary API type 'ip4_prefix'.
func (*IP4Prefix) GetTypeName ¶
type IP6Address ¶
type IP6Address [16]uint8
IP6Address represents VPP binary API alias 'ip6_address'.
type IP6AddressWithPrefix ¶
type IP6AddressWithPrefix IP6Prefix
IP6AddressWithPrefix represents VPP binary API alias 'ip6_address_with_prefix'.
type IP6Prefix ¶
type IP6Prefix struct { Address IP6Address Len uint8 }
IP6Prefix represents VPP binary API type 'ip6_prefix'.
func (*IP6Prefix) GetTypeName ¶
type IPDscp ¶
type IPDscp uint8
IPDscp represents VPP binary API enum 'ip_dscp'.
const ( IP_API_DSCP_CS0 IPDscp = 0 IP_API_DSCP_CS1 IPDscp = 8 IP_API_DSCP_AF11 IPDscp = 10 IP_API_DSCP_AF12 IPDscp = 12 IP_API_DSCP_AF13 IPDscp = 14 IP_API_DSCP_CS2 IPDscp = 16 IP_API_DSCP_AF21 IPDscp = 18 IP_API_DSCP_AF22 IPDscp = 20 IP_API_DSCP_AF23 IPDscp = 22 IP_API_DSCP_CS3 IPDscp = 24 IP_API_DSCP_AF31 IPDscp = 26 IP_API_DSCP_AF32 IPDscp = 28 IP_API_DSCP_AF33 IPDscp = 30 IP_API_DSCP_CS4 IPDscp = 32 IP_API_DSCP_AF41 IPDscp = 34 IP_API_DSCP_AF42 IPDscp = 36 IP_API_DSCP_AF43 IPDscp = 38 IP_API_DSCP_CS5 IPDscp = 40 IP_API_DSCP_EF IPDscp = 46 IP_API_DSCP_CS6 IPDscp = 48 IP_API_DSCP_CS7 IPDscp = 50 )
type IPProto ¶
type IPProto uint8
IPProto represents VPP binary API enum 'ip_proto'.
const ( IP_API_PROTO_HOPOPT IPProto = 0 IP_API_PROTO_ICMP IPProto = 1 IP_API_PROTO_IGMP IPProto = 2 IP_API_PROTO_TCP IPProto = 6 IP_API_PROTO_UDP IPProto = 17 IP_API_PROTO_GRE IPProto = 47 IP_API_PROTO_ESP IPProto = 50 IP_API_PROTO_AH IPProto = 51 IP_API_PROTO_ICMP6 IPProto = 58 IP_API_PROTO_EIGRP IPProto = 88 IP_API_PROTO_OSPF IPProto = 89 IP_API_PROTO_SCTP IPProto = 132 IP_API_PROTO_RESERVED IPProto = 255 )
type IfStatusFlags ¶
type IfStatusFlags uint32
IfStatusFlags represents VPP binary API enum 'if_status_flags'.
const ( IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1 IF_STATUS_API_FLAG_LINK_UP IfStatusFlags = 2 )
func (IfStatusFlags) String ¶
func (x IfStatusFlags) String() string
type InterfaceIndex ¶
type InterfaceIndex uint32
InterfaceIndex represents VPP binary API alias 'interface_index'.
type L2ArpTermEvent ¶
type L2ArpTermEvent struct { PID uint32 IP Address SwIfIndex InterfaceIndex Mac MacAddress }
L2ArpTermEvent represents VPP binary API message 'l2_arp_term_event'.
func (*L2ArpTermEvent) GetCrcString ¶
func (*L2ArpTermEvent) GetCrcString() string
func (*L2ArpTermEvent) GetMessageName ¶
func (*L2ArpTermEvent) GetMessageName() string
func (*L2ArpTermEvent) GetMessageType ¶
func (*L2ArpTermEvent) GetMessageType() api.MessageType
func (*L2ArpTermEvent) Reset ¶
func (m *L2ArpTermEvent) Reset()
type L2FibClearTable ¶
type L2FibClearTable struct{}
L2FibClearTable represents VPP binary API message 'l2_fib_clear_table'.
func (*L2FibClearTable) GetCrcString ¶
func (*L2FibClearTable) GetCrcString() string
func (*L2FibClearTable) GetMessageName ¶
func (*L2FibClearTable) GetMessageName() string
func (*L2FibClearTable) GetMessageType ¶
func (*L2FibClearTable) GetMessageType() api.MessageType
func (*L2FibClearTable) Reset ¶
func (m *L2FibClearTable) Reset()
type L2FibClearTableReply ¶
type L2FibClearTableReply struct {
Retval int32
}
L2FibClearTableReply represents VPP binary API message 'l2_fib_clear_table_reply'.
func (*L2FibClearTableReply) GetCrcString ¶
func (*L2FibClearTableReply) GetCrcString() string
func (*L2FibClearTableReply) GetMessageName ¶
func (*L2FibClearTableReply) GetMessageName() string
func (*L2FibClearTableReply) GetMessageType ¶
func (*L2FibClearTableReply) GetMessageType() api.MessageType
func (*L2FibClearTableReply) Reset ¶
func (m *L2FibClearTableReply) Reset()
type L2FibTableDetails ¶
type L2FibTableDetails struct { BdID uint32 Mac MacAddress SwIfIndex InterfaceIndex StaticMac bool FilterMac bool BviMac bool }
L2FibTableDetails represents VPP binary API message 'l2_fib_table_details'.
func (*L2FibTableDetails) GetCrcString ¶
func (*L2FibTableDetails) GetCrcString() string
func (*L2FibTableDetails) GetMessageName ¶
func (*L2FibTableDetails) GetMessageName() string
func (*L2FibTableDetails) GetMessageType ¶
func (*L2FibTableDetails) GetMessageType() api.MessageType
func (*L2FibTableDetails) Reset ¶
func (m *L2FibTableDetails) Reset()
type L2FibTableDump ¶
type L2FibTableDump struct {
BdID uint32
}
L2FibTableDump represents VPP binary API message 'l2_fib_table_dump'.
func (*L2FibTableDump) GetCrcString ¶
func (*L2FibTableDump) GetCrcString() string
func (*L2FibTableDump) GetMessageName ¶
func (*L2FibTableDump) GetMessageName() string
func (*L2FibTableDump) GetMessageType ¶
func (*L2FibTableDump) GetMessageType() api.MessageType
func (*L2FibTableDump) Reset ¶
func (m *L2FibTableDump) Reset()
type L2Flags ¶
type L2Flags struct { SwIfIndex InterfaceIndex IsSet bool FeatureBitmap uint32 }
L2Flags represents VPP binary API message 'l2_flags'.
func (*L2Flags) GetCrcString ¶
func (*L2Flags) GetMessageName ¶
func (*L2Flags) GetMessageType ¶
func (*L2Flags) GetMessageType() api.MessageType
type L2FlagsReply ¶
L2FlagsReply represents VPP binary API message 'l2_flags_reply'.
func (*L2FlagsReply) GetCrcString ¶
func (*L2FlagsReply) GetCrcString() string
func (*L2FlagsReply) GetMessageName ¶
func (*L2FlagsReply) GetMessageName() string
func (*L2FlagsReply) GetMessageType ¶
func (*L2FlagsReply) GetMessageType() api.MessageType
func (*L2FlagsReply) Reset ¶
func (m *L2FlagsReply) Reset()
type L2InterfaceEfpFilter ¶
type L2InterfaceEfpFilter struct { SwIfIndex InterfaceIndex EnableDisable bool }
L2InterfaceEfpFilter represents VPP binary API message 'l2_interface_efp_filter'.
func (*L2InterfaceEfpFilter) GetCrcString ¶
func (*L2InterfaceEfpFilter) GetCrcString() string
func (*L2InterfaceEfpFilter) GetMessageName ¶
func (*L2InterfaceEfpFilter) GetMessageName() string
func (*L2InterfaceEfpFilter) GetMessageType ¶
func (*L2InterfaceEfpFilter) GetMessageType() api.MessageType
func (*L2InterfaceEfpFilter) Reset ¶
func (m *L2InterfaceEfpFilter) Reset()
type L2InterfaceEfpFilterReply ¶
type L2InterfaceEfpFilterReply struct {
Retval int32
}
L2InterfaceEfpFilterReply represents VPP binary API message 'l2_interface_efp_filter_reply'.
func (*L2InterfaceEfpFilterReply) GetCrcString ¶
func (*L2InterfaceEfpFilterReply) GetCrcString() string
func (*L2InterfaceEfpFilterReply) GetMessageName ¶
func (*L2InterfaceEfpFilterReply) GetMessageName() string
func (*L2InterfaceEfpFilterReply) GetMessageType ¶
func (*L2InterfaceEfpFilterReply) GetMessageType() api.MessageType
func (*L2InterfaceEfpFilterReply) Reset ¶
func (m *L2InterfaceEfpFilterReply) Reset()
type L2InterfacePbbTagRewrite ¶
type L2InterfacePbbTagRewrite struct { SwIfIndex InterfaceIndex VtrOp uint32 OuterTag uint16 BDmac MacAddress BSmac MacAddress BVlanid uint16 ISid uint32 }
L2InterfacePbbTagRewrite represents VPP binary API message 'l2_interface_pbb_tag_rewrite'.
func (*L2InterfacePbbTagRewrite) GetCrcString ¶
func (*L2InterfacePbbTagRewrite) GetCrcString() string
func (*L2InterfacePbbTagRewrite) GetMessageName ¶
func (*L2InterfacePbbTagRewrite) GetMessageName() string
func (*L2InterfacePbbTagRewrite) GetMessageType ¶
func (*L2InterfacePbbTagRewrite) GetMessageType() api.MessageType
func (*L2InterfacePbbTagRewrite) Reset ¶
func (m *L2InterfacePbbTagRewrite) Reset()
type L2InterfacePbbTagRewriteReply ¶
type L2InterfacePbbTagRewriteReply struct {
Retval int32
}
L2InterfacePbbTagRewriteReply represents VPP binary API message 'l2_interface_pbb_tag_rewrite_reply'.
func (*L2InterfacePbbTagRewriteReply) GetCrcString ¶
func (*L2InterfacePbbTagRewriteReply) GetCrcString() string
func (*L2InterfacePbbTagRewriteReply) GetMessageName ¶
func (*L2InterfacePbbTagRewriteReply) GetMessageName() string
func (*L2InterfacePbbTagRewriteReply) GetMessageType ¶
func (*L2InterfacePbbTagRewriteReply) GetMessageType() api.MessageType
func (*L2InterfacePbbTagRewriteReply) Reset ¶
func (m *L2InterfacePbbTagRewriteReply) Reset()
type L2InterfaceVlanTagRewrite ¶
type L2InterfaceVlanTagRewrite struct { SwIfIndex InterfaceIndex VtrOp uint32 PushDot1q uint32 Tag1 uint32 Tag2 uint32 }
L2InterfaceVlanTagRewrite represents VPP binary API message 'l2_interface_vlan_tag_rewrite'.
func (*L2InterfaceVlanTagRewrite) GetCrcString ¶
func (*L2InterfaceVlanTagRewrite) GetCrcString() string
func (*L2InterfaceVlanTagRewrite) GetMessageName ¶
func (*L2InterfaceVlanTagRewrite) GetMessageName() string
func (*L2InterfaceVlanTagRewrite) GetMessageType ¶
func (*L2InterfaceVlanTagRewrite) GetMessageType() api.MessageType
func (*L2InterfaceVlanTagRewrite) Reset ¶
func (m *L2InterfaceVlanTagRewrite) Reset()
type L2InterfaceVlanTagRewriteReply ¶
type L2InterfaceVlanTagRewriteReply struct {
Retval int32
}
L2InterfaceVlanTagRewriteReply represents VPP binary API message 'l2_interface_vlan_tag_rewrite_reply'.
func (*L2InterfaceVlanTagRewriteReply) GetCrcString ¶
func (*L2InterfaceVlanTagRewriteReply) GetCrcString() string
func (*L2InterfaceVlanTagRewriteReply) GetMessageName ¶
func (*L2InterfaceVlanTagRewriteReply) GetMessageName() string
func (*L2InterfaceVlanTagRewriteReply) GetMessageType ¶
func (*L2InterfaceVlanTagRewriteReply) GetMessageType() api.MessageType
func (*L2InterfaceVlanTagRewriteReply) Reset ¶
func (m *L2InterfaceVlanTagRewriteReply) Reset()
type L2MacsEvent ¶
L2MacsEvent represents VPP binary API message 'l2_macs_event'.
func (*L2MacsEvent) GetCrcString ¶
func (*L2MacsEvent) GetCrcString() string
func (*L2MacsEvent) GetMessageName ¶
func (*L2MacsEvent) GetMessageName() string
func (*L2MacsEvent) GetMessageType ¶
func (*L2MacsEvent) GetMessageType() api.MessageType
func (*L2MacsEvent) Reset ¶
func (m *L2MacsEvent) Reset()
type L2PatchAddDel ¶
type L2PatchAddDel struct { RxSwIfIndex InterfaceIndex TxSwIfIndex InterfaceIndex IsAdd bool }
L2PatchAddDel represents VPP binary API message 'l2_patch_add_del'.
func (*L2PatchAddDel) GetCrcString ¶
func (*L2PatchAddDel) GetCrcString() string
func (*L2PatchAddDel) GetMessageName ¶
func (*L2PatchAddDel) GetMessageName() string
func (*L2PatchAddDel) GetMessageType ¶
func (*L2PatchAddDel) GetMessageType() api.MessageType
func (*L2PatchAddDel) Reset ¶
func (m *L2PatchAddDel) Reset()
type L2PatchAddDelReply ¶
type L2PatchAddDelReply struct {
Retval int32
}
L2PatchAddDelReply represents VPP binary API message 'l2_patch_add_del_reply'.
func (*L2PatchAddDelReply) GetCrcString ¶
func (*L2PatchAddDelReply) GetCrcString() string
func (*L2PatchAddDelReply) GetMessageName ¶
func (*L2PatchAddDelReply) GetMessageName() string
func (*L2PatchAddDelReply) GetMessageType ¶
func (*L2PatchAddDelReply) GetMessageType() api.MessageType
func (*L2PatchAddDelReply) Reset ¶
func (m *L2PatchAddDelReply) Reset()
type L2PortType ¶
type L2PortType uint32
L2PortType represents VPP binary API enum 'l2_port_type'.
const ( L2_API_PORT_TYPE_NORMAL L2PortType = 0 L2_API_PORT_TYPE_BVI L2PortType = 1 L2_API_PORT_TYPE_UU_FWD L2PortType = 2 )
func (L2PortType) String ¶
func (x L2PortType) String() string
type L2XconnectDetails ¶
type L2XconnectDetails struct { RxSwIfIndex InterfaceIndex TxSwIfIndex InterfaceIndex }
L2XconnectDetails represents VPP binary API message 'l2_xconnect_details'.
func (*L2XconnectDetails) GetCrcString ¶
func (*L2XconnectDetails) GetCrcString() string
func (*L2XconnectDetails) GetMessageName ¶
func (*L2XconnectDetails) GetMessageName() string
func (*L2XconnectDetails) GetMessageType ¶
func (*L2XconnectDetails) GetMessageType() api.MessageType
func (*L2XconnectDetails) Reset ¶
func (m *L2XconnectDetails) Reset()
type L2XconnectDump ¶
type L2XconnectDump struct{}
L2XconnectDump represents VPP binary API message 'l2_xconnect_dump'.
func (*L2XconnectDump) GetCrcString ¶
func (*L2XconnectDump) GetCrcString() string
func (*L2XconnectDump) GetMessageName ¶
func (*L2XconnectDump) GetMessageName() string
func (*L2XconnectDump) GetMessageType ¶
func (*L2XconnectDump) GetMessageType() api.MessageType
func (*L2XconnectDump) Reset ¶
func (m *L2XconnectDump) Reset()
type L2fibAddDel ¶
type L2fibAddDel struct { Mac MacAddress BdID uint32 SwIfIndex InterfaceIndex IsAdd bool StaticMac bool FilterMac bool BviMac bool }
L2fibAddDel represents VPP binary API message 'l2fib_add_del'.
func (*L2fibAddDel) GetCrcString ¶
func (*L2fibAddDel) GetCrcString() string
func (*L2fibAddDel) GetMessageName ¶
func (*L2fibAddDel) GetMessageName() string
func (*L2fibAddDel) GetMessageType ¶
func (*L2fibAddDel) GetMessageType() api.MessageType
func (*L2fibAddDel) Reset ¶
func (m *L2fibAddDel) Reset()
type L2fibAddDelReply ¶
type L2fibAddDelReply struct {
Retval int32
}
L2fibAddDelReply represents VPP binary API message 'l2fib_add_del_reply'.
func (*L2fibAddDelReply) GetCrcString ¶
func (*L2fibAddDelReply) GetCrcString() string
func (*L2fibAddDelReply) GetMessageName ¶
func (*L2fibAddDelReply) GetMessageName() string
func (*L2fibAddDelReply) GetMessageType ¶
func (*L2fibAddDelReply) GetMessageType() api.MessageType
func (*L2fibAddDelReply) Reset ¶
func (m *L2fibAddDelReply) Reset()
type L2fibFlushAll ¶
type L2fibFlushAll struct{}
L2fibFlushAll represents VPP binary API message 'l2fib_flush_all'.
func (*L2fibFlushAll) GetCrcString ¶
func (*L2fibFlushAll) GetCrcString() string
func (*L2fibFlushAll) GetMessageName ¶
func (*L2fibFlushAll) GetMessageName() string
func (*L2fibFlushAll) GetMessageType ¶
func (*L2fibFlushAll) GetMessageType() api.MessageType
func (*L2fibFlushAll) Reset ¶
func (m *L2fibFlushAll) Reset()
type L2fibFlushAllReply ¶
type L2fibFlushAllReply struct {
Retval int32
}
L2fibFlushAllReply represents VPP binary API message 'l2fib_flush_all_reply'.
func (*L2fibFlushAllReply) GetCrcString ¶
func (*L2fibFlushAllReply) GetCrcString() string
func (*L2fibFlushAllReply) GetMessageName ¶
func (*L2fibFlushAllReply) GetMessageName() string
func (*L2fibFlushAllReply) GetMessageType ¶
func (*L2fibFlushAllReply) GetMessageType() api.MessageType
func (*L2fibFlushAllReply) Reset ¶
func (m *L2fibFlushAllReply) Reset()
type L2fibFlushBd ¶
type L2fibFlushBd struct {
BdID uint32
}
L2fibFlushBd represents VPP binary API message 'l2fib_flush_bd'.
func (*L2fibFlushBd) GetCrcString ¶
func (*L2fibFlushBd) GetCrcString() string
func (*L2fibFlushBd) GetMessageName ¶
func (*L2fibFlushBd) GetMessageName() string
func (*L2fibFlushBd) GetMessageType ¶
func (*L2fibFlushBd) GetMessageType() api.MessageType
func (*L2fibFlushBd) Reset ¶
func (m *L2fibFlushBd) Reset()
type L2fibFlushBdReply ¶
type L2fibFlushBdReply struct {
Retval int32
}
L2fibFlushBdReply represents VPP binary API message 'l2fib_flush_bd_reply'.
func (*L2fibFlushBdReply) GetCrcString ¶
func (*L2fibFlushBdReply) GetCrcString() string
func (*L2fibFlushBdReply) GetMessageName ¶
func (*L2fibFlushBdReply) GetMessageName() string
func (*L2fibFlushBdReply) GetMessageType ¶
func (*L2fibFlushBdReply) GetMessageType() api.MessageType
func (*L2fibFlushBdReply) Reset ¶
func (m *L2fibFlushBdReply) Reset()
type L2fibFlushInt ¶
type L2fibFlushInt struct {
SwIfIndex InterfaceIndex
}
L2fibFlushInt represents VPP binary API message 'l2fib_flush_int'.
func (*L2fibFlushInt) GetCrcString ¶
func (*L2fibFlushInt) GetCrcString() string
func (*L2fibFlushInt) GetMessageName ¶
func (*L2fibFlushInt) GetMessageName() string
func (*L2fibFlushInt) GetMessageType ¶
func (*L2fibFlushInt) GetMessageType() api.MessageType
func (*L2fibFlushInt) Reset ¶
func (m *L2fibFlushInt) Reset()
type L2fibFlushIntReply ¶
type L2fibFlushIntReply struct {
Retval int32
}
L2fibFlushIntReply represents VPP binary API message 'l2fib_flush_int_reply'.
func (*L2fibFlushIntReply) GetCrcString ¶
func (*L2fibFlushIntReply) GetCrcString() string
func (*L2fibFlushIntReply) GetMessageName ¶
func (*L2fibFlushIntReply) GetMessageName() string
func (*L2fibFlushIntReply) GetMessageType ¶
func (*L2fibFlushIntReply) GetMessageType() api.MessageType
func (*L2fibFlushIntReply) Reset ¶
func (m *L2fibFlushIntReply) Reset()
type LinkDuplex ¶
type LinkDuplex uint32
LinkDuplex represents VPP binary API enum 'link_duplex'.
const ( LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0 LINK_DUPLEX_API_HALF LinkDuplex = 1 LINK_DUPLEX_API_FULL LinkDuplex = 2 )
func (LinkDuplex) String ¶
func (x LinkDuplex) String() string
type MacAddress ¶
type MacAddress [6]uint8
MacAddress represents VPP binary API alias 'mac_address'.
type MacEntry ¶
type MacEntry struct { SwIfIndex InterfaceIndex MacAddr MacAddress Action MacEventAction Flags uint8 }
MacEntry represents VPP binary API type 'mac_entry'.
func (*MacEntry) GetTypeName ¶
type MacEventAction ¶
type MacEventAction uint32
MacEventAction represents VPP binary API enum 'mac_event_action'.
const ( MAC_EVENT_ACTION_API_ADD MacEventAction = 0 MAC_EVENT_ACTION_API_DELETE MacEventAction = 1 MAC_EVENT_ACTION_API_MOVE MacEventAction = 2 )
func (MacEventAction) String ¶
func (x MacEventAction) String() string
type Mprefix ¶
type Mprefix struct { Af AddressFamily GrpAddressLength uint16 GrpAddress AddressUnion SrcAddress AddressUnion }
Mprefix represents VPP binary API type 'mprefix'.
func (*Mprefix) GetTypeName ¶
type PrefixMatcher ¶
PrefixMatcher represents VPP binary API type 'prefix_matcher'.
func (*PrefixMatcher) GetTypeName ¶
func (*PrefixMatcher) GetTypeName() string
type RPCService ¶
type RPCService interface { DumpBdIPMac(ctx context.Context, in *BdIPMacDump) (RPCService_DumpBdIPMacClient, error) DumpBridgeDomain(ctx context.Context, in *BridgeDomainDump) (RPCService_DumpBridgeDomainClient, error) DumpL2FibTable(ctx context.Context, in *L2FibTableDump) (RPCService_DumpL2FibTableClient, error) DumpL2Xconnect(ctx context.Context, in *L2XconnectDump) (RPCService_DumpL2XconnectClient, error) BdIPMacAddDel(ctx context.Context, in *BdIPMacAddDel) (*BdIPMacAddDelReply, error) BdIPMacFlush(ctx context.Context, in *BdIPMacFlush) (*BdIPMacFlushReply, error) BridgeDomainAddDel(ctx context.Context, in *BridgeDomainAddDel) (*BridgeDomainAddDelReply, error) BridgeDomainSetMacAge(ctx context.Context, in *BridgeDomainSetMacAge) (*BridgeDomainSetMacAgeReply, error) BridgeFlags(ctx context.Context, in *BridgeFlags) (*BridgeFlagsReply, error) BviCreate(ctx context.Context, in *BviCreate) (*BviCreateReply, error) BviDelete(ctx context.Context, in *BviDelete) (*BviDeleteReply, error) L2FibClearTable(ctx context.Context, in *L2FibClearTable) (*L2FibClearTableReply, error) L2Flags(ctx context.Context, in *L2Flags) (*L2FlagsReply, error) L2InterfaceEfpFilter(ctx context.Context, in *L2InterfaceEfpFilter) (*L2InterfaceEfpFilterReply, error) L2InterfacePbbTagRewrite(ctx context.Context, in *L2InterfacePbbTagRewrite) (*L2InterfacePbbTagRewriteReply, error) L2InterfaceVlanTagRewrite(ctx context.Context, in *L2InterfaceVlanTagRewrite) (*L2InterfaceVlanTagRewriteReply, error) L2PatchAddDel(ctx context.Context, in *L2PatchAddDel) (*L2PatchAddDelReply, error) L2fibAddDel(ctx context.Context, in *L2fibAddDel) (*L2fibAddDelReply, error) L2fibFlushAll(ctx context.Context, in *L2fibFlushAll) (*L2fibFlushAllReply, error) L2fibFlushBd(ctx context.Context, in *L2fibFlushBd) (*L2fibFlushBdReply, error) L2fibFlushInt(ctx context.Context, in *L2fibFlushInt) (*L2fibFlushIntReply, error) SwInterfaceSetL2Bridge(ctx context.Context, in *SwInterfaceSetL2Bridge) (*SwInterfaceSetL2BridgeReply, error) SwInterfaceSetL2Xconnect(ctx context.Context, in *SwInterfaceSetL2Xconnect) (*SwInterfaceSetL2XconnectReply, error) SwInterfaceSetVpath(ctx context.Context, in *SwInterfaceSetVpath) (*SwInterfaceSetVpathReply, error) WantL2ArpTermEvents(ctx context.Context, in *WantL2ArpTermEvents) (*WantL2ArpTermEventsReply, error) WantL2MacsEvents(ctx context.Context, in *WantL2MacsEvents) (*WantL2MacsEventsReply, error) }
RPCService represents RPC service API for l2 module.
func NewServiceClient ¶
func NewServiceClient(ch api.Channel) RPCService
type RPCService_DumpBdIPMacClient ¶
type RPCService_DumpBdIPMacClient interface {
Recv() (*BdIPMacDetails, error)
}
type RPCService_DumpBridgeDomainClient ¶
type RPCService_DumpBridgeDomainClient interface {
Recv() (*BridgeDomainDetails, error)
}
type RPCService_DumpL2FibTableClient ¶
type RPCService_DumpL2FibTableClient interface {
Recv() (*L2FibTableDetails, error)
}
type RPCService_DumpL2XconnectClient ¶
type RPCService_DumpL2XconnectClient interface {
Recv() (*L2XconnectDetails, error)
}
type SubIfFlags ¶
type SubIfFlags uint32
SubIfFlags represents VPP binary API enum 'sub_if_flags'.
const ( SUB_IF_API_FLAG_NO_TAGS SubIfFlags = 1 SUB_IF_API_FLAG_ONE_TAG SubIfFlags = 2 SUB_IF_API_FLAG_TWO_TAGS SubIfFlags = 4 SUB_IF_API_FLAG_DOT1AD SubIfFlags = 8 SUB_IF_API_FLAG_EXACT_MATCH SubIfFlags = 16 SUB_IF_API_FLAG_DEFAULT SubIfFlags = 32 SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64 SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128 SUB_IF_API_FLAG_MASK_VNET SubIfFlags = 254 SUB_IF_API_FLAG_DOT1AH SubIfFlags = 256 )
func (SubIfFlags) String ¶
func (x SubIfFlags) String() string
type SwInterfaceSetL2Bridge ¶
type SwInterfaceSetL2Bridge struct { RxSwIfIndex InterfaceIndex BdID uint32 PortType L2PortType Shg uint8 Enable bool }
SwInterfaceSetL2Bridge represents VPP binary API message 'sw_interface_set_l2_bridge'.
func (*SwInterfaceSetL2Bridge) GetCrcString ¶
func (*SwInterfaceSetL2Bridge) GetCrcString() string
func (*SwInterfaceSetL2Bridge) GetMessageName ¶
func (*SwInterfaceSetL2Bridge) GetMessageName() string
func (*SwInterfaceSetL2Bridge) GetMessageType ¶
func (*SwInterfaceSetL2Bridge) GetMessageType() api.MessageType
func (*SwInterfaceSetL2Bridge) Reset ¶
func (m *SwInterfaceSetL2Bridge) Reset()
type SwInterfaceSetL2BridgeReply ¶
type SwInterfaceSetL2BridgeReply struct {
Retval int32
}
SwInterfaceSetL2BridgeReply represents VPP binary API message 'sw_interface_set_l2_bridge_reply'.
func (*SwInterfaceSetL2BridgeReply) GetCrcString ¶
func (*SwInterfaceSetL2BridgeReply) GetCrcString() string
func (*SwInterfaceSetL2BridgeReply) GetMessageName ¶
func (*SwInterfaceSetL2BridgeReply) GetMessageName() string
func (*SwInterfaceSetL2BridgeReply) GetMessageType ¶
func (*SwInterfaceSetL2BridgeReply) GetMessageType() api.MessageType
func (*SwInterfaceSetL2BridgeReply) Reset ¶
func (m *SwInterfaceSetL2BridgeReply) Reset()
type SwInterfaceSetL2Xconnect ¶
type SwInterfaceSetL2Xconnect struct { RxSwIfIndex InterfaceIndex TxSwIfIndex InterfaceIndex Enable bool }
SwInterfaceSetL2Xconnect represents VPP binary API message 'sw_interface_set_l2_xconnect'.
func (*SwInterfaceSetL2Xconnect) GetCrcString ¶
func (*SwInterfaceSetL2Xconnect) GetCrcString() string
func (*SwInterfaceSetL2Xconnect) GetMessageName ¶
func (*SwInterfaceSetL2Xconnect) GetMessageName() string
func (*SwInterfaceSetL2Xconnect) GetMessageType ¶
func (*SwInterfaceSetL2Xconnect) GetMessageType() api.MessageType
func (*SwInterfaceSetL2Xconnect) Reset ¶
func (m *SwInterfaceSetL2Xconnect) Reset()
type SwInterfaceSetL2XconnectReply ¶
type SwInterfaceSetL2XconnectReply struct {
Retval int32
}
SwInterfaceSetL2XconnectReply represents VPP binary API message 'sw_interface_set_l2_xconnect_reply'.
func (*SwInterfaceSetL2XconnectReply) GetCrcString ¶
func (*SwInterfaceSetL2XconnectReply) GetCrcString() string
func (*SwInterfaceSetL2XconnectReply) GetMessageName ¶
func (*SwInterfaceSetL2XconnectReply) GetMessageName() string
func (*SwInterfaceSetL2XconnectReply) GetMessageType ¶
func (*SwInterfaceSetL2XconnectReply) GetMessageType() api.MessageType
func (*SwInterfaceSetL2XconnectReply) Reset ¶
func (m *SwInterfaceSetL2XconnectReply) Reset()
type SwInterfaceSetVpath ¶
type SwInterfaceSetVpath struct { SwIfIndex InterfaceIndex Enable bool }
SwInterfaceSetVpath represents VPP binary API message 'sw_interface_set_vpath'.
func (*SwInterfaceSetVpath) GetCrcString ¶
func (*SwInterfaceSetVpath) GetCrcString() string
func (*SwInterfaceSetVpath) GetMessageName ¶
func (*SwInterfaceSetVpath) GetMessageName() string
func (*SwInterfaceSetVpath) GetMessageType ¶
func (*SwInterfaceSetVpath) GetMessageType() api.MessageType
func (*SwInterfaceSetVpath) Reset ¶
func (m *SwInterfaceSetVpath) Reset()
type SwInterfaceSetVpathReply ¶
type SwInterfaceSetVpathReply struct {
Retval int32
}
SwInterfaceSetVpathReply represents VPP binary API message 'sw_interface_set_vpath_reply'.
func (*SwInterfaceSetVpathReply) GetCrcString ¶
func (*SwInterfaceSetVpathReply) GetCrcString() string
func (*SwInterfaceSetVpathReply) GetMessageName ¶
func (*SwInterfaceSetVpathReply) GetMessageName() string
func (*SwInterfaceSetVpathReply) GetMessageType ¶
func (*SwInterfaceSetVpathReply) GetMessageType() api.MessageType
func (*SwInterfaceSetVpathReply) Reset ¶
func (m *SwInterfaceSetVpathReply) Reset()
type WantL2ArpTermEvents ¶
WantL2ArpTermEvents represents VPP binary API message 'want_l2_arp_term_events'.
func (*WantL2ArpTermEvents) GetCrcString ¶
func (*WantL2ArpTermEvents) GetCrcString() string
func (*WantL2ArpTermEvents) GetMessageName ¶
func (*WantL2ArpTermEvents) GetMessageName() string
func (*WantL2ArpTermEvents) GetMessageType ¶
func (*WantL2ArpTermEvents) GetMessageType() api.MessageType
func (*WantL2ArpTermEvents) Reset ¶
func (m *WantL2ArpTermEvents) Reset()
type WantL2ArpTermEventsReply ¶
type WantL2ArpTermEventsReply struct {
Retval int32
}
WantL2ArpTermEventsReply represents VPP binary API message 'want_l2_arp_term_events_reply'.
func (*WantL2ArpTermEventsReply) GetCrcString ¶
func (*WantL2ArpTermEventsReply) GetCrcString() string
func (*WantL2ArpTermEventsReply) GetMessageName ¶
func (*WantL2ArpTermEventsReply) GetMessageName() string
func (*WantL2ArpTermEventsReply) GetMessageType ¶
func (*WantL2ArpTermEventsReply) GetMessageType() api.MessageType
func (*WantL2ArpTermEventsReply) Reset ¶
func (m *WantL2ArpTermEventsReply) Reset()
type WantL2MacsEvents ¶
type WantL2MacsEvents struct { LearnLimit uint32 ScanDelay uint8 MaxMacsInEvent uint8 EnableDisable bool PID uint32 }
WantL2MacsEvents represents VPP binary API message 'want_l2_macs_events'.
func (*WantL2MacsEvents) GetCrcString ¶
func (*WantL2MacsEvents) GetCrcString() string
func (*WantL2MacsEvents) GetMessageName ¶
func (*WantL2MacsEvents) GetMessageName() string
func (*WantL2MacsEvents) GetMessageType ¶
func (*WantL2MacsEvents) GetMessageType() api.MessageType
func (*WantL2MacsEvents) Reset ¶
func (m *WantL2MacsEvents) Reset()
type WantL2MacsEventsReply ¶
type WantL2MacsEventsReply struct {
Retval int32
}
WantL2MacsEventsReply represents VPP binary API message 'want_l2_macs_events_reply'.
func (*WantL2MacsEventsReply) GetCrcString ¶
func (*WantL2MacsEventsReply) GetCrcString() string
func (*WantL2MacsEventsReply) GetMessageName ¶
func (*WantL2MacsEventsReply) GetMessageName() string
func (*WantL2MacsEventsReply) GetMessageType ¶
func (*WantL2MacsEventsReply) GetMessageType() api.MessageType
func (*WantL2MacsEventsReply) Reset ¶
func (m *WantL2MacsEventsReply) Reset()