Documentation
¶
Overview ¶
Package bier contains generated bindings for API file bier.api.
Contents:
5 aliases 7 enums 11 structs 1 union 22 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type Address
- type AddressFamily
- type AddressUnion
- type AddressWithPrefix
- type BierDispEntryAddDel
- func (*BierDispEntryAddDel) GetCrcString() string
- func (*BierDispEntryAddDel) GetMessageName() string
- func (*BierDispEntryAddDel) GetMessageType() api.MessageType
- func (m *BierDispEntryAddDel) Marshal(b []byte) ([]byte, error)
- func (m *BierDispEntryAddDel) Reset()
- func (m *BierDispEntryAddDel) Size() (size int)
- func (m *BierDispEntryAddDel) Unmarshal(b []byte) error
- type BierDispEntryAddDelReply
- func (*BierDispEntryAddDelReply) GetCrcString() string
- func (*BierDispEntryAddDelReply) GetMessageName() string
- func (*BierDispEntryAddDelReply) GetMessageType() api.MessageType
- func (m *BierDispEntryAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *BierDispEntryAddDelReply) Reset()
- func (m *BierDispEntryAddDelReply) Size() (size int)
- func (m *BierDispEntryAddDelReply) Unmarshal(b []byte) error
- type BierDispEntryDetails
- func (*BierDispEntryDetails) GetCrcString() string
- func (*BierDispEntryDetails) GetMessageName() string
- func (*BierDispEntryDetails) GetMessageType() api.MessageType
- func (m *BierDispEntryDetails) Marshal(b []byte) ([]byte, error)
- func (m *BierDispEntryDetails) Reset()
- func (m *BierDispEntryDetails) Size() (size int)
- func (m *BierDispEntryDetails) Unmarshal(b []byte) error
- type BierDispEntryDump
- func (*BierDispEntryDump) GetCrcString() string
- func (*BierDispEntryDump) GetMessageName() string
- func (*BierDispEntryDump) GetMessageType() api.MessageType
- func (m *BierDispEntryDump) Marshal(b []byte) ([]byte, error)
- func (m *BierDispEntryDump) Reset()
- func (m *BierDispEntryDump) Size() (size int)
- func (m *BierDispEntryDump) Unmarshal(b []byte) error
- type BierDispTableAddDel
- func (*BierDispTableAddDel) GetCrcString() string
- func (*BierDispTableAddDel) GetMessageName() string
- func (*BierDispTableAddDel) GetMessageType() api.MessageType
- func (m *BierDispTableAddDel) Marshal(b []byte) ([]byte, error)
- func (m *BierDispTableAddDel) Reset()
- func (m *BierDispTableAddDel) Size() (size int)
- func (m *BierDispTableAddDel) Unmarshal(b []byte) error
- type BierDispTableAddDelReply
- func (*BierDispTableAddDelReply) GetCrcString() string
- func (*BierDispTableAddDelReply) GetMessageName() string
- func (*BierDispTableAddDelReply) GetMessageType() api.MessageType
- func (m *BierDispTableAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *BierDispTableAddDelReply) Reset()
- func (m *BierDispTableAddDelReply) Size() (size int)
- func (m *BierDispTableAddDelReply) Unmarshal(b []byte) error
- type BierDispTableDetails
- func (*BierDispTableDetails) GetCrcString() string
- func (*BierDispTableDetails) GetMessageName() string
- func (*BierDispTableDetails) GetMessageType() api.MessageType
- func (m *BierDispTableDetails) Marshal(b []byte) ([]byte, error)
- func (m *BierDispTableDetails) Reset()
- func (m *BierDispTableDetails) Size() (size int)
- func (m *BierDispTableDetails) Unmarshal(b []byte) error
- type BierDispTableDump
- func (*BierDispTableDump) GetCrcString() string
- func (*BierDispTableDump) GetMessageName() string
- func (*BierDispTableDump) GetMessageType() api.MessageType
- func (m *BierDispTableDump) Marshal(b []byte) ([]byte, error)
- func (m *BierDispTableDump) Reset()
- func (m *BierDispTableDump) Size() (size int)
- func (m *BierDispTableDump) Unmarshal(b []byte) error
- type BierImpAdd
- func (*BierImpAdd) GetCrcString() string
- func (*BierImpAdd) GetMessageName() string
- func (*BierImpAdd) GetMessageType() api.MessageType
- func (m *BierImpAdd) Marshal(b []byte) ([]byte, error)
- func (m *BierImpAdd) Reset()
- func (m *BierImpAdd) Size() (size int)
- func (m *BierImpAdd) Unmarshal(b []byte) error
- type BierImpAddReply
- func (*BierImpAddReply) GetCrcString() string
- func (*BierImpAddReply) GetMessageName() string
- func (*BierImpAddReply) GetMessageType() api.MessageType
- func (m *BierImpAddReply) Marshal(b []byte) ([]byte, error)
- func (m *BierImpAddReply) Reset()
- func (m *BierImpAddReply) Size() (size int)
- func (m *BierImpAddReply) Unmarshal(b []byte) error
- type BierImpDel
- func (*BierImpDel) GetCrcString() string
- func (*BierImpDel) GetMessageName() string
- func (*BierImpDel) GetMessageType() api.MessageType
- func (m *BierImpDel) Marshal(b []byte) ([]byte, error)
- func (m *BierImpDel) Reset()
- func (m *BierImpDel) Size() (size int)
- func (m *BierImpDel) Unmarshal(b []byte) error
- type BierImpDelReply
- func (*BierImpDelReply) GetCrcString() string
- func (*BierImpDelReply) GetMessageName() string
- func (*BierImpDelReply) GetMessageType() api.MessageType
- func (m *BierImpDelReply) Marshal(b []byte) ([]byte, error)
- func (m *BierImpDelReply) Reset()
- func (m *BierImpDelReply) Size() (size int)
- func (m *BierImpDelReply) Unmarshal(b []byte) error
- type BierImpDetails
- func (*BierImpDetails) GetCrcString() string
- func (*BierImpDetails) GetMessageName() string
- func (*BierImpDetails) GetMessageType() api.MessageType
- func (m *BierImpDetails) Marshal(b []byte) ([]byte, error)
- func (m *BierImpDetails) Reset()
- func (m *BierImpDetails) Size() (size int)
- func (m *BierImpDetails) Unmarshal(b []byte) error
- type BierImpDump
- func (*BierImpDump) GetCrcString() string
- func (*BierImpDump) GetMessageName() string
- func (*BierImpDump) GetMessageType() api.MessageType
- func (m *BierImpDump) Marshal(b []byte) ([]byte, error)
- func (m *BierImpDump) Reset()
- func (m *BierImpDump) Size() (size int)
- func (m *BierImpDump) Unmarshal(b []byte) error
- type BierRoute
- type BierRouteAddDel
- func (*BierRouteAddDel) GetCrcString() string
- func (*BierRouteAddDel) GetMessageName() string
- func (*BierRouteAddDel) GetMessageType() api.MessageType
- func (m *BierRouteAddDel) Marshal(b []byte) ([]byte, error)
- func (m *BierRouteAddDel) Reset()
- func (m *BierRouteAddDel) Size() (size int)
- func (m *BierRouteAddDel) Unmarshal(b []byte) error
- type BierRouteAddDelReply
- func (*BierRouteAddDelReply) GetCrcString() string
- func (*BierRouteAddDelReply) GetMessageName() string
- func (*BierRouteAddDelReply) GetMessageType() api.MessageType
- func (m *BierRouteAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *BierRouteAddDelReply) Reset()
- func (m *BierRouteAddDelReply) Size() (size int)
- func (m *BierRouteAddDelReply) Unmarshal(b []byte) error
- type BierRouteDetails
- func (*BierRouteDetails) GetCrcString() string
- func (*BierRouteDetails) GetMessageName() string
- func (*BierRouteDetails) GetMessageType() api.MessageType
- func (m *BierRouteDetails) Marshal(b []byte) ([]byte, error)
- func (m *BierRouteDetails) Reset()
- func (m *BierRouteDetails) Size() (size int)
- func (m *BierRouteDetails) Unmarshal(b []byte) error
- type BierRouteDump
- func (*BierRouteDump) GetCrcString() string
- func (*BierRouteDump) GetMessageName() string
- func (*BierRouteDump) GetMessageType() api.MessageType
- func (m *BierRouteDump) Marshal(b []byte) ([]byte, error)
- func (m *BierRouteDump) Reset()
- func (m *BierRouteDump) Size() (size int)
- func (m *BierRouteDump) Unmarshal(b []byte) error
- type BierTableAddDel
- func (*BierTableAddDel) GetCrcString() string
- func (*BierTableAddDel) GetMessageName() string
- func (*BierTableAddDel) GetMessageType() api.MessageType
- func (m *BierTableAddDel) Marshal(b []byte) ([]byte, error)
- func (m *BierTableAddDel) Reset()
- func (m *BierTableAddDel) Size() (size int)
- func (m *BierTableAddDel) Unmarshal(b []byte) error
- type BierTableAddDelReply
- func (*BierTableAddDelReply) GetCrcString() string
- func (*BierTableAddDelReply) GetMessageName() string
- func (*BierTableAddDelReply) GetMessageType() api.MessageType
- func (m *BierTableAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *BierTableAddDelReply) Reset()
- func (m *BierTableAddDelReply) Size() (size int)
- func (m *BierTableAddDelReply) Unmarshal(b []byte) error
- type BierTableDetails
- func (*BierTableDetails) GetCrcString() string
- func (*BierTableDetails) GetMessageName() string
- func (*BierTableDetails) GetMessageType() api.MessageType
- func (m *BierTableDetails) Marshal(b []byte) ([]byte, error)
- func (m *BierTableDetails) Reset()
- func (m *BierTableDetails) Size() (size int)
- func (m *BierTableDetails) Unmarshal(b []byte) error
- type BierTableDump
- func (*BierTableDump) GetCrcString() string
- func (*BierTableDump) GetMessageName() string
- func (*BierTableDump) GetMessageType() api.MessageType
- func (m *BierTableDump) Marshal(b []byte) ([]byte, error)
- func (m *BierTableDump) Reset()
- func (m *BierTableDump) Size() (size int)
- func (m *BierTableDump) Unmarshal(b []byte) error
- type BierTableID
- type FibMplsLabel
- type FibPath
- type FibPathFlags
- type FibPathNh
- type FibPathNhProto
- type FibPathType
- type IP4Address
- type IP4AddressWithPrefix
- type IP4Prefix
- type IP6Address
- type IP6AddressWithPrefix
- type IP6Prefix
- type IPDscp
- type IPEcn
- type IPProto
- type Mprefix
- type Prefix
- type PrefixMatcher
- type RPCService
- type RPCService_BierDispEntryDumpClient
- type RPCService_BierDispTableDumpClient
- type RPCService_BierImpDumpClient
- type RPCService_BierRouteDumpClient
- type RPCService_BierTableDumpClient
Constants ¶
const ( APIFile = "bier" APIVersion = "1.2.1" VersionCrc = 0x27c878c4 )
Variables ¶
var ( AddressFamily_name = map[uint32]string{ 0: "ADDRESS_IP4", 1: "ADDRESS_IP6", } AddressFamily_value = map[string]uint32{ "ADDRESS_IP4": 0, "ADDRESS_IP6": 1, } )
var ( FibPathFlags_name = map[uint32]string{ 0: "FIB_API_PATH_FLAG_NONE", 1: "FIB_API_PATH_FLAG_RESOLVE_VIA_ATTACHED", 2: "FIB_API_PATH_FLAG_RESOLVE_VIA_HOST", 4: "FIB_API_PATH_FLAG_POP_PW_CW", } FibPathFlags_value = map[string]uint32{ "FIB_API_PATH_FLAG_NONE": 0, "FIB_API_PATH_FLAG_RESOLVE_VIA_ATTACHED": 1, "FIB_API_PATH_FLAG_RESOLVE_VIA_HOST": 2, "FIB_API_PATH_FLAG_POP_PW_CW": 4, } )
var ( FibPathNhProto_name = map[uint32]string{ 0: "FIB_API_PATH_NH_PROTO_IP4", 1: "FIB_API_PATH_NH_PROTO_IP6", 2: "FIB_API_PATH_NH_PROTO_MPLS", 3: "FIB_API_PATH_NH_PROTO_ETHERNET", 4: "FIB_API_PATH_NH_PROTO_BIER", } FibPathNhProto_value = map[string]uint32{ "FIB_API_PATH_NH_PROTO_IP4": 0, "FIB_API_PATH_NH_PROTO_IP6": 1, "FIB_API_PATH_NH_PROTO_MPLS": 2, "FIB_API_PATH_NH_PROTO_ETHERNET": 3, "FIB_API_PATH_NH_PROTO_BIER": 4, } )
var ( FibPathType_name = map[uint32]string{ 0: "FIB_API_PATH_TYPE_NORMAL", 1: "FIB_API_PATH_TYPE_LOCAL", 2: "FIB_API_PATH_TYPE_DROP", 3: "FIB_API_PATH_TYPE_UDP_ENCAP", 4: "FIB_API_PATH_TYPE_BIER_IMP", 5: "FIB_API_PATH_TYPE_ICMP_UNREACH", 6: "FIB_API_PATH_TYPE_ICMP_PROHIBIT", 7: "FIB_API_PATH_TYPE_SOURCE_LOOKUP", 8: "FIB_API_PATH_TYPE_DVR", 9: "FIB_API_PATH_TYPE_INTERFACE_RX", 10: "FIB_API_PATH_TYPE_CLASSIFY", } FibPathType_value = map[string]uint32{ "FIB_API_PATH_TYPE_NORMAL": 0, "FIB_API_PATH_TYPE_LOCAL": 1, "FIB_API_PATH_TYPE_DROP": 2, "FIB_API_PATH_TYPE_UDP_ENCAP": 3, "FIB_API_PATH_TYPE_BIER_IMP": 4, "FIB_API_PATH_TYPE_ICMP_UNREACH": 5, "FIB_API_PATH_TYPE_ICMP_PROHIBIT": 6, "FIB_API_PATH_TYPE_SOURCE_LOOKUP": 7, "FIB_API_PATH_TYPE_DVR": 8, "FIB_API_PATH_TYPE_INTERFACE_RX": 9, "FIB_API_PATH_TYPE_CLASSIFY": 10, } )
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", } 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", } 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[uint32]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_AH", 51: "IP_API_PROTO_ESP", 88: "IP_API_PROTO_EIGRP", 89: "IP_API_PROTO_OSPF", 132: "IP_API_PROTO_SCTP", 255: "IP_API_PROTO_RESERVED", } IPProto_value = map[string]uint32{ "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_AH": 50, "IP_API_PROTO_ESP": 51, "IP_API_PROTO_EIGRP": 88, "IP_API_PROTO_OSPF": 89, "IP_API_PROTO_SCTP": 132, "IP_API_PROTO_RESERVED": 255, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type Address ¶
type Address struct { Af AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` Un AddressUnion `binapi:"address_union,name=un" json:"un,omitempty"` }
Address defines type 'address'.
func ParseAddress ¶
func (*Address) MarshalText ¶
func (*Address) UnmarshalText ¶
type AddressFamily ¶
type AddressFamily uint32
AddressFamily defines 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 { // IP4 *IP4Address // IP6 *IP6Address XXX_UnionData [16]byte }
AddressUnion defines 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) SetIP4 ¶
func (u *AddressUnion) SetIP4(a IP4Address)
func (*AddressUnion) SetIP6 ¶
func (u *AddressUnion) SetIP6(a IP6Address)
type AddressWithPrefix ¶
type AddressWithPrefix Prefix
AddressWithPrefix defines alias 'address_with_prefix'.
func ParseAddressWithPrefix ¶
func ParseAddressWithPrefix(s string) (AddressWithPrefix, error)
func (*AddressWithPrefix) MarshalText ¶
func (x *AddressWithPrefix) MarshalText() ([]byte, error)
func (AddressWithPrefix) String ¶
func (x AddressWithPrefix) String() string
func (*AddressWithPrefix) UnmarshalText ¶
func (x *AddressWithPrefix) UnmarshalText(text []byte) error
type BierDispEntryAddDel ¶
type BierDispEntryAddDel struct { BdeBp uint16 `binapi:"u16,name=bde_bp" json:"bde_bp,omitempty"` BdeTblID uint32 `binapi:"u32,name=bde_tbl_id" json:"bde_tbl_id,omitempty"` BdeIsAdd bool `binapi:"bool,name=bde_is_add" json:"bde_is_add,omitempty"` BdePayloadProto uint8 `binapi:"u8,name=bde_payload_proto" json:"bde_payload_proto,omitempty"` BdeNPaths uint8 `binapi:"u8,name=bde_n_paths" json:"-"` BdePaths []FibPath `binapi:"fib_path[bde_n_paths],name=bde_paths" json:"bde_paths,omitempty"` }
BierDispEntryAddDel defines message 'bier_disp_entry_add_del'.
func (*BierDispEntryAddDel) GetCrcString ¶
func (*BierDispEntryAddDel) GetCrcString() string
func (*BierDispEntryAddDel) GetMessageName ¶
func (*BierDispEntryAddDel) GetMessageName() string
func (*BierDispEntryAddDel) GetMessageType ¶
func (*BierDispEntryAddDel) GetMessageType() api.MessageType
func (*BierDispEntryAddDel) Marshal ¶
func (m *BierDispEntryAddDel) Marshal(b []byte) ([]byte, error)
func (*BierDispEntryAddDel) Reset ¶
func (m *BierDispEntryAddDel) Reset()
func (*BierDispEntryAddDel) Size ¶
func (m *BierDispEntryAddDel) Size() (size int)
func (*BierDispEntryAddDel) Unmarshal ¶
func (m *BierDispEntryAddDel) Unmarshal(b []byte) error
type BierDispEntryAddDelReply ¶
type BierDispEntryAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
BierDispEntryAddDelReply defines message 'bier_disp_entry_add_del_reply'.
func (*BierDispEntryAddDelReply) GetCrcString ¶
func (*BierDispEntryAddDelReply) GetCrcString() string
func (*BierDispEntryAddDelReply) GetMessageName ¶
func (*BierDispEntryAddDelReply) GetMessageName() string
func (*BierDispEntryAddDelReply) GetMessageType ¶
func (*BierDispEntryAddDelReply) GetMessageType() api.MessageType
func (*BierDispEntryAddDelReply) Marshal ¶
func (m *BierDispEntryAddDelReply) Marshal(b []byte) ([]byte, error)
func (*BierDispEntryAddDelReply) Reset ¶
func (m *BierDispEntryAddDelReply) Reset()
func (*BierDispEntryAddDelReply) Size ¶
func (m *BierDispEntryAddDelReply) Size() (size int)
func (*BierDispEntryAddDelReply) Unmarshal ¶
func (m *BierDispEntryAddDelReply) Unmarshal(b []byte) error
type BierDispEntryDetails ¶
type BierDispEntryDetails struct { BdeBp uint16 `binapi:"u16,name=bde_bp" json:"bde_bp,omitempty"` BdeTblID uint32 `binapi:"u32,name=bde_tbl_id" json:"bde_tbl_id,omitempty"` BdeIsAdd bool `binapi:"bool,name=bde_is_add" json:"bde_is_add,omitempty"` BdePayloadProto uint8 `binapi:"u8,name=bde_payload_proto" json:"bde_payload_proto,omitempty"` BdeNPaths uint8 `binapi:"u8,name=bde_n_paths" json:"-"` BdePaths []FibPath `binapi:"fib_path[bde_n_paths],name=bde_paths" json:"bde_paths,omitempty"` }
BierDispEntryDetails defines message 'bier_disp_entry_details'.
func (*BierDispEntryDetails) GetCrcString ¶
func (*BierDispEntryDetails) GetCrcString() string
func (*BierDispEntryDetails) GetMessageName ¶
func (*BierDispEntryDetails) GetMessageName() string
func (*BierDispEntryDetails) GetMessageType ¶
func (*BierDispEntryDetails) GetMessageType() api.MessageType
func (*BierDispEntryDetails) Marshal ¶
func (m *BierDispEntryDetails) Marshal(b []byte) ([]byte, error)
func (*BierDispEntryDetails) Reset ¶
func (m *BierDispEntryDetails) Reset()
func (*BierDispEntryDetails) Size ¶
func (m *BierDispEntryDetails) Size() (size int)
func (*BierDispEntryDetails) Unmarshal ¶
func (m *BierDispEntryDetails) Unmarshal(b []byte) error
type BierDispEntryDump ¶
type BierDispEntryDump struct {
BdeTblID uint32 `binapi:"u32,name=bde_tbl_id" json:"bde_tbl_id,omitempty"`
}
BierDispEntryDump defines message 'bier_disp_entry_dump'.
func (*BierDispEntryDump) GetCrcString ¶
func (*BierDispEntryDump) GetCrcString() string
func (*BierDispEntryDump) GetMessageName ¶
func (*BierDispEntryDump) GetMessageName() string
func (*BierDispEntryDump) GetMessageType ¶
func (*BierDispEntryDump) GetMessageType() api.MessageType
func (*BierDispEntryDump) Reset ¶
func (m *BierDispEntryDump) Reset()
func (*BierDispEntryDump) Size ¶
func (m *BierDispEntryDump) Size() (size int)
func (*BierDispEntryDump) Unmarshal ¶
func (m *BierDispEntryDump) Unmarshal(b []byte) error
type BierDispTableAddDel ¶
type BierDispTableAddDel struct { BdtTblID uint32 `binapi:"u32,name=bdt_tbl_id" json:"bdt_tbl_id,omitempty"` BdtIsAdd bool `binapi:"bool,name=bdt_is_add" json:"bdt_is_add,omitempty"` }
BierDispTableAddDel defines message 'bier_disp_table_add_del'.
func (*BierDispTableAddDel) GetCrcString ¶
func (*BierDispTableAddDel) GetCrcString() string
func (*BierDispTableAddDel) GetMessageName ¶
func (*BierDispTableAddDel) GetMessageName() string
func (*BierDispTableAddDel) GetMessageType ¶
func (*BierDispTableAddDel) GetMessageType() api.MessageType
func (*BierDispTableAddDel) Marshal ¶
func (m *BierDispTableAddDel) Marshal(b []byte) ([]byte, error)
func (*BierDispTableAddDel) Reset ¶
func (m *BierDispTableAddDel) Reset()
func (*BierDispTableAddDel) Size ¶
func (m *BierDispTableAddDel) Size() (size int)
func (*BierDispTableAddDel) Unmarshal ¶
func (m *BierDispTableAddDel) Unmarshal(b []byte) error
type BierDispTableAddDelReply ¶
type BierDispTableAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
BierDispTableAddDelReply defines message 'bier_disp_table_add_del_reply'.
func (*BierDispTableAddDelReply) GetCrcString ¶
func (*BierDispTableAddDelReply) GetCrcString() string
func (*BierDispTableAddDelReply) GetMessageName ¶
func (*BierDispTableAddDelReply) GetMessageName() string
func (*BierDispTableAddDelReply) GetMessageType ¶
func (*BierDispTableAddDelReply) GetMessageType() api.MessageType
func (*BierDispTableAddDelReply) Marshal ¶
func (m *BierDispTableAddDelReply) Marshal(b []byte) ([]byte, error)
func (*BierDispTableAddDelReply) Reset ¶
func (m *BierDispTableAddDelReply) Reset()
func (*BierDispTableAddDelReply) Size ¶
func (m *BierDispTableAddDelReply) Size() (size int)
func (*BierDispTableAddDelReply) Unmarshal ¶
func (m *BierDispTableAddDelReply) Unmarshal(b []byte) error
type BierDispTableDetails ¶
type BierDispTableDetails struct {
BdtTblID uint32 `binapi:"u32,name=bdt_tbl_id" json:"bdt_tbl_id,omitempty"`
}
BierDispTableDetails defines message 'bier_disp_table_details'.
func (*BierDispTableDetails) GetCrcString ¶
func (*BierDispTableDetails) GetCrcString() string
func (*BierDispTableDetails) GetMessageName ¶
func (*BierDispTableDetails) GetMessageName() string
func (*BierDispTableDetails) GetMessageType ¶
func (*BierDispTableDetails) GetMessageType() api.MessageType
func (*BierDispTableDetails) Marshal ¶
func (m *BierDispTableDetails) Marshal(b []byte) ([]byte, error)
func (*BierDispTableDetails) Reset ¶
func (m *BierDispTableDetails) Reset()
func (*BierDispTableDetails) Size ¶
func (m *BierDispTableDetails) Size() (size int)
func (*BierDispTableDetails) Unmarshal ¶
func (m *BierDispTableDetails) Unmarshal(b []byte) error
type BierDispTableDump ¶
type BierDispTableDump struct{}
BierDispTableDump defines message 'bier_disp_table_dump'.
func (*BierDispTableDump) GetCrcString ¶
func (*BierDispTableDump) GetCrcString() string
func (*BierDispTableDump) GetMessageName ¶
func (*BierDispTableDump) GetMessageName() string
func (*BierDispTableDump) GetMessageType ¶
func (*BierDispTableDump) GetMessageType() api.MessageType
func (*BierDispTableDump) Reset ¶
func (m *BierDispTableDump) Reset()
func (*BierDispTableDump) Size ¶
func (m *BierDispTableDump) Size() (size int)
func (*BierDispTableDump) Unmarshal ¶
func (m *BierDispTableDump) Unmarshal(b []byte) error
type BierImpAdd ¶
type BierImpAdd struct { BiTblID BierTableID `binapi:"bier_table_id,name=bi_tbl_id" json:"bi_tbl_id,omitempty"` BiSrc uint16 `binapi:"u16,name=bi_src" json:"bi_src,omitempty"` BiNBytes uint8 `binapi:"u8,name=bi_n_bytes" json:"-"` BiBytes []byte `binapi:"u8[bi_n_bytes],name=bi_bytes" json:"bi_bytes,omitempty"` }
BierImpAdd defines message 'bier_imp_add'.
func (*BierImpAdd) GetCrcString ¶
func (*BierImpAdd) GetCrcString() string
func (*BierImpAdd) GetMessageName ¶
func (*BierImpAdd) GetMessageName() string
func (*BierImpAdd) GetMessageType ¶
func (*BierImpAdd) GetMessageType() api.MessageType
func (*BierImpAdd) Reset ¶
func (m *BierImpAdd) Reset()
func (*BierImpAdd) Size ¶
func (m *BierImpAdd) Size() (size int)
func (*BierImpAdd) Unmarshal ¶
func (m *BierImpAdd) Unmarshal(b []byte) error
type BierImpAddReply ¶
type BierImpAddReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` BiIndex uint32 `binapi:"u32,name=bi_index" json:"bi_index,omitempty"` }
BierImpAddReply defines message 'bier_imp_add_reply'.
func (*BierImpAddReply) GetCrcString ¶
func (*BierImpAddReply) GetCrcString() string
func (*BierImpAddReply) GetMessageName ¶
func (*BierImpAddReply) GetMessageName() string
func (*BierImpAddReply) GetMessageType ¶
func (*BierImpAddReply) GetMessageType() api.MessageType
func (*BierImpAddReply) Reset ¶
func (m *BierImpAddReply) Reset()
func (*BierImpAddReply) Size ¶
func (m *BierImpAddReply) Size() (size int)
func (*BierImpAddReply) Unmarshal ¶
func (m *BierImpAddReply) Unmarshal(b []byte) error
type BierImpDel ¶
type BierImpDel struct {
BiIndex uint32 `binapi:"u32,name=bi_index" json:"bi_index,omitempty"`
}
BierImpDel defines message 'bier_imp_del'.
func (*BierImpDel) GetCrcString ¶
func (*BierImpDel) GetCrcString() string
func (*BierImpDel) GetMessageName ¶
func (*BierImpDel) GetMessageName() string
func (*BierImpDel) GetMessageType ¶
func (*BierImpDel) GetMessageType() api.MessageType
func (*BierImpDel) Reset ¶
func (m *BierImpDel) Reset()
func (*BierImpDel) Size ¶
func (m *BierImpDel) Size() (size int)
func (*BierImpDel) Unmarshal ¶
func (m *BierImpDel) Unmarshal(b []byte) error
type BierImpDelReply ¶
type BierImpDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
BierImpDelReply defines message 'bier_imp_del_reply'.
func (*BierImpDelReply) GetCrcString ¶
func (*BierImpDelReply) GetCrcString() string
func (*BierImpDelReply) GetMessageName ¶
func (*BierImpDelReply) GetMessageName() string
func (*BierImpDelReply) GetMessageType ¶
func (*BierImpDelReply) GetMessageType() api.MessageType
func (*BierImpDelReply) Reset ¶
func (m *BierImpDelReply) Reset()
func (*BierImpDelReply) Size ¶
func (m *BierImpDelReply) Size() (size int)
func (*BierImpDelReply) Unmarshal ¶
func (m *BierImpDelReply) Unmarshal(b []byte) error
type BierImpDetails ¶
type BierImpDetails struct { BiTblID BierTableID `binapi:"bier_table_id,name=bi_tbl_id" json:"bi_tbl_id,omitempty"` BiSrc uint16 `binapi:"u16,name=bi_src" json:"bi_src,omitempty"` BiNBytes uint8 `binapi:"u8,name=bi_n_bytes" json:"-"` BiBytes []byte `binapi:"u8[bi_n_bytes],name=bi_bytes" json:"bi_bytes,omitempty"` }
BierImpDetails defines message 'bier_imp_details'.
func (*BierImpDetails) GetCrcString ¶
func (*BierImpDetails) GetCrcString() string
func (*BierImpDetails) GetMessageName ¶
func (*BierImpDetails) GetMessageName() string
func (*BierImpDetails) GetMessageType ¶
func (*BierImpDetails) GetMessageType() api.MessageType
func (*BierImpDetails) Reset ¶
func (m *BierImpDetails) Reset()
func (*BierImpDetails) Size ¶
func (m *BierImpDetails) Size() (size int)
func (*BierImpDetails) Unmarshal ¶
func (m *BierImpDetails) Unmarshal(b []byte) error
type BierImpDump ¶
type BierImpDump struct{}
BierImpDump defines message 'bier_imp_dump'.
func (*BierImpDump) GetCrcString ¶
func (*BierImpDump) GetCrcString() string
func (*BierImpDump) GetMessageName ¶
func (*BierImpDump) GetMessageName() string
func (*BierImpDump) GetMessageType ¶
func (*BierImpDump) GetMessageType() api.MessageType
func (*BierImpDump) Reset ¶
func (m *BierImpDump) Reset()
func (*BierImpDump) Size ¶
func (m *BierImpDump) Size() (size int)
func (*BierImpDump) Unmarshal ¶
func (m *BierImpDump) Unmarshal(b []byte) error
type BierRoute ¶
type BierRoute struct { BrBp uint32 `binapi:"u32,name=br_bp" json:"br_bp,omitempty"` BrTblID BierTableID `binapi:"bier_table_id,name=br_tbl_id" json:"br_tbl_id,omitempty"` BrNPaths uint8 `binapi:"u8,name=br_n_paths" json:"-"` BrPaths []FibPath `binapi:"fib_path[br_n_paths],name=br_paths" json:"br_paths,omitempty"` }
BierRoute defines type 'bier_route'.
type BierRouteAddDel ¶
type BierRouteAddDel struct { BrIsAdd bool `binapi:"bool,name=br_is_add" json:"br_is_add,omitempty"` BrIsReplace bool `binapi:"bool,name=br_is_replace" json:"br_is_replace,omitempty"` BrRoute BierRoute `binapi:"bier_route,name=br_route" json:"br_route,omitempty"` }
BierRouteAddDel defines message 'bier_route_add_del'.
func (*BierRouteAddDel) GetCrcString ¶
func (*BierRouteAddDel) GetCrcString() string
func (*BierRouteAddDel) GetMessageName ¶
func (*BierRouteAddDel) GetMessageName() string
func (*BierRouteAddDel) GetMessageType ¶
func (*BierRouteAddDel) GetMessageType() api.MessageType
func (*BierRouteAddDel) Reset ¶
func (m *BierRouteAddDel) Reset()
func (*BierRouteAddDel) Size ¶
func (m *BierRouteAddDel) Size() (size int)
func (*BierRouteAddDel) Unmarshal ¶
func (m *BierRouteAddDel) Unmarshal(b []byte) error
type BierRouteAddDelReply ¶
type BierRouteAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
BierRouteAddDelReply defines message 'bier_route_add_del_reply'.
func (*BierRouteAddDelReply) GetCrcString ¶
func (*BierRouteAddDelReply) GetCrcString() string
func (*BierRouteAddDelReply) GetMessageName ¶
func (*BierRouteAddDelReply) GetMessageName() string
func (*BierRouteAddDelReply) GetMessageType ¶
func (*BierRouteAddDelReply) GetMessageType() api.MessageType
func (*BierRouteAddDelReply) Marshal ¶
func (m *BierRouteAddDelReply) Marshal(b []byte) ([]byte, error)
func (*BierRouteAddDelReply) Reset ¶
func (m *BierRouteAddDelReply) Reset()
func (*BierRouteAddDelReply) Size ¶
func (m *BierRouteAddDelReply) Size() (size int)
func (*BierRouteAddDelReply) Unmarshal ¶
func (m *BierRouteAddDelReply) Unmarshal(b []byte) error
type BierRouteDetails ¶
type BierRouteDetails struct {
BrRoute BierRoute `binapi:"bier_route,name=br_route" json:"br_route,omitempty"`
}
BierRouteDetails defines message 'bier_route_details'.
func (*BierRouteDetails) GetCrcString ¶
func (*BierRouteDetails) GetCrcString() string
func (*BierRouteDetails) GetMessageName ¶
func (*BierRouteDetails) GetMessageName() string
func (*BierRouteDetails) GetMessageType ¶
func (*BierRouteDetails) GetMessageType() api.MessageType
func (*BierRouteDetails) Reset ¶
func (m *BierRouteDetails) Reset()
func (*BierRouteDetails) Size ¶
func (m *BierRouteDetails) Size() (size int)
func (*BierRouteDetails) Unmarshal ¶
func (m *BierRouteDetails) Unmarshal(b []byte) error
type BierRouteDump ¶
type BierRouteDump struct {
BrTblID BierTableID `binapi:"bier_table_id,name=br_tbl_id" json:"br_tbl_id,omitempty"`
}
BierRouteDump defines message 'bier_route_dump'.
func (*BierRouteDump) GetCrcString ¶
func (*BierRouteDump) GetCrcString() string
func (*BierRouteDump) GetMessageName ¶
func (*BierRouteDump) GetMessageName() string
func (*BierRouteDump) GetMessageType ¶
func (*BierRouteDump) GetMessageType() api.MessageType
func (*BierRouteDump) Reset ¶
func (m *BierRouteDump) Reset()
func (*BierRouteDump) Size ¶
func (m *BierRouteDump) Size() (size int)
func (*BierRouteDump) Unmarshal ¶
func (m *BierRouteDump) Unmarshal(b []byte) error
type BierTableAddDel ¶
type BierTableAddDel struct { BtTblID BierTableID `binapi:"bier_table_id,name=bt_tbl_id" json:"bt_tbl_id,omitempty"` BtLabel uint32 `binapi:"u32,name=bt_label" json:"bt_label,omitempty"` BtIsAdd bool `binapi:"bool,name=bt_is_add" json:"bt_is_add,omitempty"` }
BierTableAddDel defines message 'bier_table_add_del'.
func (*BierTableAddDel) GetCrcString ¶
func (*BierTableAddDel) GetCrcString() string
func (*BierTableAddDel) GetMessageName ¶
func (*BierTableAddDel) GetMessageName() string
func (*BierTableAddDel) GetMessageType ¶
func (*BierTableAddDel) GetMessageType() api.MessageType
func (*BierTableAddDel) Reset ¶
func (m *BierTableAddDel) Reset()
func (*BierTableAddDel) Size ¶
func (m *BierTableAddDel) Size() (size int)
func (*BierTableAddDel) Unmarshal ¶
func (m *BierTableAddDel) Unmarshal(b []byte) error
type BierTableAddDelReply ¶
type BierTableAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
BierTableAddDelReply defines message 'bier_table_add_del_reply'.
func (*BierTableAddDelReply) GetCrcString ¶
func (*BierTableAddDelReply) GetCrcString() string
func (*BierTableAddDelReply) GetMessageName ¶
func (*BierTableAddDelReply) GetMessageName() string
func (*BierTableAddDelReply) GetMessageType ¶
func (*BierTableAddDelReply) GetMessageType() api.MessageType
func (*BierTableAddDelReply) Marshal ¶
func (m *BierTableAddDelReply) Marshal(b []byte) ([]byte, error)
func (*BierTableAddDelReply) Reset ¶
func (m *BierTableAddDelReply) Reset()
func (*BierTableAddDelReply) Size ¶
func (m *BierTableAddDelReply) Size() (size int)
func (*BierTableAddDelReply) Unmarshal ¶
func (m *BierTableAddDelReply) Unmarshal(b []byte) error
type BierTableDetails ¶
type BierTableDetails struct { BtLabel uint32 `binapi:"u32,name=bt_label" json:"bt_label,omitempty"` BtTblID BierTableID `binapi:"bier_table_id,name=bt_tbl_id" json:"bt_tbl_id,omitempty"` }
BierTableDetails defines message 'bier_table_details'.
func (*BierTableDetails) GetCrcString ¶
func (*BierTableDetails) GetCrcString() string
func (*BierTableDetails) GetMessageName ¶
func (*BierTableDetails) GetMessageName() string
func (*BierTableDetails) GetMessageType ¶
func (*BierTableDetails) GetMessageType() api.MessageType
func (*BierTableDetails) Reset ¶
func (m *BierTableDetails) Reset()
func (*BierTableDetails) Size ¶
func (m *BierTableDetails) Size() (size int)
func (*BierTableDetails) Unmarshal ¶
func (m *BierTableDetails) Unmarshal(b []byte) error
type BierTableDump ¶
type BierTableDump struct{}
BierTableDump defines message 'bier_table_dump'.
func (*BierTableDump) GetCrcString ¶
func (*BierTableDump) GetCrcString() string
func (*BierTableDump) GetMessageName ¶
func (*BierTableDump) GetMessageName() string
func (*BierTableDump) GetMessageType ¶
func (*BierTableDump) GetMessageType() api.MessageType
func (*BierTableDump) Reset ¶
func (m *BierTableDump) Reset()
func (*BierTableDump) Size ¶
func (m *BierTableDump) Size() (size int)
func (*BierTableDump) Unmarshal ¶
func (m *BierTableDump) Unmarshal(b []byte) error
type BierTableID ¶
type BierTableID struct { BtSet uint8 `binapi:"u8,name=bt_set" json:"bt_set,omitempty"` BtSubDomain uint8 `binapi:"u8,name=bt_sub_domain" json:"bt_sub_domain,omitempty"` BtHdrLenID uint8 `binapi:"u8,name=bt_hdr_len_id" json:"bt_hdr_len_id,omitempty"` }
BierTableID defines type 'bier_table_id'.
type FibMplsLabel ¶
type FibMplsLabel struct { IsUniform uint8 `binapi:"u8,name=is_uniform" json:"is_uniform,omitempty"` Label uint32 `binapi:"u32,name=label" json:"label,omitempty"` TTL uint8 `binapi:"u8,name=ttl" json:"ttl,omitempty"` Exp uint8 `binapi:"u8,name=exp" json:"exp,omitempty"` }
FibMplsLabel defines type 'fib_mpls_label'.
type FibPath ¶
type FibPath struct { SwIfIndex uint32 `binapi:"u32,name=sw_if_index" json:"sw_if_index,omitempty"` TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` RpfID uint32 `binapi:"u32,name=rpf_id" json:"rpf_id,omitempty"` Weight uint8 `binapi:"u8,name=weight" json:"weight,omitempty"` Preference uint8 `binapi:"u8,name=preference" json:"preference,omitempty"` Type FibPathType `binapi:"fib_path_type,name=type" json:"type,omitempty"` Flags FibPathFlags `binapi:"fib_path_flags,name=flags" json:"flags,omitempty"` Proto FibPathNhProto `binapi:"fib_path_nh_proto,name=proto" json:"proto,omitempty"` Nh FibPathNh `binapi:"fib_path_nh,name=nh" json:"nh,omitempty"` NLabels uint8 `binapi:"u8,name=n_labels" json:"n_labels,omitempty"` LabelStack [16]FibMplsLabel `binapi:"fib_mpls_label[16],name=label_stack" json:"label_stack,omitempty"` }
FibPath defines type 'fib_path'.
type FibPathFlags ¶
type FibPathFlags uint32
FibPathFlags defines enum 'fib_path_flags'.
const ( FIB_API_PATH_FLAG_NONE FibPathFlags = 0 FIB_API_PATH_FLAG_RESOLVE_VIA_ATTACHED FibPathFlags = 1 FIB_API_PATH_FLAG_RESOLVE_VIA_HOST FibPathFlags = 2 FIB_API_PATH_FLAG_POP_PW_CW FibPathFlags = 4 )
func (FibPathFlags) String ¶
func (x FibPathFlags) String() string
type FibPathNh ¶
type FibPathNh struct { Address AddressUnion `binapi:"address_union,name=address" json:"address,omitempty"` ViaLabel uint32 `binapi:"u32,name=via_label" json:"via_label,omitempty"` ObjID uint32 `binapi:"u32,name=obj_id" json:"obj_id,omitempty"` ClassifyTableIndex uint32 `binapi:"u32,name=classify_table_index" json:"classify_table_index,omitempty"` }
FibPathNh defines type 'fib_path_nh'.
type FibPathNhProto ¶
type FibPathNhProto uint32
FibPathNhProto defines enum 'fib_path_nh_proto'.
const ( FIB_API_PATH_NH_PROTO_IP4 FibPathNhProto = 0 FIB_API_PATH_NH_PROTO_IP6 FibPathNhProto = 1 FIB_API_PATH_NH_PROTO_MPLS FibPathNhProto = 2 FIB_API_PATH_NH_PROTO_ETHERNET FibPathNhProto = 3 FIB_API_PATH_NH_PROTO_BIER FibPathNhProto = 4 )
func (FibPathNhProto) String ¶
func (x FibPathNhProto) String() string
type FibPathType ¶
type FibPathType uint32
FibPathType defines enum 'fib_path_type'.
const ( FIB_API_PATH_TYPE_NORMAL FibPathType = 0 FIB_API_PATH_TYPE_LOCAL FibPathType = 1 FIB_API_PATH_TYPE_DROP FibPathType = 2 FIB_API_PATH_TYPE_UDP_ENCAP FibPathType = 3 FIB_API_PATH_TYPE_BIER_IMP FibPathType = 4 FIB_API_PATH_TYPE_ICMP_UNREACH FibPathType = 5 FIB_API_PATH_TYPE_ICMP_PROHIBIT FibPathType = 6 FIB_API_PATH_TYPE_SOURCE_LOOKUP FibPathType = 7 FIB_API_PATH_TYPE_DVR FibPathType = 8 FIB_API_PATH_TYPE_INTERFACE_RX FibPathType = 9 FIB_API_PATH_TYPE_CLASSIFY FibPathType = 10 )
func (FibPathType) String ¶
func (x FibPathType) String() string
type IP4Address ¶
type IP4Address [4]uint8
IP4Address defines alias 'ip4_address'.
func ParseIP4Address ¶
func ParseIP4Address(s string) (IP4Address, error)
func (*IP4Address) MarshalText ¶
func (x *IP4Address) MarshalText() ([]byte, error)
func (IP4Address) String ¶
func (x IP4Address) String() string
func (IP4Address) ToIP ¶
func (x IP4Address) ToIP() net.IP
func (*IP4Address) UnmarshalText ¶
func (x *IP4Address) UnmarshalText(text []byte) error
type IP4AddressWithPrefix ¶
type IP4AddressWithPrefix IP4Prefix
IP4AddressWithPrefix defines alias 'ip4_address_with_prefix'.
type IP4Prefix ¶
type IP4Prefix struct { Address IP4Address `binapi:"ip4_address,name=address" json:"address,omitempty"` Len uint8 `binapi:"u8,name=len" json:"len,omitempty"` }
IP4Prefix defines type 'ip4_prefix'.
func ParseIP4Prefix ¶
func (*IP4Prefix) MarshalText ¶
func (*IP4Prefix) UnmarshalText ¶
type IP6Address ¶
type IP6Address [16]uint8
IP6Address defines alias 'ip6_address'.
func ParseIP6Address ¶
func ParseIP6Address(s string) (IP6Address, error)
func (*IP6Address) MarshalText ¶
func (x *IP6Address) MarshalText() ([]byte, error)
func (IP6Address) String ¶
func (x IP6Address) String() string
func (IP6Address) ToIP ¶
func (x IP6Address) ToIP() net.IP
func (*IP6Address) UnmarshalText ¶
func (x *IP6Address) UnmarshalText(text []byte) error
type IP6AddressWithPrefix ¶
type IP6AddressWithPrefix IP6Prefix
IP6AddressWithPrefix defines alias 'ip6_address_with_prefix'.
type IP6Prefix ¶
type IP6Prefix struct { Address IP6Address `binapi:"ip6_address,name=address" json:"address,omitempty"` Len uint8 `binapi:"u8,name=len" json:"len,omitempty"` }
IP6Prefix defines type 'ip6_prefix'.
func ParseIP6Prefix ¶
func (*IP6Prefix) MarshalText ¶
func (*IP6Prefix) UnmarshalText ¶
type IPDscp ¶
type IPDscp uint8
IPDscp defines 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 uint32
IPProto defines 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_AH IPProto = 50 IP_API_PROTO_ESP IPProto = 51 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 Mprefix ¶
type Mprefix struct { Af AddressFamily `binapi:"address_family,name=af" json:"af,omitempty"` GrpAddressLength uint16 `binapi:"u16,name=grp_address_length" json:"grp_address_length,omitempty"` GrpAddress AddressUnion `binapi:"address_union,name=grp_address" json:"grp_address,omitempty"` SrcAddress AddressUnion `binapi:"address_union,name=src_address" json:"src_address,omitempty"` }
Mprefix defines type 'mprefix'.
type Prefix ¶
type Prefix struct { Address Address `binapi:"address,name=address" json:"address,omitempty"` Len uint8 `binapi:"u8,name=len" json:"len,omitempty"` }
Prefix defines type 'prefix'.
func ParsePrefix ¶
func (*Prefix) MarshalText ¶
func (*Prefix) UnmarshalText ¶
type PrefixMatcher ¶
type PrefixMatcher struct { Le uint8 `binapi:"u8,name=le" json:"le,omitempty"` Ge uint8 `binapi:"u8,name=ge" json:"ge,omitempty"` }
PrefixMatcher defines type 'prefix_matcher'.
type RPCService ¶
type RPCService interface { BierDispEntryAddDel(ctx context.Context, in *BierDispEntryAddDel) (*BierDispEntryAddDelReply, error) BierDispEntryDump(ctx context.Context, in *BierDispEntryDump) (RPCService_BierDispEntryDumpClient, error) BierDispTableAddDel(ctx context.Context, in *BierDispTableAddDel) (*BierDispTableAddDelReply, error) BierDispTableDump(ctx context.Context, in *BierDispTableDump) (RPCService_BierDispTableDumpClient, error) BierImpAdd(ctx context.Context, in *BierImpAdd) (*BierImpAddReply, error) BierImpDel(ctx context.Context, in *BierImpDel) (*BierImpDelReply, error) BierImpDump(ctx context.Context, in *BierImpDump) (RPCService_BierImpDumpClient, error) BierRouteAddDel(ctx context.Context, in *BierRouteAddDel) (*BierRouteAddDelReply, error) BierRouteDump(ctx context.Context, in *BierRouteDump) (RPCService_BierRouteDumpClient, error) BierTableAddDel(ctx context.Context, in *BierTableAddDel) (*BierTableAddDelReply, error) BierTableDump(ctx context.Context, in *BierTableDump) (RPCService_BierTableDumpClient, error) }
RPCService defines RPC service bier.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_BierDispEntryDumpClient ¶
type RPCService_BierDispEntryDumpClient interface { Recv() (*BierDispEntryDetails, error) api.Stream }
type RPCService_BierDispTableDumpClient ¶
type RPCService_BierDispTableDumpClient interface { Recv() (*BierDispTableDetails, error) api.Stream }
type RPCService_BierImpDumpClient ¶
type RPCService_BierImpDumpClient interface { Recv() (*BierImpDetails, error) api.Stream }
type RPCService_BierRouteDumpClient ¶
type RPCService_BierRouteDumpClient interface { Recv() (*BierRouteDetails, error) api.Stream }
type RPCService_BierTableDumpClient ¶
type RPCService_BierTableDumpClient interface { Recv() (*BierTableDetails, error) api.Stream }