Versions in this module Expand all Collapse all v0 v0.4.0 Jan 17, 2022 Changes in this version + const APIFile + const APIVersion + const VersionCrc + var AddressFamily_name = map[uint32]string + var AddressFamily_value = map[string]uint32 + var FibPathFlags_name = map[uint32]string + var FibPathFlags_value = map[string]uint32 + var FibPathNhProto_name = map[uint32]string + var FibPathNhProto_value = map[string]uint32 + var FibPathType_name = map[uint32]string + var FibPathType_value = map[string]uint32 + var IPDscp_name = map[uint8]string + var IPDscp_value = map[string]uint8 + var IPEcn_name = map[uint8]string + var IPEcn_value = map[string]uint8 + var IPProto_name = map[uint32]string + var IPProto_value = map[string]uint32 + var IfStatusFlags_name = map[uint32]string + var IfStatusFlags_value = map[string]uint32 + var IfType_name = map[uint32]string + var IfType_value = map[string]uint32 + var LinkDuplex_name = map[uint32]string + var LinkDuplex_value = map[string]uint32 + var MtuProto_name = map[uint32]string + var MtuProto_value = map[string]uint32 + var RxMode_name = map[uint32]string + var RxMode_value = map[string]uint32 + var SubIfFlags_name = map[uint32]string + var SubIfFlags_value = map[string]uint32 + func AllMessages() []api.Message + type Address struct + Af AddressFamily + Un AddressUnion + func ParseAddress(s string) (Address, error) + func (x *Address) MarshalText() ([]byte, error) + func (x *Address) UnmarshalText(text []byte) error + func (x Address) String() string + func (x Address) ToIP() net.IP + type AddressFamily uint32 + const ADDRESS_IP4 + const ADDRESS_IP6 + func (x AddressFamily) String() string + type AddressUnion struct + XXX_UnionData [16]byte + func AddressUnionIP4(a IP4Address) (u AddressUnion) + func AddressUnionIP6(a IP6Address) (u AddressUnion) + func (u *AddressUnion) GetIP4() (a IP4Address) + func (u *AddressUnion) GetIP6() (a IP6Address) + func (u *AddressUnion) SetIP4(a IP4Address) + func (u *AddressUnion) SetIP6(a IP6Address) + type AddressWithPrefix Prefix + func ParseAddressWithPrefix(s string) (AddressWithPrefix, error) + func (x *AddressWithPrefix) MarshalText() ([]byte, error) + func (x *AddressWithPrefix) UnmarshalText(text []byte) error + func (x AddressWithPrefix) String() string + type FibMplsLabel struct + Exp uint8 + IsUniform uint8 + Label uint32 + TTL uint8 + type FibPath struct + Flags FibPathFlags + LabelStack [16]FibMplsLabel + NLabels uint8 + Nh FibPathNh + Preference uint8 + Proto FibPathNhProto + RpfID uint32 + SwIfIndex uint32 + TableID uint32 + Type FibPathType + Weight uint8 + type FibPathFlags uint32 + const FIB_API_PATH_FLAG_NONE + const FIB_API_PATH_FLAG_POP_PW_CW + const FIB_API_PATH_FLAG_RESOLVE_VIA_ATTACHED + const FIB_API_PATH_FLAG_RESOLVE_VIA_HOST + func (x FibPathFlags) String() string + type FibPathNh struct + Address AddressUnion + ClassifyTableIndex uint32 + ObjID uint32 + ViaLabel uint32 + type FibPathNhProto uint32 + const FIB_API_PATH_NH_PROTO_BIER + const FIB_API_PATH_NH_PROTO_ETHERNET + const FIB_API_PATH_NH_PROTO_IP4 + const FIB_API_PATH_NH_PROTO_IP6 + const FIB_API_PATH_NH_PROTO_MPLS + func (x FibPathNhProto) String() string + type FibPathType uint32 + const FIB_API_PATH_TYPE_BIER_IMP + const FIB_API_PATH_TYPE_CLASSIFY + const FIB_API_PATH_TYPE_DROP + const FIB_API_PATH_TYPE_DVR + const FIB_API_PATH_TYPE_ICMP_PROHIBIT + const FIB_API_PATH_TYPE_ICMP_UNREACH + const FIB_API_PATH_TYPE_INTERFACE_RX + const FIB_API_PATH_TYPE_LOCAL + const FIB_API_PATH_TYPE_NORMAL + const FIB_API_PATH_TYPE_SOURCE_LOOKUP + const FIB_API_PATH_TYPE_UDP_ENCAP + func (x FibPathType) String() string + type IP4Address [4]uint8 + func ParseIP4Address(s string) (IP4Address, error) + func (x *IP4Address) MarshalText() ([]byte, error) + func (x *IP4Address) UnmarshalText(text []byte) error + func (x IP4Address) String() string + func (x IP4Address) ToIP() net.IP + type IP4AddressWithPrefix IP4Prefix + type IP4Prefix struct + Address IP4Address + Len uint8 + func ParseIP4Prefix(s string) (prefix IP4Prefix, err error) + func (x *IP4Prefix) MarshalText() ([]byte, error) + func (x *IP4Prefix) UnmarshalText(text []byte) error + func (x IP4Prefix) String() string + func (x IP4Prefix) ToIPNet() *net.IPNet + type IP6Address [16]uint8 + func ParseIP6Address(s string) (IP6Address, error) + func (x *IP6Address) MarshalText() ([]byte, error) + func (x *IP6Address) UnmarshalText(text []byte) error + func (x IP6Address) String() string + func (x IP6Address) ToIP() net.IP + type IP6AddressWithPrefix IP6Prefix + type IP6Prefix struct + Address IP6Address + Len uint8 + func ParseIP6Prefix(s string) (prefix IP6Prefix, err error) + func (x *IP6Prefix) MarshalText() ([]byte, error) + func (x *IP6Prefix) UnmarshalText(text []byte) error + func (x IP6Prefix) String() string + func (x IP6Prefix) ToIPNet() *net.IPNet + type IPDscp uint8 + const IP_API_DSCP_AF11 + const IP_API_DSCP_AF12 + const IP_API_DSCP_AF13 + const IP_API_DSCP_AF21 + const IP_API_DSCP_AF22 + const IP_API_DSCP_AF23 + const IP_API_DSCP_AF31 + const IP_API_DSCP_AF32 + const IP_API_DSCP_AF33 + const IP_API_DSCP_AF41 + const IP_API_DSCP_AF42 + const IP_API_DSCP_AF43 + const IP_API_DSCP_CS0 + const IP_API_DSCP_CS1 + const IP_API_DSCP_CS2 + const IP_API_DSCP_CS3 + const IP_API_DSCP_CS4 + const IP_API_DSCP_CS5 + const IP_API_DSCP_CS6 + const IP_API_DSCP_CS7 + const IP_API_DSCP_EF + func (x IPDscp) String() string + type IPEcn uint8 + const IP_API_ECN_CE + const IP_API_ECN_ECT0 + const IP_API_ECN_ECT1 + const IP_API_ECN_NONE + func (x IPEcn) String() string + type IPProto uint32 + const IP_API_PROTO_AH + const IP_API_PROTO_EIGRP + const IP_API_PROTO_ESP + const IP_API_PROTO_GRE + const IP_API_PROTO_HOPOPT + const IP_API_PROTO_ICMP + const IP_API_PROTO_IGMP + const IP_API_PROTO_OSPF + const IP_API_PROTO_RESERVED + const IP_API_PROTO_SCTP + const IP_API_PROTO_TCP + const IP_API_PROTO_UDP + func (x IPProto) String() string + type IfStatusFlags uint32 + const IF_STATUS_API_FLAG_ADMIN_UP + const IF_STATUS_API_FLAG_LINK_UP + func (x IfStatusFlags) String() string + type IfType uint32 + const IF_API_TYPE_HARDWARE + const IF_API_TYPE_P2P + const IF_API_TYPE_PIPE + const IF_API_TYPE_SUB + func (x IfType) String() string + type InterfaceIndex uint32 + type LinkDuplex uint32 + const LINK_DUPLEX_API_FULL + const LINK_DUPLEX_API_HALF + const LINK_DUPLEX_API_UNKNOWN + func (x LinkDuplex) String() string + type MplsIPBindUnbind struct + MbIPTableID uint32 + MbIsBind bool + MbLabel uint32 + MbMplsTableID uint32 + MbPrefix Prefix + func (*MplsIPBindUnbind) GetCrcString() string + func (*MplsIPBindUnbind) GetMessageName() string + func (*MplsIPBindUnbind) GetMessageType() api.MessageType + func (m *MplsIPBindUnbind) Marshal(b []byte) ([]byte, error) + func (m *MplsIPBindUnbind) Reset() + func (m *MplsIPBindUnbind) Size() (size int) + func (m *MplsIPBindUnbind) Unmarshal(b []byte) error + type MplsIPBindUnbindReply struct + Retval int32 + func (*MplsIPBindUnbindReply) GetCrcString() string + func (*MplsIPBindUnbindReply) GetMessageName() string + func (*MplsIPBindUnbindReply) GetMessageType() api.MessageType + func (m *MplsIPBindUnbindReply) Marshal(b []byte) ([]byte, error) + func (m *MplsIPBindUnbindReply) Reset() + func (m *MplsIPBindUnbindReply) Size() (size int) + func (m *MplsIPBindUnbindReply) Unmarshal(b []byte) error + type MplsRoute struct + MrEos uint8 + MrEosProto uint8 + MrIsMulticast bool + MrLabel uint32 + MrNPaths uint8 + MrPaths []FibPath + MrTableID uint32 + type MplsRouteAddDel struct + MrIsAdd bool + MrIsMultipath bool + MrRoute MplsRoute + func (*MplsRouteAddDel) GetCrcString() string + func (*MplsRouteAddDel) GetMessageName() string + func (*MplsRouteAddDel) GetMessageType() api.MessageType + func (m *MplsRouteAddDel) Marshal(b []byte) ([]byte, error) + func (m *MplsRouteAddDel) Reset() + func (m *MplsRouteAddDel) Size() (size int) + func (m *MplsRouteAddDel) Unmarshal(b []byte) error + type MplsRouteAddDelReply struct + Retval int32 + StatsIndex uint32 + func (*MplsRouteAddDelReply) GetCrcString() string + func (*MplsRouteAddDelReply) GetMessageName() string + func (*MplsRouteAddDelReply) GetMessageType() api.MessageType + func (m *MplsRouteAddDelReply) Marshal(b []byte) ([]byte, error) + func (m *MplsRouteAddDelReply) Reset() + func (m *MplsRouteAddDelReply) Size() (size int) + func (m *MplsRouteAddDelReply) Unmarshal(b []byte) error + type MplsRouteDetails struct + MrRoute MplsRoute + func (*MplsRouteDetails) GetCrcString() string + func (*MplsRouteDetails) GetMessageName() string + func (*MplsRouteDetails) GetMessageType() api.MessageType + func (m *MplsRouteDetails) Marshal(b []byte) ([]byte, error) + func (m *MplsRouteDetails) Reset() + func (m *MplsRouteDetails) Size() (size int) + func (m *MplsRouteDetails) Unmarshal(b []byte) error + type MplsRouteDump struct + Table MplsTable + func (*MplsRouteDump) GetCrcString() string + func (*MplsRouteDump) GetMessageName() string + func (*MplsRouteDump) GetMessageType() api.MessageType + func (m *MplsRouteDump) Marshal(b []byte) ([]byte, error) + func (m *MplsRouteDump) Reset() + func (m *MplsRouteDump) Size() (size int) + func (m *MplsRouteDump) Unmarshal(b []byte) error + type MplsTable struct + MtName string + MtTableID uint32 + type MplsTableAddDel struct + MtIsAdd bool + MtTable MplsTable + func (*MplsTableAddDel) GetCrcString() string + func (*MplsTableAddDel) GetMessageName() string + func (*MplsTableAddDel) GetMessageType() api.MessageType + func (m *MplsTableAddDel) Marshal(b []byte) ([]byte, error) + func (m *MplsTableAddDel) Reset() + func (m *MplsTableAddDel) Size() (size int) + func (m *MplsTableAddDel) Unmarshal(b []byte) error + type MplsTableAddDelReply struct + Retval int32 + func (*MplsTableAddDelReply) GetCrcString() string + func (*MplsTableAddDelReply) GetMessageName() string + func (*MplsTableAddDelReply) GetMessageType() api.MessageType + func (m *MplsTableAddDelReply) Marshal(b []byte) ([]byte, error) + func (m *MplsTableAddDelReply) Reset() + func (m *MplsTableAddDelReply) Size() (size int) + func (m *MplsTableAddDelReply) Unmarshal(b []byte) error + type MplsTableDetails struct + MtTable MplsTable + func (*MplsTableDetails) GetCrcString() string + func (*MplsTableDetails) GetMessageName() string + func (*MplsTableDetails) GetMessageType() api.MessageType + func (m *MplsTableDetails) Marshal(b []byte) ([]byte, error) + func (m *MplsTableDetails) Reset() + func (m *MplsTableDetails) Size() (size int) + func (m *MplsTableDetails) Unmarshal(b []byte) error + type MplsTableDump struct + func (*MplsTableDump) GetCrcString() string + func (*MplsTableDump) GetMessageName() string + func (*MplsTableDump) GetMessageType() api.MessageType + func (m *MplsTableDump) Marshal(b []byte) ([]byte, error) + func (m *MplsTableDump) Reset() + func (m *MplsTableDump) Size() (size int) + func (m *MplsTableDump) Unmarshal(b []byte) error + type MplsTunnel struct + MtIsMulticast bool + MtL2Only bool + MtNPaths uint8 + MtPaths []FibPath + MtSwIfIndex InterfaceIndex + MtTunnelIndex uint32 + type MplsTunnelAddDel struct + MtIsAdd bool + MtTunnel MplsTunnel + func (*MplsTunnelAddDel) GetCrcString() string + func (*MplsTunnelAddDel) GetMessageName() string + func (*MplsTunnelAddDel) GetMessageType() api.MessageType + func (m *MplsTunnelAddDel) Marshal(b []byte) ([]byte, error) + func (m *MplsTunnelAddDel) Reset() + func (m *MplsTunnelAddDel) Size() (size int) + func (m *MplsTunnelAddDel) Unmarshal(b []byte) error + type MplsTunnelAddDelReply struct + Retval int32 + SwIfIndex InterfaceIndex + TunnelIndex uint32 + func (*MplsTunnelAddDelReply) GetCrcString() string + func (*MplsTunnelAddDelReply) GetMessageName() string + func (*MplsTunnelAddDelReply) GetMessageType() api.MessageType + func (m *MplsTunnelAddDelReply) Marshal(b []byte) ([]byte, error) + func (m *MplsTunnelAddDelReply) Reset() + func (m *MplsTunnelAddDelReply) Size() (size int) + func (m *MplsTunnelAddDelReply) Unmarshal(b []byte) error + type MplsTunnelDetails struct + MtTunnel MplsTunnel + func (*MplsTunnelDetails) GetCrcString() string + func (*MplsTunnelDetails) GetMessageName() string + func (*MplsTunnelDetails) GetMessageType() api.MessageType + func (m *MplsTunnelDetails) Marshal(b []byte) ([]byte, error) + func (m *MplsTunnelDetails) Reset() + func (m *MplsTunnelDetails) Size() (size int) + func (m *MplsTunnelDetails) Unmarshal(b []byte) error + type MplsTunnelDump struct + SwIfIndex InterfaceIndex + func (*MplsTunnelDump) GetCrcString() string + func (*MplsTunnelDump) GetMessageName() string + func (*MplsTunnelDump) GetMessageType() api.MessageType + func (m *MplsTunnelDump) Marshal(b []byte) ([]byte, error) + func (m *MplsTunnelDump) Reset() + func (m *MplsTunnelDump) Size() (size int) + func (m *MplsTunnelDump) Unmarshal(b []byte) error + type Mprefix struct + Af AddressFamily + GrpAddress AddressUnion + GrpAddressLength uint16 + SrcAddress AddressUnion + type MtuProto uint32 + const MTU_PROTO_API_IP4 + const MTU_PROTO_API_IP6 + const MTU_PROTO_API_L3 + const MTU_PROTO_API_MPLS + const MTU_PROTO_API_N + func (x MtuProto) String() string + type Prefix struct + Address Address + Len uint8 + func ParsePrefix(ip string) (prefix Prefix, err error) + func (x *Prefix) MarshalText() ([]byte, error) + func (x *Prefix) UnmarshalText(text []byte) error + func (x Prefix) String() string + func (x Prefix) ToIPNet() *net.IPNet + type PrefixMatcher struct + Ge uint8 + Le uint8 + type RPCService interface + MplsIPBindUnbind func(ctx context.Context, in *MplsIPBindUnbind) (*MplsIPBindUnbindReply, error) + MplsRouteAddDel func(ctx context.Context, in *MplsRouteAddDel) (*MplsRouteAddDelReply, error) + MplsRouteDump func(ctx context.Context, in *MplsRouteDump) (RPCService_MplsRouteDumpClient, error) + MplsTableAddDel func(ctx context.Context, in *MplsTableAddDel) (*MplsTableAddDelReply, error) + MplsTableDump func(ctx context.Context, in *MplsTableDump) (RPCService_MplsTableDumpClient, error) + MplsTunnelAddDel func(ctx context.Context, in *MplsTunnelAddDel) (*MplsTunnelAddDelReply, error) + MplsTunnelDump func(ctx context.Context, in *MplsTunnelDump) (RPCService_MplsTunnelDumpClient, error) + SwInterfaceSetMplsEnable func(ctx context.Context, in *SwInterfaceSetMplsEnable) (*SwInterfaceSetMplsEnableReply, error) + func NewServiceClient(conn api.Connection) RPCService + type RPCService_MplsRouteDumpClient interface + Recv func() (*MplsRouteDetails, error) + type RPCService_MplsTableDumpClient interface + Recv func() (*MplsTableDetails, error) + type RPCService_MplsTunnelDumpClient interface + Recv func() (*MplsTunnelDetails, error) + type RxMode uint32 + const RX_MODE_API_ADAPTIVE + const RX_MODE_API_DEFAULT + const RX_MODE_API_INTERRUPT + const RX_MODE_API_POLLING + const RX_MODE_API_UNKNOWN + func (x RxMode) String() string + type SubIfFlags uint32 + const SUB_IF_API_FLAG_DEFAULT + const SUB_IF_API_FLAG_DOT1AD + const SUB_IF_API_FLAG_DOT1AH + const SUB_IF_API_FLAG_EXACT_MATCH + const SUB_IF_API_FLAG_INNER_VLAN_ID_ANY + const SUB_IF_API_FLAG_MASK_VNET + const SUB_IF_API_FLAG_NO_TAGS + const SUB_IF_API_FLAG_ONE_TAG + const SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY + const SUB_IF_API_FLAG_TWO_TAGS + func (x SubIfFlags) String() string + type SwInterfaceSetMplsEnable struct + Enable bool + SwIfIndex InterfaceIndex + func (*SwInterfaceSetMplsEnable) GetCrcString() string + func (*SwInterfaceSetMplsEnable) GetMessageName() string + func (*SwInterfaceSetMplsEnable) GetMessageType() api.MessageType + func (m *SwInterfaceSetMplsEnable) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSetMplsEnable) Reset() + func (m *SwInterfaceSetMplsEnable) Size() (size int) + func (m *SwInterfaceSetMplsEnable) Unmarshal(b []byte) error + type SwInterfaceSetMplsEnableReply struct + Retval int32 + func (*SwInterfaceSetMplsEnableReply) GetCrcString() string + func (*SwInterfaceSetMplsEnableReply) GetMessageName() string + func (*SwInterfaceSetMplsEnableReply) GetMessageType() api.MessageType + func (m *SwInterfaceSetMplsEnableReply) Marshal(b []byte) ([]byte, error) + func (m *SwInterfaceSetMplsEnableReply) Reset() + func (m *SwInterfaceSetMplsEnableReply) Size() (size int) + func (m *SwInterfaceSetMplsEnableReply) Unmarshal(b []byte) error