Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustVlanVID(vlanId uint16) uint32
- func AdjustVlanVID16(vlanId uint16) uint16
- func CompMaskedMAC(mac, base, mask net.HardwareAddr) bool
- func NewDPPortId(port uint32, linkType LinkType_Type) uint32
- func NewIPNetFromIP(ip net.IP) *net.IPNet
- func NewL2FloodGroupID(floodId uint16, vlanId uint16) uint32
- func NewL2InterfaceGroupID(portId uint32, vlanId uint16) uint32
- func NewL2MulticastGroupID(mcId uint16, vlanId uint16) uint32
- func NewL2RewriteGroupID(neighId uint32) uint32
- func NewL3EcmpGroupId(ecmpId uint32) uint32
- func NewL3InterfaceGroupID(neighId uint32) uint32
- func NewL3MulticastGroupID(mcId uint16, vlanId uint16) uint32
- func NewL3UnicastGroupID(neighId uint32) uint32
- func NewMPLSEcmpGroupID(index uint32) uint32
- func NewMPLSFastFailoverGroupID(index uint32) uint32
- func NewMPLSInterfaceGroupID(neighId uint32) uint32
- func NewMPLSLabelGroupID(subType uint32, label uint32) uint32
- func NewMaskedMAC(mac, mask string) string
- func NewOverlayGroupID(tunnelId uint16, subType uint16, index uint16) uint32
- func NewUnfilteredInterfaceGroupID(portId uint32) uint32
- func ParseMaskedIP(s string) (net.IP, *net.IPNet, error)
- func ParseMaskedMAC(mac string) (net.HardwareAddr, net.HardwareAddr, error)
- type BridgeVlanInfo
- func (*BridgeVlanInfo) Descriptor() ([]byte, []int)
- func (*BridgeVlanInfo) ProtoMessage()
- func (m *BridgeVlanInfo) Reset()
- func (m *BridgeVlanInfo) String() string
- func (m *BridgeVlanInfo) XXX_DiscardUnknown()
- func (m *BridgeVlanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BridgeVlanInfo) XXX_Merge(src proto.Message)
- func (m *BridgeVlanInfo) XXX_Size() int
- func (m *BridgeVlanInfo) XXX_Unmarshal(b []byte) error
- type BridgeVlanInfo_Flags
- type BridgingFlow
- func (*BridgingFlow) Descriptor() ([]byte, []int)
- func (m *BridgingFlow) GetAction() *BridgingFlow_Action
- func (m *BridgingFlow) GetMatch() *BridgingFlow_Match
- func (*BridgingFlow) ProtoMessage()
- func (m *BridgingFlow) Reset()
- func (m *BridgingFlow) String() string
- func (f *BridgingFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *BridgingFlow) XXX_DiscardUnknown()
- func (m *BridgingFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BridgingFlow) XXX_Merge(src proto.Message)
- func (m *BridgingFlow) XXX_Size() int
- func (m *BridgingFlow) XXX_Unmarshal(b []byte) error
- type BridgingFlow_Action
- func (*BridgingFlow_Action) Descriptor() ([]byte, []int)
- func (m *BridgingFlow_Action) GetName() BridgingFlow_Action_Name
- func (m *BridgingFlow_Action) GetValue() uint32
- func (*BridgingFlow_Action) ProtoMessage()
- func (m *BridgingFlow_Action) Reset()
- func (m *BridgingFlow_Action) String() string
- func (m *BridgingFlow_Action) XXX_DiscardUnknown()
- func (m *BridgingFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BridgingFlow_Action) XXX_Merge(src proto.Message)
- func (m *BridgingFlow_Action) XXX_Size() int
- func (m *BridgingFlow_Action) XXX_Unmarshal(b []byte) error
- type BridgingFlow_Action_Name
- type BridgingFlow_Match
- func (*BridgingFlow_Match) Descriptor() ([]byte, []int)
- func (m *BridgingFlow_Match) GetEthDst() string
- func (m *BridgingFlow_Match) GetTunnelId() uint32
- func (m *BridgingFlow_Match) GetVlanVid() uint32
- func (*BridgingFlow_Match) ProtoMessage()
- func (m *BridgingFlow_Match) Reset()
- func (m *BridgingFlow_Match) String() string
- func (m *BridgingFlow_Match) XXX_DiscardUnknown()
- func (m *BridgingFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BridgingFlow_Match) XXX_Merge(src proto.Message)
- func (m *BridgingFlow_Match) XXX_Size() int
- func (m *BridgingFlow_Match) XXX_Unmarshal(b []byte) error
- type DpStatus
- func (d *DpStatus) Bytes() ([]byte, error)
- func (*DpStatus) Descriptor() ([]byte, []int)
- func (m *DpStatus) GetReId() string
- func (m *DpStatus) GetStatus() DpStatus_Status
- func (*DpStatus) ProtoMessage()
- func (m *DpStatus) Reset()
- func (m *DpStatus) String() string
- func (*DpStatus) Type() uint16
- func (m *DpStatus) XXX_DiscardUnknown()
- func (m *DpStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DpStatus) XXX_Merge(src proto.Message)
- func (m *DpStatus) XXX_Size() int
- func (m *DpStatus) XXX_Unmarshal(b []byte) error
- type DpStatus_Status
- type FFHello
- func (h *FFHello) Bytes() ([]byte, error)
- func (*FFHello) Descriptor() ([]byte, []int)
- func (m *FFHello) GetDpId() uint64
- func (m *FFHello) GetDpType() FFHello_DpType
- func (*FFHello) ProtoMessage()
- func (m *FFHello) Reset()
- func (m *FFHello) String() string
- func (h *FFHello) Type() uint16
- func (m *FFHello) XXX_DiscardUnknown()
- func (m *FFHello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFHello) XXX_Merge(src proto.Message)
- func (m *FFHello) XXX_Size() int
- func (m *FFHello) XXX_Unmarshal(b []byte) error
- type FFHello_DpType
- type FFL2AddrStatus
- func (a *FFL2AddrStatus) Bytes() ([]byte, error)
- func (*FFL2AddrStatus) Descriptor() ([]byte, []int)
- func (m *FFL2AddrStatus) GetAddrs() []*L2Addr
- func (m *FFL2AddrStatus) GetDpId() uint64
- func (*FFL2AddrStatus) ProtoMessage()
- func (m *FFL2AddrStatus) Reset()
- func (m *FFL2AddrStatus) String() string
- func (*FFL2AddrStatus) Type() uint16
- func (m *FFL2AddrStatus) XXX_DiscardUnknown()
- func (m *FFL2AddrStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFL2AddrStatus) XXX_Merge(src proto.Message)
- func (m *FFL2AddrStatus) XXX_Size() int
- func (m *FFL2AddrStatus) XXX_Unmarshal(b []byte) error
- type FFM
- type FFMultipart
- func (*FFMultipart) Descriptor() ([]byte, []int)
- func (*FFMultipart) ProtoMessage()
- func (m *FFMultipart) Reset()
- func (m *FFMultipart) String() string
- func (m *FFMultipart) XXX_DiscardUnknown()
- func (m *FFMultipart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart) XXX_Merge(src proto.Message)
- func (m *FFMultipart) XXX_Size() int
- func (m *FFMultipart) XXX_Unmarshal(b []byte) error
- type FFMultipart_MpType
- type FFMultipart_PortDescReply
- func (*FFMultipart_PortDescReply) Descriptor() ([]byte, []int)
- func (m *FFMultipart_PortDescReply) GetInternal() bool
- func (m *FFMultipart_PortDescReply) GetPort() []*FFPort
- func (*FFMultipart_PortDescReply) ProtoMessage()
- func (m *FFMultipart_PortDescReply) Reset()
- func (m *FFMultipart_PortDescReply) String() string
- func (m *FFMultipart_PortDescReply) XXX_DiscardUnknown()
- func (m *FFMultipart_PortDescReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_PortDescReply) XXX_Merge(src proto.Message)
- func (m *FFMultipart_PortDescReply) XXX_Size() int
- func (m *FFMultipart_PortDescReply) XXX_Unmarshal(b []byte) error
- type FFMultipart_PortDescRequest
- func (*FFMultipart_PortDescRequest) Descriptor() ([]byte, []int)
- func (m *FFMultipart_PortDescRequest) GetInternal() bool
- func (*FFMultipart_PortDescRequest) ProtoMessage()
- func (m *FFMultipart_PortDescRequest) Reset()
- func (m *FFMultipart_PortDescRequest) String() string
- func (m *FFMultipart_PortDescRequest) XXX_DiscardUnknown()
- func (m *FFMultipart_PortDescRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_PortDescRequest) XXX_Merge(src proto.Message)
- func (m *FFMultipart_PortDescRequest) XXX_Size() int
- func (m *FFMultipart_PortDescRequest) XXX_Unmarshal(b []byte) error
- type FFMultipart_PortReply
- func (*FFMultipart_PortReply) Descriptor() ([]byte, []int)
- func (m *FFMultipart_PortReply) GetStats() []*FFPortStats
- func (*FFMultipart_PortReply) ProtoMessage()
- func (m *FFMultipart_PortReply) Reset()
- func (m *FFMultipart_PortReply) String() string
- func (m *FFMultipart_PortReply) XXX_DiscardUnknown()
- func (m *FFMultipart_PortReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_PortReply) XXX_Merge(src proto.Message)
- func (m *FFMultipart_PortReply) XXX_Size() int
- func (m *FFMultipart_PortReply) XXX_Unmarshal(b []byte) error
- type FFMultipart_PortRequest
- func (*FFMultipart_PortRequest) Descriptor() ([]byte, []int)
- func (m *FFMultipart_PortRequest) GetNames() []string
- func (m *FFMultipart_PortRequest) GetPortNo() uint32
- func (*FFMultipart_PortRequest) ProtoMessage()
- func (m *FFMultipart_PortRequest) Reset()
- func (m *FFMultipart_PortRequest) String() string
- func (m *FFMultipart_PortRequest) XXX_DiscardUnknown()
- func (m *FFMultipart_PortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_PortRequest) XXX_Merge(src proto.Message)
- func (m *FFMultipart_PortRequest) XXX_Size() int
- func (m *FFMultipart_PortRequest) XXX_Unmarshal(b []byte) error
- type FFMultipart_Reply
- func (m *FFMultipart_Reply) Bytes() ([]byte, error)
- func (*FFMultipart_Reply) Descriptor() ([]byte, []int)
- func (m *FFMultipart_Reply) GetBody() isFFMultipart_Reply_Body
- func (m *FFMultipart_Reply) GetDpId() uint64
- func (m *FFMultipart_Reply) GetMpType() FFMultipart_MpType
- func (m *FFMultipart_Reply) GetPort() *FFMultipart_PortReply
- func (m *FFMultipart_Reply) GetPortDesc() *FFMultipart_PortDescReply
- func (*FFMultipart_Reply) ProtoMessage()
- func (m *FFMultipart_Reply) Reset()
- func (m *FFMultipart_Reply) String() string
- func (m *FFMultipart_Reply) Type() uint16
- func (m *FFMultipart_Reply) XXX_DiscardUnknown()
- func (m *FFMultipart_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_Reply) XXX_Merge(src proto.Message)
- func (*FFMultipart_Reply) XXX_OneofWrappers() []interface{}
- func (m *FFMultipart_Reply) XXX_Size() int
- func (m *FFMultipart_Reply) XXX_Unmarshal(b []byte) error
- type FFMultipart_Reply_Port
- type FFMultipart_Reply_PortDesc
- type FFMultipart_Request
- func (m *FFMultipart_Request) Bytes() ([]byte, error)
- func (*FFMultipart_Request) Descriptor() ([]byte, []int)
- func (m *FFMultipart_Request) GetBody() isFFMultipart_Request_Body
- func (m *FFMultipart_Request) GetDpId() uint64
- func (m *FFMultipart_Request) GetMpType() FFMultipart_MpType
- func (m *FFMultipart_Request) GetPort() *FFMultipart_PortRequest
- func (m *FFMultipart_Request) GetPortDesc() *FFMultipart_PortDescRequest
- func (*FFMultipart_Request) ProtoMessage()
- func (m *FFMultipart_Request) Reset()
- func (m *FFMultipart_Request) String() string
- func (m *FFMultipart_Request) Type() uint16
- func (m *FFMultipart_Request) XXX_DiscardUnknown()
- func (m *FFMultipart_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFMultipart_Request) XXX_Merge(src proto.Message)
- func (*FFMultipart_Request) XXX_OneofWrappers() []interface{}
- func (m *FFMultipart_Request) XXX_Size() int
- func (m *FFMultipart_Request) XXX_Unmarshal(b []byte) error
- type FFMultipart_Request_Port
- type FFMultipart_Request_PortDesc
- type FFPacketIn
- func (p *FFPacketIn) Bytes() ([]byte, error)
- func (p *FFPacketIn) DataLen() uint32
- func (*FFPacketIn) Descriptor() ([]byte, []int)
- func (m *FFPacketIn) GetData() []byte
- func (m *FFPacketIn) GetDpId() uint64
- func (m *FFPacketIn) GetPortNo() uint32
- func (*FFPacketIn) ProtoMessage()
- func (m *FFPacketIn) Reset()
- func (m *FFPacketIn) String() string
- func (p *FFPacketIn) Type() uint16
- func (m *FFPacketIn) XXX_DiscardUnknown()
- func (m *FFPacketIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPacketIn) XXX_Merge(src proto.Message)
- func (m *FFPacketIn) XXX_Size() int
- func (m *FFPacketIn) XXX_Unmarshal(b []byte) error
- type FFPacketOut
- func (p *FFPacketOut) Bytes() ([]byte, error)
- func (p *FFPacketOut) DataLen() uint32
- func (*FFPacketOut) Descriptor() ([]byte, []int)
- func (m *FFPacketOut) GetData() []byte
- func (m *FFPacketOut) GetDpId() uint64
- func (m *FFPacketOut) GetPortNo() uint32
- func (*FFPacketOut) ProtoMessage()
- func (m *FFPacketOut) Reset()
- func (m *FFPacketOut) String() string
- func (p *FFPacketOut) Type() uint16
- func (m *FFPacketOut) XXX_DiscardUnknown()
- func (m *FFPacketOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPacketOut) XXX_Merge(src proto.Message)
- func (m *FFPacketOut) XXX_Size() int
- func (m *FFPacketOut) XXX_Unmarshal(b []byte) error
- type FFPort
- func (*FFPort) Descriptor() ([]byte, []int)
- func (m *FFPort) GetAdvertised() uint32
- func (m *FFPort) GetConfig() uint32
- func (m *FFPort) GetCurr() uint32
- func (m *FFPort) GetCurrSpeed() uint32
- func (m *FFPort) GetHwAddr() string
- func (m *FFPort) GetMaxSpeed() uint32
- func (m *FFPort) GetName() string
- func (m *FFPort) GetPortNo() uint32
- func (m *FFPort) GetState() uint32
- func (*FFPort) ProtoMessage()
- func (m *FFPort) Reset()
- func (m *FFPort) String() string
- func (m *FFPort) XXX_DiscardUnknown()
- func (m *FFPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPort) XXX_Merge(src proto.Message)
- func (m *FFPort) XXX_Size() int
- func (m *FFPort) XXX_Unmarshal(b []byte) error
- type FFPortMod
- func (p *FFPortMod) Bytes() ([]byte, error)
- func (*FFPortMod) Descriptor() ([]byte, []int)
- func (m *FFPortMod) GetDpId() uint64
- func (m *FFPortMod) GetHwAddr() string
- func (m *FFPortMod) GetPortNo() uint32
- func (m *FFPortMod) GetStatus() PortStatus_Status
- func (*FFPortMod) ProtoMessage()
- func (m *FFPortMod) Reset()
- func (m *FFPortMod) String() string
- func (*FFPortMod) Type() uint16
- func (m *FFPortMod) XXX_DiscardUnknown()
- func (m *FFPortMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPortMod) XXX_Merge(src proto.Message)
- func (m *FFPortMod) XXX_Size() int
- func (m *FFPortMod) XXX_Unmarshal(b []byte) error
- type FFPortStats
- func (*FFPortStats) Descriptor() ([]byte, []int)
- func (m *FFPortStats) GetPortNo() uint32
- func (m *FFPortStats) GetValues() map[string]uint64
- func (*FFPortStats) ProtoMessage()
- func (m *FFPortStats) Reset()
- func (m *FFPortStats) String() string
- func (m *FFPortStats) XXX_DiscardUnknown()
- func (m *FFPortStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPortStats) XXX_Merge(src proto.Message)
- func (m *FFPortStats) XXX_Size() int
- func (m *FFPortStats) XXX_Unmarshal(b []byte) error
- type FFPortStatus
- func (p *FFPortStatus) Bytes() ([]byte, error)
- func (*FFPortStatus) Descriptor() ([]byte, []int)
- func (m *FFPortStatus) GetDpId() uint64
- func (m *FFPortStatus) GetPort() *FFPort
- func (m *FFPortStatus) GetReason() FFPortStatus_Reason
- func (*FFPortStatus) ProtoMessage()
- func (m *FFPortStatus) Reset()
- func (m *FFPortStatus) String() string
- func (*FFPortStatus) Type() uint16
- func (m *FFPortStatus) XXX_DiscardUnknown()
- func (m *FFPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FFPortStatus) XXX_Merge(src proto.Message)
- func (m *FFPortStatus) XXX_Size() int
- func (m *FFPortStatus) XXX_Unmarshal(b []byte) error
- type FFPortStatus_Reason
- type FlowMod
- func (f *FlowMod) Bytes() ([]byte, error)
- func (*FlowMod) Descriptor() ([]byte, []int)
- func (m *FlowMod) GetAcl() *PolicyACLFlow
- func (m *FlowMod) GetBridging() *BridgingFlow
- func (m *FlowMod) GetCmd() FlowMod_Cmd
- func (m *FlowMod) GetEntry() isFlowMod_Entry
- func (m *FlowMod) GetMpls1() *MPLSFlow
- func (m *FlowMod) GetReId() string
- func (m *FlowMod) GetTable() FlowMod_Table
- func (m *FlowMod) GetTermMac() *TerminationMacFlow
- func (m *FlowMod) GetUnicast() *UnicastRoutingFlow
- func (m *FlowMod) GetVlan() *VLANFlow
- func (*FlowMod) ProtoMessage()
- func (m *FlowMod) Reset()
- func (m *FlowMod) String() string
- func (f *FlowMod) Type() uint16
- func (m *FlowMod) XXX_DiscardUnknown()
- func (m *FlowMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlowMod) XXX_Merge(src proto.Message)
- func (*FlowMod) XXX_OneofWrappers() []interface{}
- func (m *FlowMod) XXX_Size() int
- func (m *FlowMod) XXX_Unmarshal(b []byte) error
- type FlowMod_Acl
- type FlowMod_Bridging
- type FlowMod_Cmd
- type FlowMod_Mpls1
- type FlowMod_Table
- type FlowMod_TermMac
- type FlowMod_Unicast
- type FlowMod_Vlan
- type GroupMod
- func (g *GroupMod) Bytes() ([]byte, error)
- func (*GroupMod) Descriptor() ([]byte, []int)
- func (m *GroupMod) GetCmd() GroupMod_Cmd
- func (m *GroupMod) GetEntry() isGroupMod_Entry
- func (m *GroupMod) GetGType() GroupMod_GType
- func (m *GroupMod) GetL2Iface() *L2InterfaceGroup
- func (m *GroupMod) GetL3Unicast() *L3UnicastGroup
- func (m *GroupMod) GetMplsIface() *MPLSInterfaceGroup
- func (m *GroupMod) GetMplsLabel() *MPLSLabelGroup
- func (m *GroupMod) GetReId() string
- func (*GroupMod) ProtoMessage()
- func (m *GroupMod) Reset()
- func (m *GroupMod) String() string
- func (g *GroupMod) Type() uint16
- func (m *GroupMod) XXX_DiscardUnknown()
- func (m *GroupMod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupMod) XXX_Merge(src proto.Message)
- func (*GroupMod) XXX_OneofWrappers() []interface{}
- func (m *GroupMod) XXX_Size() int
- func (m *GroupMod) XXX_Unmarshal(b []byte) error
- type GroupMod_Cmd
- type GroupMod_GType
- type GroupMod_L2Iface
- type GroupMod_L3Unicast
- type GroupMod_MplsIface
- type GroupMod_MplsLabel
- type HardwareAddrType
- type Hello
- func (h *Hello) Bytes() ([]byte, error)
- func (*Hello) Descriptor() ([]byte, []int)
- func (m *Hello) GetReId() string
- func (*Hello) ProtoMessage()
- func (m *Hello) Reset()
- func (m *Hello) String() string
- func (h *Hello) Type() uint16
- func (m *Hello) XXX_DiscardUnknown()
- func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hello) XXX_Merge(src proto.Message)
- func (m *Hello) XXX_Size() int
- func (m *Hello) XXX_Unmarshal(b []byte) error
- type L2Addr
- func (*L2Addr) Descriptor() ([]byte, []int)
- func (m *L2Addr) GetHwAddr() string
- func (m *L2Addr) GetIfname() string
- func (m *L2Addr) GetPortId() uint32
- func (m *L2Addr) GetReason() L2Addr_Reason
- func (m *L2Addr) GetVlanVid() uint32
- func (*L2Addr) ProtoMessage()
- func (m *L2Addr) Reset()
- func (m *L2Addr) String() string
- func (m *L2Addr) XXX_DiscardUnknown()
- func (m *L2Addr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *L2Addr) XXX_Merge(src proto.Message)
- func (m *L2Addr) XXX_Size() int
- func (m *L2Addr) XXX_Unmarshal(b []byte) error
- type L2AddrStatus
- func (a *L2AddrStatus) Bytes() ([]byte, error)
- func (*L2AddrStatus) Descriptor() ([]byte, []int)
- func (m *L2AddrStatus) GetAddrs() []*L2Addr
- func (m *L2AddrStatus) GetReId() string
- func (*L2AddrStatus) ProtoMessage()
- func (m *L2AddrStatus) Reset()
- func (m *L2AddrStatus) String() string
- func (*L2AddrStatus) Type() uint16
- func (m *L2AddrStatus) XXX_DiscardUnknown()
- func (m *L2AddrStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *L2AddrStatus) XXX_Merge(src proto.Message)
- func (m *L2AddrStatus) XXX_Size() int
- func (m *L2AddrStatus) XXX_Unmarshal(b []byte) error
- type L2Addr_Reason
- type L2InterfaceGroup
- func (*L2InterfaceGroup) Descriptor() ([]byte, []int)
- func (g *L2InterfaceGroup) GetAdjustedVlanVid() uint16
- func (m *L2InterfaceGroup) GetHwAddr() string
- func (m *L2InterfaceGroup) GetMaster() uint32
- func (m *L2InterfaceGroup) GetMtu() uint32
- func (m *L2InterfaceGroup) GetPortId() uint32
- func (m *L2InterfaceGroup) GetVlanTranslation() bool
- func (m *L2InterfaceGroup) GetVlanVid() uint32
- func (m *L2InterfaceGroup) GetVrf() uint32
- func (*L2InterfaceGroup) ProtoMessage()
- func (m *L2InterfaceGroup) Reset()
- func (m *L2InterfaceGroup) String() string
- func (g *L2InterfaceGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
- func (m *L2InterfaceGroup) XXX_DiscardUnknown()
- func (m *L2InterfaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *L2InterfaceGroup) XXX_Merge(src proto.Message)
- func (m *L2InterfaceGroup) XXX_Size() int
- func (m *L2InterfaceGroup) XXX_Unmarshal(b []byte) error
- type L3UnicastGroup
- func (*L3UnicastGroup) Descriptor() ([]byte, []int)
- func (g *L3UnicastGroup) GetAdjustedVlanVid() uint16
- func (m *L3UnicastGroup) GetEthDst() string
- func (g *L3UnicastGroup) GetEthDstHwAddr() net.HardwareAddr
- func (m *L3UnicastGroup) GetEthSrc() string
- func (g *L3UnicastGroup) GetEthSrcHwAddr() net.HardwareAddr
- func (m *L3UnicastGroup) GetNeId() uint32
- func (m *L3UnicastGroup) GetPhyPortId() uint32
- func (m *L3UnicastGroup) GetPortId() uint32
- func (m *L3UnicastGroup) GetTunLocal() string
- func (g *L3UnicastGroup) GetTunLocalIP() net.IP
- func (m *L3UnicastGroup) GetTunRemote() string
- func (g *L3UnicastGroup) GetTunRemoteIP() net.IP
- func (m *L3UnicastGroup) GetTunType() TunnelType_Type
- func (m *L3UnicastGroup) GetVlanVid() uint32
- func (*L3UnicastGroup) ProtoMessage()
- func (m *L3UnicastGroup) Reset()
- func (g *L3UnicastGroup) SetTunnel(tunType TunnelType_Type, remote, local net.IP)
- func (m *L3UnicastGroup) String() string
- func (g *L3UnicastGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
- func (m *L3UnicastGroup) XXX_DiscardUnknown()
- func (m *L3UnicastGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *L3UnicastGroup) XXX_Merge(src proto.Message)
- func (m *L3UnicastGroup) XXX_Size() int
- func (m *L3UnicastGroup) XXX_Unmarshal(b []byte) error
- type LinkType
- func (*LinkType) Descriptor() ([]byte, []int)
- func (*LinkType) ProtoMessage()
- func (m *LinkType) Reset()
- func (m *LinkType) String() string
- func (m *LinkType) XXX_DiscardUnknown()
- func (m *LinkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinkType) XXX_Merge(src proto.Message)
- func (m *LinkType) XXX_Size() int
- func (m *LinkType) XXX_Unmarshal(b []byte) error
- type LinkType_Type
- type MPLSFlow
- func (*MPLSFlow) Descriptor() ([]byte, []int)
- func (m *MPLSFlow) GetActions() []*MPLSFlow_Action
- func (m *MPLSFlow) GetGId() uint32
- func (m *MPLSFlow) GetGType() GroupMod_GType
- func (m *MPLSFlow) GetGotoTable() uint32
- func (m *MPLSFlow) GetMatch() *MPLSFlow_Match
- func (*MPLSFlow) ProtoMessage()
- func (m *MPLSFlow) Reset()
- func (m *MPLSFlow) String() string
- func (f *MPLSFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *MPLSFlow) XXX_DiscardUnknown()
- func (m *MPLSFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MPLSFlow) XXX_Merge(src proto.Message)
- func (m *MPLSFlow) XXX_Size() int
- func (m *MPLSFlow) XXX_Unmarshal(b []byte) error
- type MPLSFlow_Action
- func (*MPLSFlow_Action) Descriptor() ([]byte, []int)
- func (m *MPLSFlow_Action) GetName() MPLSFlow_Action_Name
- func (m *MPLSFlow_Action) GetValue() uint32
- func (*MPLSFlow_Action) ProtoMessage()
- func (m *MPLSFlow_Action) Reset()
- func (m *MPLSFlow_Action) String() string
- func (m *MPLSFlow_Action) XXX_DiscardUnknown()
- func (m *MPLSFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MPLSFlow_Action) XXX_Merge(src proto.Message)
- func (m *MPLSFlow_Action) XXX_Size() int
- func (m *MPLSFlow_Action) XXX_Unmarshal(b []byte) error
- type MPLSFlow_Action_Name
- type MPLSFlow_Match
- func (*MPLSFlow_Match) Descriptor() ([]byte, []int)
- func (m *MPLSFlow_Match) GetBos() bool
- func (m *MPLSFlow_Match) GetLabel() uint32
- func (*MPLSFlow_Match) ProtoMessage()
- func (m *MPLSFlow_Match) Reset()
- func (m *MPLSFlow_Match) String() string
- func (m *MPLSFlow_Match) XXX_DiscardUnknown()
- func (m *MPLSFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MPLSFlow_Match) XXX_Merge(src proto.Message)
- func (m *MPLSFlow_Match) XXX_Size() int
- func (m *MPLSFlow_Match) XXX_Unmarshal(b []byte) error
- type MPLSInterfaceGroup
- func (*MPLSInterfaceGroup) Descriptor() ([]byte, []int)
- func (m *MPLSInterfaceGroup) GetEthDst() string
- func (m *MPLSInterfaceGroup) GetEthSrc() string
- func (m *MPLSInterfaceGroup) GetNeId() uint32
- func (m *MPLSInterfaceGroup) GetPortId() uint32
- func (m *MPLSInterfaceGroup) GetVlanVid() uint32
- func (*MPLSInterfaceGroup) ProtoMessage()
- func (m *MPLSInterfaceGroup) Reset()
- func (m *MPLSInterfaceGroup) String() string
- func (g *MPLSInterfaceGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
- func (m *MPLSInterfaceGroup) XXX_DiscardUnknown()
- func (m *MPLSInterfaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MPLSInterfaceGroup) XXX_Merge(src proto.Message)
- func (m *MPLSInterfaceGroup) XXX_Size() int
- func (m *MPLSInterfaceGroup) XXX_Unmarshal(b []byte) error
- type MPLSLabelGroup
- func (*MPLSLabelGroup) Descriptor() ([]byte, []int)
- func (m *MPLSLabelGroup) GetDstId() uint32
- func (m *MPLSLabelGroup) GetGType() GroupMod_GType
- func (m *MPLSLabelGroup) GetNeId() uint32
- func (m *MPLSLabelGroup) GetNewDstId() uint32
- func (m *MPLSLabelGroup) GetNewLabel() uint32
- func (*MPLSLabelGroup) ProtoMessage()
- func (m *MPLSLabelGroup) Reset()
- func (m *MPLSLabelGroup) String() string
- func (g *MPLSLabelGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
- func (m *MPLSLabelGroup) XXX_DiscardUnknown()
- func (m *MPLSLabelGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MPLSLabelGroup) XXX_Merge(src proto.Message)
- func (m *MPLSLabelGroup) XXX_Size() int
- func (m *MPLSLabelGroup) XXX_Unmarshal(b []byte) error
- type PolicyACLFlow
- func (*PolicyACLFlow) Descriptor() ([]byte, []int)
- func (m *PolicyACLFlow) GetAction() *PolicyACLFlow_Action
- func (m *PolicyACLFlow) GetMatch() *PolicyACLFlow_Match
- func (*PolicyACLFlow) ProtoMessage()
- func (m *PolicyACLFlow) Reset()
- func (m *PolicyACLFlow) String() string
- func (f *PolicyACLFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *PolicyACLFlow) XXX_DiscardUnknown()
- func (m *PolicyACLFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyACLFlow) XXX_Merge(src proto.Message)
- func (m *PolicyACLFlow) XXX_Size() int
- func (m *PolicyACLFlow) XXX_Unmarshal(b []byte) error
- type PolicyACLFlow_Action
- func (*PolicyACLFlow_Action) Descriptor() ([]byte, []int)
- func (m *PolicyACLFlow_Action) GetName() PolicyACLFlow_Action_Name
- func (m *PolicyACLFlow_Action) GetValue() uint32
- func (*PolicyACLFlow_Action) ProtoMessage()
- func (m *PolicyACLFlow_Action) Reset()
- func (m *PolicyACLFlow_Action) String() string
- func (m *PolicyACLFlow_Action) XXX_DiscardUnknown()
- func (m *PolicyACLFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyACLFlow_Action) XXX_Merge(src proto.Message)
- func (m *PolicyACLFlow_Action) XXX_Size() int
- func (m *PolicyACLFlow_Action) XXX_Unmarshal(b []byte) error
- type PolicyACLFlow_Action_Name
- type PolicyACLFlow_Match
- func (*PolicyACLFlow_Match) Descriptor() ([]byte, []int)
- func (m *PolicyACLFlow_Match) GetEthDst() string
- func (m *PolicyACLFlow_Match) GetEthType() uint32
- func (m *PolicyACLFlow_Match) GetInPort() uint32
- func (m *PolicyACLFlow_Match) GetIpDst() string
- func (m *PolicyACLFlow_Match) GetIpProto() uint32
- func (m *PolicyACLFlow_Match) GetTpDst() uint32
- func (m *PolicyACLFlow_Match) GetTpSrc() uint32
- func (m *PolicyACLFlow_Match) GetVrf() uint32
- func (*PolicyACLFlow_Match) ProtoMessage()
- func (m *PolicyACLFlow_Match) Reset()
- func (m *PolicyACLFlow_Match) String() string
- func (m *PolicyACLFlow_Match) XXX_DiscardUnknown()
- func (m *PolicyACLFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyACLFlow_Match) XXX_Merge(src proto.Message)
- func (m *PolicyACLFlow_Match) XXX_Size() int
- func (m *PolicyACLFlow_Match) XXX_Unmarshal(b []byte) error
- type PortConfig
- func (p *PortConfig) Bytes() ([]byte, error)
- func (*PortConfig) Descriptor() ([]byte, []int)
- func (m *PortConfig) GetCmd() PortConfig_Cmd
- func (m *PortConfig) GetDpPort() uint32
- func (m *PortConfig) GetIfname() string
- func (m *PortConfig) GetLink() string
- func (m *PortConfig) GetPortId() uint32
- func (m *PortConfig) GetReId() string
- func (m *PortConfig) GetStatus() PortStatus_Status
- func (*PortConfig) ProtoMessage()
- func (m *PortConfig) Reset()
- func (m *PortConfig) String() string
- func (*PortConfig) Type() uint16
- func (m *PortConfig) XXX_DiscardUnknown()
- func (m *PortConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PortConfig) XXX_Merge(src proto.Message)
- func (m *PortConfig) XXX_Size() int
- func (m *PortConfig) XXX_Unmarshal(b []byte) error
- type PortConfig_Cmd
- type PortStatus
- func (p *PortStatus) Bytes() ([]byte, error)
- func (*PortStatus) Descriptor() ([]byte, []int)
- func (m *PortStatus) GetIfname() string
- func (m *PortStatus) GetPortId() uint32
- func (m *PortStatus) GetReId() string
- func (m *PortStatus) GetStatus() PortStatus_Status
- func (*PortStatus) ProtoMessage()
- func (m *PortStatus) Reset()
- func (m *PortStatus) String() string
- func (*PortStatus) Type() uint16
- func (m *PortStatus) XXX_DiscardUnknown()
- func (m *PortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PortStatus) XXX_Merge(src proto.Message)
- func (m *PortStatus) XXX_Size() int
- func (m *PortStatus) XXX_Unmarshal(b []byte) error
- type PortStatus_Status
- type TerminationMacFlow
- func (*TerminationMacFlow) Descriptor() ([]byte, []int)
- func (m *TerminationMacFlow) GetActions() []*TerminationMacFlow_Action
- func (m *TerminationMacFlow) GetGotoTable() uint32
- func (m *TerminationMacFlow) GetMatch() *TerminationMacFlow_Match
- func (*TerminationMacFlow) ProtoMessage()
- func (m *TerminationMacFlow) Reset()
- func (m *TerminationMacFlow) String() string
- func (f *TerminationMacFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *TerminationMacFlow) XXX_DiscardUnknown()
- func (m *TerminationMacFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TerminationMacFlow) XXX_Merge(src proto.Message)
- func (m *TerminationMacFlow) XXX_Size() int
- func (m *TerminationMacFlow) XXX_Unmarshal(b []byte) error
- type TerminationMacFlow_Action
- func (*TerminationMacFlow_Action) Descriptor() ([]byte, []int)
- func (m *TerminationMacFlow_Action) GetName() TerminationMacFlow_Action_Name
- func (m *TerminationMacFlow_Action) GetValue() uint32
- func (*TerminationMacFlow_Action) ProtoMessage()
- func (m *TerminationMacFlow_Action) Reset()
- func (m *TerminationMacFlow_Action) String() string
- func (m *TerminationMacFlow_Action) XXX_DiscardUnknown()
- func (m *TerminationMacFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TerminationMacFlow_Action) XXX_Merge(src proto.Message)
- func (m *TerminationMacFlow_Action) XXX_Size() int
- func (m *TerminationMacFlow_Action) XXX_Unmarshal(b []byte) error
- type TerminationMacFlow_Action_Name
- type TerminationMacFlow_Match
- func (*TerminationMacFlow_Match) Descriptor() ([]byte, []int)
- func (m *TerminationMacFlow_Match) GetEthDst() string
- func (m *TerminationMacFlow_Match) GetEthType() uint32
- func (m *TerminationMacFlow_Match) GetInPort() uint32
- func (m *TerminationMacFlow_Match) GetVlanVid() uint32
- func (*TerminationMacFlow_Match) ProtoMessage()
- func (m *TerminationMacFlow_Match) Reset()
- func (m *TerminationMacFlow_Match) String() string
- func (m *TerminationMacFlow_Match) XXX_DiscardUnknown()
- func (m *TerminationMacFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TerminationMacFlow_Match) XXX_Merge(src proto.Message)
- func (m *TerminationMacFlow_Match) XXX_Size() int
- func (m *TerminationMacFlow_Match) XXX_Unmarshal(b []byte) error
- type TunnelType
- func (*TunnelType) Descriptor() ([]byte, []int)
- func (*TunnelType) ProtoMessage()
- func (m *TunnelType) Reset()
- func (m *TunnelType) String() string
- func (m *TunnelType) XXX_DiscardUnknown()
- func (m *TunnelType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TunnelType) XXX_Merge(src proto.Message)
- func (m *TunnelType) XXX_Size() int
- func (m *TunnelType) XXX_Unmarshal(b []byte) error
- type TunnelType_Type
- type UnicastRoutingFlow
- func (*UnicastRoutingFlow) Descriptor() ([]byte, []int)
- func (m *UnicastRoutingFlow) GetAction() *UnicastRoutingFlow_Action
- func (m *UnicastRoutingFlow) GetGId() uint32
- func (m *UnicastRoutingFlow) GetGType() GroupMod_GType
- func (m *UnicastRoutingFlow) GetMatch() *UnicastRoutingFlow_Match
- func (*UnicastRoutingFlow) ProtoMessage()
- func (m *UnicastRoutingFlow) Reset()
- func (m *UnicastRoutingFlow) String() string
- func (f *UnicastRoutingFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *UnicastRoutingFlow) XXX_DiscardUnknown()
- func (m *UnicastRoutingFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnicastRoutingFlow) XXX_Merge(src proto.Message)
- func (m *UnicastRoutingFlow) XXX_Size() int
- func (m *UnicastRoutingFlow) XXX_Unmarshal(b []byte) error
- type UnicastRoutingFlow_Action
- func (*UnicastRoutingFlow_Action) Descriptor() ([]byte, []int)
- func (m *UnicastRoutingFlow_Action) GetName() UnicastRoutingFlow_Action_Name
- func (m *UnicastRoutingFlow_Action) GetValue() uint32
- func (*UnicastRoutingFlow_Action) ProtoMessage()
- func (m *UnicastRoutingFlow_Action) Reset()
- func (m *UnicastRoutingFlow_Action) String() string
- func (m *UnicastRoutingFlow_Action) XXX_DiscardUnknown()
- func (m *UnicastRoutingFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnicastRoutingFlow_Action) XXX_Merge(src proto.Message)
- func (m *UnicastRoutingFlow_Action) XXX_Size() int
- func (m *UnicastRoutingFlow_Action) XXX_Unmarshal(b []byte) error
- type UnicastRoutingFlow_Action_Name
- type UnicastRoutingFlow_Match
- func (*UnicastRoutingFlow_Match) Descriptor() ([]byte, []int)
- func (m *UnicastRoutingFlow_Match) GetIpDst() string
- func (m *UnicastRoutingFlow_Match) GetOrigin() UnicastRoutingFlow_Origin
- func (m *UnicastRoutingFlow_Match) GetVrf() uint32
- func (*UnicastRoutingFlow_Match) ProtoMessage()
- func (m *UnicastRoutingFlow_Match) Reset()
- func (m *UnicastRoutingFlow_Match) String() string
- func (m *UnicastRoutingFlow_Match) XXX_DiscardUnknown()
- func (m *UnicastRoutingFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnicastRoutingFlow_Match) XXX_Merge(src proto.Message)
- func (m *UnicastRoutingFlow_Match) XXX_Size() int
- func (m *UnicastRoutingFlow_Match) XXX_Unmarshal(b []byte) error
- type UnicastRoutingFlow_Origin
- type VLANFlow
- func (f VLANFlow) BridgeVlanInfoFlags() (BridgeVlanInfo_Flags, bool)
- func (*VLANFlow) Descriptor() ([]byte, []int)
- func (f VLANFlow) GetAction(name VLANFlow_Action_Name) *VLANFlow_Action
- func (m *VLANFlow) GetActions() []*VLANFlow_Action
- func (m *VLANFlow) GetGotoTable() uint32
- func (m *VLANFlow) GetMatch() *VLANFlow_Match
- func (*VLANFlow) ProtoMessage()
- func (m *VLANFlow) Reset()
- func (m *VLANFlow) String() string
- func (f *VLANFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
- func (m *VLANFlow) XXX_DiscardUnknown()
- func (m *VLANFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VLANFlow) XXX_Merge(src proto.Message)
- func (m *VLANFlow) XXX_Size() int
- func (m *VLANFlow) XXX_Unmarshal(b []byte) error
- type VLANFlow_Action
- func (*VLANFlow_Action) Descriptor() ([]byte, []int)
- func (m *VLANFlow_Action) GetName() VLANFlow_Action_Name
- func (m *VLANFlow_Action) GetValue() uint32
- func (*VLANFlow_Action) ProtoMessage()
- func (m *VLANFlow_Action) Reset()
- func (m *VLANFlow_Action) String() string
- func (m *VLANFlow_Action) XXX_DiscardUnknown()
- func (m *VLANFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VLANFlow_Action) XXX_Merge(src proto.Message)
- func (m *VLANFlow_Action) XXX_Size() int
- func (m *VLANFlow_Action) XXX_Unmarshal(b []byte) error
- type VLANFlow_Action_Name
- type VLANFlow_Match
- func (*VLANFlow_Match) Descriptor() ([]byte, []int)
- func (m *VLANFlow_Match) GetInPort() uint32
- func (m *VLANFlow_Match) GetVid() uint32
- func (m *VLANFlow_Match) GetVidMask() uint32
- func (*VLANFlow_Match) ProtoMessage()
- func (m *VLANFlow_Match) Reset()
- func (m *VLANFlow_Match) String() string
- func (m *VLANFlow_Match) XXX_DiscardUnknown()
- func (m *VLANFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VLANFlow_Match) XXX_Merge(src proto.Message)
- func (m *VLANFlow_Match) XXX_Size() int
- func (m *VLANFlow_Match) XXX_Unmarshal(b []byte) error
Constants ¶
const ( ETHTYPE_IPV4 = unix.ETH_P_IP // 0x0800 ETHTYPE_IPV6 = unix.ETH_P_IPV6 // 0x86dd ETHTYPE_MPLS = unix.ETH_P_MPLS_UC // 0x8847 ETHTYPE_LACP = unix.ETH_P_SLOW // 0x8809 ETHTYPE_ARP = unix.ETH_P_ARP // 0x0806 ETHTYPE_VLAN_Q = unix.ETH_P_8021Q // 0x8100 ETHTYPE_VLAN_AD = unix.ETH_P_8021AD // 0x88a8 )
const ( HWADDR_NONE = "00:00:00:00:00:00" HWADDR_DUMMY = "02:00:00:00:00:00" HWADDR_EXACT_MASK = "ff:ff:ff:ff:ff:ff" HWADDR_MULTICAST4 = "01:00:5e:00:00:00" HWADDR_MULTICAST4_MASK = "ff:ff:ff:80:00:00" HWADDR_MULTICAST4_MATCH = HWADDR_MULTICAST4 + "/" + HWADDR_MULTICAST4_MASK HWADDR_MULTICAST6 = "33:33:00:00:00:00" HWADDR_MULTICAST6_MASK = "ff:ff:00:00:00:00" HWADDR_MULTICAST6_MATCH = HWADDR_MULTICAST6 + "/" + HWADDR_MULTICAST6_MASK HWADDR_ISIS_LEVEL1 = "01:80:C2:00:00:14" HWADDR_ISIS_LEVEL2 = "01:80:C2:00:00:15" )
const ( OFPVID_UNTAGGED = 0x0001 OFPVID_PRESENT = 0x1000 OFPVID_NONE = 0x0000 OFPVID_ABSENT = 0x0000 )
const ( IPPROTO_ICMP4 = unix.IPPROTO_ICMP // 1 IPPROTO_TCP = unix.IPPROTO_TCP // 6 IPPROTO_UDP = unix.IPPROTO_UDP // 17 IPPROTO_ICMP6 = unix.IPPROTO_ICMPV6 // 58 IPPROTO_OSPF = 89 )
const ( TCPPORT_BGP = 179 TCPPORT_LDP = 646 )
const ( MCADDR_ALLHOSTS = "224.0.0.1" MCADDR_ALLROUTERS = "224.0.0.2" MCADDR_OSPF_HELLO = "224.0.0.5" MCADDR_OSPF_ALLDR = "224.0.0.6" // multicast addresses(IPv6) MCADDR6_I_LOCAL = "ff01::/64" // Interface Local MCADDR6_L_LOCAL = "ff02::/64" // Link Local MCADDR6_S_LOCAL = "ff05::/64" // Site Local MCADDR6_L_ALLNODES = "ff02::1" // All Nodes / Link Local MCADDR6_S_ALLNODES = "ff05::1" // All Nodes / Site Local MCADDR6_L_ALLROUTERS = "ff02::2" // All Routers / Link Local MCADDR6_L_ALLOSPF = "ff02::5" // All OSPF Routers / Link Local MCADDR6_L_ALLOSPF_DR = "ff02::6" // All OSPF Routers / Link Local MCADDR6_L_ALLRIP = "ff02::9" // All RIP Routers / Link Local MCADDR6_L_ALLEIGRP = "ff02::A" // All EIGRP Routers / Link Local MCADDR6_L_ALLPIM = "ff02::D" // All PIM Routers / Link Local MCADDR6_L_ALLDHCP = "ff02::1:2" // All DHCP Agents / Link Local MCADDR6_S_ALLDHCP = "ff05::1:3" // All DHCP Servers / Site Local MCADDR6_L_ALLNTP = "ff02::101" // All NTP Servers / Link Local MCADDR6_S_ALLNTP = "ff05::101" // All NTP Servers / Site Local // unicast addresses (IPv6) UCADDR6_L_LOCAL = "fe80::/64" )
const ( PRIORITY_DEFAULT = 0 PRIORITY_NORMAL = 32800 PRIORITY_HIGHEST = 65530 )
const ( MPLSTYPE_NONE = 0x00 MPLSTYPE_VPS = 0x01 MPLSTYPE_UNICAST = 0x08 MPLSTYPE_MULTICAST = 0x10 MPLSTYPE_PHP = 0x20 )
const ( DPPORT_ID_MASK uint32 = 0x0000ffff DPPORT_VRF_MASK uint32 = 0x00ff0000 DPPORT_VRF_SHIFT uint32 = 16 DPPORT_TYPE_MASK uint32 = 0xff000000 DPPORT_TYPE_SHIFT uint32 = 24 )
const ( HWADDR_TYPE_NONE = HardwareAddrType(0) HWADDR_TYPE_IPV4 = HardwareAddrType(1 << 0) HWADDR_TYPE_IPV6 = HardwareAddrType(1 << 1) HWADDR_TYPE_UNICAST = HardwareAddrType(1 << 2) HWADDR_TYPE_MULTICAST = HardwareAddrType(1 << 3) HWADDR_TYPE_OTHERS = HardwareAddrType(1 << 4) HWADDR_TYPE_UNICAST_IPV4 = HWADDR_TYPE_UNICAST | HWADDR_TYPE_IPV4 HWADDR_TYPE_UNICAST_IPV6 = HWADDR_TYPE_UNICAST | HWADDR_TYPE_IPV6 HWADDR_TYPE_MULTICAST_IPV4 = HWADDR_TYPE_MULTICAST | HWADDR_TYPE_IPV4 HWADDR_TYPE_MULTICAST_IPV6 = HWADDR_TYPE_MULTICAST | HWADDR_TYPE_IPV6 )
const ( FFPORT_STATE_NONE = 0 FFPORT_STATE_LINKDOWN = 0x01 // OFPPS_LINK_DOWN FFPORT_STATE_BLOCKED = 0x02 // OFPPS_BLOCKED FFPORT_STATE_LIVE = 0x04 // OFPPS_LIVE )
FFPort
Variables ¶
var ( HardwareAddrNone = net.HardwareAddr{0x00, 0x00, 0x00, 0x00, 0x00, 0x00} HardwareAddrDummy = net.HardwareAddr{0x02, 0x00, 0x00, 0x00, 0x00, 0x00} HardwareAddrExactMask = net.HardwareAddr{0xff, 0xff, 0xff, 0xff, 0xff, 0xff} HardwareAddrMulticast4 = net.HardwareAddr{0x01, 0x00, 0x5e, 0x00, 0x00, 0x00} HardwareAddrMulticast4Mask = net.HardwareAddr{0xff, 0xff, 0xff, 0x80, 0x00, 0x00} HardwareAddrMulticast6 = net.HardwareAddr{0x33, 0x33, 0x00, 0x00, 0x00, 0x00} HardwareAddrMulticast6Mask = net.HardwareAddr{0xff, 0xff, 0x00, 0x00, 0x00, 0x00} HardwareAddrISISLevel1 = net.HardwareAddr{0x01, 0x80, 0xC2, 0x00, 0x00, 0x14} HardwareAddrISISLevel2 = net.HardwareAddr{0x01, 0x80, 0xC2, 0x00, 0x00, 0x15} )
var BridgeVlanInfo_Flags_name = map[int32]string{
0: "NOP",
1: "MASTER",
2: "PVID",
4: "UNTAGGED",
8: "RANGE_BEGIN",
16: "RANGE_END",
}
var BridgeVlanInfo_Flags_value = map[string]int32{
"NOP": 0,
"MASTER": 1,
"PVID": 2,
"UNTAGGED": 4,
"RANGE_BEGIN": 8,
"RANGE_END": 16,
}
var BridgingFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "OUTPUT",
}
var BridgingFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"OUTPUT": 1,
}
var DpStatus_Status_name = map[int32]string{
0: "NOP",
1: "ENTER",
2: "LEAVE",
}
var DpStatus_Status_value = map[string]int32{
"NOP": 0,
"ENTER": 1,
"LEAVE": 2,
}
var FFHello_DpType_name = map[int32]string{
0: "NOP",
1: "OPENNSL",
}
var FFHello_DpType_value = map[string]int32{
"NOP": 0,
"OPENNSL": 1,
}
var FFM_name = map[int32]string{
0: "UNSPEC",
1: "HELLO",
2: "PORT_STATUS",
3: "PORT_CONFIG",
4: "FLOW_MOD",
5: "GROUP_MOD",
6: "DP_STATUS",
7: "FF_HELLO",
8: "FF_MULTIPART_REQUEST",
9: "FF_MULTIPART_REPLY",
10: "FF_PACKET_IN",
11: "FF_PACKET_OUT",
12: "FF_PORT_STATUS",
13: "FF_PORT_MOD",
14: "L2ADDR_STATUS",
15: "FF_L2ADDR_STATUS",
}
var FFM_value = map[string]int32{
"UNSPEC": 0,
"HELLO": 1,
"PORT_STATUS": 2,
"PORT_CONFIG": 3,
"FLOW_MOD": 4,
"GROUP_MOD": 5,
"DP_STATUS": 6,
"FF_HELLO": 7,
"FF_MULTIPART_REQUEST": 8,
"FF_MULTIPART_REPLY": 9,
"FF_PACKET_IN": 10,
"FF_PACKET_OUT": 11,
"FF_PORT_STATUS": 12,
"FF_PORT_MOD": 13,
"L2ADDR_STATUS": 14,
"FF_L2ADDR_STATUS": 15,
}
var FFMultipart_MpType_name = map[int32]string{
0: "NOP",
1: "FLOW",
2: "AGGREGATE",
3: "TABLE",
4: "PORT",
5: "QUEUE",
6: "GROUP",
7: "GROUP_DESC",
9: "METER",
10: "METER_CONFIG",
11: "METER_FEATURE",
12: "TABLE_FEATURE",
13: "PORT_DESC",
65535: "EXPERIMENTER",
}
var FFMultipart_MpType_value = map[string]int32{
"NOP": 0,
"FLOW": 1,
"AGGREGATE": 2,
"TABLE": 3,
"PORT": 4,
"QUEUE": 5,
"GROUP": 6,
"GROUP_DESC": 7,
"METER": 9,
"METER_CONFIG": 10,
"METER_FEATURE": 11,
"TABLE_FEATURE": 12,
"PORT_DESC": 13,
"EXPERIMENTER": 65535,
}
var FFPortStatus_Reason_name = map[int32]string{
0: "ADD",
1: "DELETE",
2: "MODIFY",
}
var FFPortStatus_Reason_value = map[string]int32{
"ADD": 0,
"DELETE": 1,
"MODIFY": 2,
}
var FlowMod_Cmd_name = map[int32]string{
0: "NOP",
1: "ADD",
2: "MODIFY",
3: "MODIFY_STRICT",
4: "DELETE",
5: "DELETE_STRICT",
}
var FlowMod_Cmd_value = map[string]int32{
"NOP": 0,
"ADD": 1,
"MODIFY": 2,
"MODIFY_STRICT": 3,
"DELETE": 4,
"DELETE_STRICT": 5,
}
var FlowMod_Table_name = map[int32]string{
0: "INGRESS_PORT",
10: "VLAN",
20: "TERM_MAC",
21: "L3_TYPE",
23: "MPLS0",
24: "MPLS1",
25: "MPLS2",
27: "MPLS_L3_TYPE",
28: "MPLS_LABEL_TRUST",
29: "MPLS_TYPE",
30: "UNICAST_ROUTING",
40: "MULTICAST_ROUTING",
50: "BRIDGING",
60: "POLICY_ACL",
}
var FlowMod_Table_value = map[string]int32{
"INGRESS_PORT": 0,
"VLAN": 10,
"TERM_MAC": 20,
"L3_TYPE": 21,
"MPLS0": 23,
"MPLS1": 24,
"MPLS2": 25,
"MPLS_L3_TYPE": 27,
"MPLS_LABEL_TRUST": 28,
"MPLS_TYPE": 29,
"UNICAST_ROUTING": 30,
"MULTICAST_ROUTING": 40,
"BRIDGING": 50,
"POLICY_ACL": 60,
}
var GroupMod_Cmd_name = map[int32]string{
0: "NOP",
1: "ADD",
2: "MODIFY",
3: "DELETE",
}
var GroupMod_Cmd_value = map[string]int32{
"NOP": 0,
"ADD": 1,
"MODIFY": 2,
"DELETE": 3,
}
var GroupMod_GType_name = map[int32]string{
0: "UNSPEC",
1: "L2_INTERFACE",
16: "L2_REWRITE",
32: "L3_UNICAST",
48: "L2_MULTICAST",
64: "L2_FLOOD",
80: "L3_INTERFACE",
96: "L3_MULTICAST",
112: "L3_ECMP",
128: "L2_OVERLAY_FL_UC",
129: "L2_OVERLAY_FL_MC",
130: "L2_OVERLAY_MC_UC",
131: "L2_OVERLAY_MC_MC",
144: "MPLS_INTERFACE",
145: "MPLS_L2_VPN",
146: "MPLS_L3_VPN",
147: "MPLS_TUNNEL1",
148: "MPLS_TUNNEL2",
149: "MPLS_SWAP",
166: "MPLS_FF",
168: "MPLS_ECMP",
176: "L2_UF_INTERFACE",
}
var GroupMod_GType_value = map[string]int32{
"UNSPEC": 0,
"L2_INTERFACE": 1,
"L2_REWRITE": 16,
"L3_UNICAST": 32,
"L2_MULTICAST": 48,
"L2_FLOOD": 64,
"L3_INTERFACE": 80,
"L3_MULTICAST": 96,
"L3_ECMP": 112,
"L2_OVERLAY_FL_UC": 128,
"L2_OVERLAY_FL_MC": 129,
"L2_OVERLAY_MC_UC": 130,
"L2_OVERLAY_MC_MC": 131,
"MPLS_INTERFACE": 144,
"MPLS_L2_VPN": 145,
"MPLS_L3_VPN": 146,
"MPLS_TUNNEL1": 147,
"MPLS_TUNNEL2": 148,
"MPLS_SWAP": 149,
"MPLS_FF": 166,
"MPLS_ECMP": 168,
"L2_UF_INTERFACE": 176,
}
var L2Addr_Reason_name = map[int32]string{
0: "NOP",
1: "ADD",
2: "DELETE",
}
var L2Addr_Reason_value = map[string]int32{
"NOP": 0,
"ADD": 1,
"DELETE": 2,
}
var LinkType_Type_name = map[int32]string{
0: "DEVICE",
1: "IPTUN",
2: "BRIDGE",
3: "BRIDGE_SLAVE",
4: "BOND",
5: "BOND_SLAVE",
}
var LinkType_Type_value = map[string]int32{
"DEVICE": 0,
"IPTUN": 1,
"BRIDGE": 2,
"BRIDGE_SLAVE": 3,
"BOND": 4,
"BOND_SLAVE": 5,
}
var MPLSFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "POP_LABEL",
2: "DEC_TTL",
3: "COPY_TTL_IN",
4: "COPY_TC_IN",
5: "SET_VRF",
6: "SET_MPLS_L2_PORT",
7: "SET_MPLS_TYPE",
8: "SET_TUNNEL_ID",
9: "SET_QOS_INDEX",
10: "SET_TRAFFIC_CLASS",
11: "SET_L3_IN_PORT",
12: "COPY_FIELD",
13: "POP_CW_OR_ACH",
14: "POP_VLAN",
15: "POP_L2_HEADER",
16: "SET_LMEP_ID",
17: "SET_PROTECTION_INDEX",
}
var MPLSFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"POP_LABEL": 1,
"DEC_TTL": 2,
"COPY_TTL_IN": 3,
"COPY_TC_IN": 4,
"SET_VRF": 5,
"SET_MPLS_L2_PORT": 6,
"SET_MPLS_TYPE": 7,
"SET_TUNNEL_ID": 8,
"SET_QOS_INDEX": 9,
"SET_TRAFFIC_CLASS": 10,
"SET_L3_IN_PORT": 11,
"COPY_FIELD": 12,
"POP_CW_OR_ACH": 13,
"POP_VLAN": 14,
"POP_L2_HEADER": 15,
"SET_LMEP_ID": 16,
"SET_PROTECTION_INDEX": 17,
}
var MPLSLabelGroup_subtype = map[GroupMod_GType]uint32{
GroupMod_MPLS_L2_VPN: 1,
GroupMod_MPLS_L3_VPN: 2,
GroupMod_MPLS_TUNNEL1: 3,
GroupMod_MPLS_TUNNEL2: 4,
GroupMod_MPLS_SWAP: 5,
}
MPLS Label Group
var PolicyACLFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "OUTPUT",
}
var PolicyACLFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"OUTPUT": 1,
}
var PortConfig_Cmd_name = map[int32]string{
0: "NOP",
1: "ADD",
2: "MODIFY",
3: "DELETE",
}
var PortConfig_Cmd_value = map[string]int32{
"NOP": 0,
"ADD": 1,
"MODIFY": 2,
"DELETE": 3,
}
var PortStatus_Status_name = map[int32]string{
0: "NOP",
1: "UP",
2: "DOWN",
}
var PortStatus_Status_value = map[string]int32{
"NOP": 0,
"UP": 1,
"DOWN": 2,
}
var TerminationMacFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "OUTPUT",
}
var TerminationMacFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"OUTPUT": 1,
}
var TunnelType_Type_name = map[int32]string{
0: "NOP",
1: "IPIP",
2: "IPV6",
3: "GRE4",
4: "GRE6",
}
var TunnelType_Type_value = map[string]int32{
"NOP": 0,
"IPIP": 1,
"IPV6": 2,
"GRE4": 3,
"GRE6": 4,
}
var UnicastRoutingFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "OUTPUT",
2: "CLEAR_ACTIONS",
3: "DEC_TTL",
}
var UnicastRoutingFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"OUTPUT": 1,
"CLEAR_ACTIONS": 2,
"DEC_TTL": 3,
}
var UnicastRoutingFlow_Origin_name = map[int32]string{
0: "UNSPEC",
1: "NEIGH",
2: "ROUTE",
}
var UnicastRoutingFlow_Origin_value = map[string]int32{
"UNSPEC": 0,
"NEIGH": 1,
"ROUTE": 2,
}
var VLANFlow_Action_Name_name = map[int32]string{
0: "UNSPEC",
1: "SET_VLAN_VID",
2: "SET_VRF",
3: "SET_OVID",
4: "SET_MPLS_TYPE",
5: "PUSH_VLAN",
6: "POP_VLAN",
7: "SET_MPLS_L2_TYPE",
8: "SET_TUNNEL_ID",
9: "SET_VLAN_L2_TYPE",
}
var VLANFlow_Action_Name_value = map[string]int32{
"UNSPEC": 0,
"SET_VLAN_VID": 1,
"SET_VRF": 2,
"SET_OVID": 3,
"SET_MPLS_TYPE": 4,
"PUSH_VLAN": 5,
"POP_VLAN": 6,
"SET_MPLS_L2_TYPE": 7,
"SET_TUNNEL_ID": 8,
"SET_VLAN_L2_TYPE": 9,
}
Functions ¶
func AdjustVlanVID ¶ added in v0.3.1
func AdjustVlanVID16 ¶ added in v0.3.1
func CompMaskedMAC ¶ added in v0.3.1
func CompMaskedMAC(mac, base, mask net.HardwareAddr) bool
func NewDPPortId ¶ added in v0.4.0
func NewDPPortId(port uint32, linkType LinkType_Type) uint32
func NewL2FloodGroupID ¶ added in v0.3.1
L2 Flood Group
func NewL2InterfaceGroupID ¶ added in v0.3.1
L2 Interface Group
func NewL2MulticastGroupID ¶ added in v0.3.1
L2 Multicast Group
func NewL2RewriteGroupID ¶ added in v0.3.1
L2 Rewrite Group
func NewL3InterfaceGroupID ¶ added in v0.3.1
L3 Interface Group Id
func NewL3MulticastGroupID ¶ added in v0.3.1
L3 Multicast Group
func NewL3UnicastGroupID ¶ added in v0.3.1
L3 Unicast Group
func NewMPLSEcmpGroupID ¶ added in v0.3.1
MPLS ECMP Group
func NewMPLSFastFailoverGroupID ¶ added in v0.3.1
MPLS FastFailover Group
func NewMPLSInterfaceGroupID ¶ added in v0.3.1
MPLS Interface Group
func NewMPLSLabelGroupID ¶ added in v0.3.1
func NewMaskedMAC ¶ added in v0.3.1
func NewOverlayGroupID ¶ added in v0.3.1
L2 Overlay Group
func NewUnfilteredInterfaceGroupID ¶ added in v0.3.1
Unfiltered Interface Group
func ParseMaskedMAC ¶ added in v0.3.1
func ParseMaskedMAC(mac string) (net.HardwareAddr, net.HardwareAddr, error)
Types ¶
type BridgeVlanInfo ¶ added in v0.4.0
type BridgeVlanInfo struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BridgeVlanInfo) Descriptor ¶ added in v0.4.0
func (*BridgeVlanInfo) Descriptor() ([]byte, []int)
func (*BridgeVlanInfo) ProtoMessage ¶ added in v0.4.0
func (*BridgeVlanInfo) ProtoMessage()
func (*BridgeVlanInfo) Reset ¶ added in v0.4.0
func (m *BridgeVlanInfo) Reset()
func (*BridgeVlanInfo) String ¶ added in v0.4.0
func (m *BridgeVlanInfo) String() string
func (*BridgeVlanInfo) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *BridgeVlanInfo) XXX_DiscardUnknown()
func (*BridgeVlanInfo) XXX_Marshal ¶ added in v0.4.0
func (m *BridgeVlanInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BridgeVlanInfo) XXX_Merge ¶ added in v0.4.0
func (m *BridgeVlanInfo) XXX_Merge(src proto.Message)
func (*BridgeVlanInfo) XXX_Size ¶ added in v0.4.0
func (m *BridgeVlanInfo) XXX_Size() int
func (*BridgeVlanInfo) XXX_Unmarshal ¶ added in v0.4.0
func (m *BridgeVlanInfo) XXX_Unmarshal(b []byte) error
type BridgeVlanInfo_Flags ¶ added in v0.4.0
type BridgeVlanInfo_Flags int32
const ( BridgeVlanInfo_NOP BridgeVlanInfo_Flags = 0 BridgeVlanInfo_MASTER BridgeVlanInfo_Flags = 1 BridgeVlanInfo_PVID BridgeVlanInfo_Flags = 2 BridgeVlanInfo_UNTAGGED BridgeVlanInfo_Flags = 4 BridgeVlanInfo_RANGE_BEGIN BridgeVlanInfo_Flags = 8 BridgeVlanInfo_RANGE_END BridgeVlanInfo_Flags = 16 )
func (BridgeVlanInfo_Flags) EnumDescriptor ¶ added in v0.4.0
func (BridgeVlanInfo_Flags) EnumDescriptor() ([]byte, []int)
func (BridgeVlanInfo_Flags) String ¶ added in v0.4.0
func (x BridgeVlanInfo_Flags) String() string
type BridgingFlow ¶
type BridgingFlow struct { Match *BridgingFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Action *BridgingFlow_Action `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewBridgingFlow ¶ added in v0.4.0
func NewBridgingFlow(match *BridgingFlow_Match, action *BridgingFlow_Action) *BridgingFlow
func (*BridgingFlow) Descriptor ¶
func (*BridgingFlow) Descriptor() ([]byte, []int)
func (*BridgingFlow) GetAction ¶
func (m *BridgingFlow) GetAction() *BridgingFlow_Action
func (*BridgingFlow) GetMatch ¶
func (m *BridgingFlow) GetMatch() *BridgingFlow_Match
func (*BridgingFlow) ProtoMessage ¶
func (*BridgingFlow) ProtoMessage()
func (*BridgingFlow) Reset ¶
func (m *BridgingFlow) Reset()
func (*BridgingFlow) String ¶
func (m *BridgingFlow) String() string
func (*BridgingFlow) ToMod ¶ added in v0.4.0
func (f *BridgingFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
func (*BridgingFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *BridgingFlow) XXX_DiscardUnknown()
func (*BridgingFlow) XXX_Marshal ¶ added in v0.3.1
func (m *BridgingFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BridgingFlow) XXX_Merge ¶ added in v0.3.1
func (m *BridgingFlow) XXX_Merge(src proto.Message)
func (*BridgingFlow) XXX_Size ¶ added in v0.3.1
func (m *BridgingFlow) XXX_Size() int
func (*BridgingFlow) XXX_Unmarshal ¶ added in v0.3.1
func (m *BridgingFlow) XXX_Unmarshal(b []byte) error
type BridgingFlow_Action ¶
type BridgingFlow_Action struct { Name BridgingFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.BridgingFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewBridgingFlowAction ¶ added in v0.4.0
func NewBridgingFlowAction(key string, value uint32) *BridgingFlow_Action
func (*BridgingFlow_Action) Descriptor ¶
func (*BridgingFlow_Action) Descriptor() ([]byte, []int)
func (*BridgingFlow_Action) GetName ¶
func (m *BridgingFlow_Action) GetName() BridgingFlow_Action_Name
func (*BridgingFlow_Action) GetValue ¶
func (m *BridgingFlow_Action) GetValue() uint32
func (*BridgingFlow_Action) ProtoMessage ¶
func (*BridgingFlow_Action) ProtoMessage()
func (*BridgingFlow_Action) Reset ¶
func (m *BridgingFlow_Action) Reset()
func (*BridgingFlow_Action) String ¶
func (m *BridgingFlow_Action) String() string
func (*BridgingFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *BridgingFlow_Action) XXX_DiscardUnknown()
func (*BridgingFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *BridgingFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BridgingFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *BridgingFlow_Action) XXX_Merge(src proto.Message)
func (*BridgingFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *BridgingFlow_Action) XXX_Size() int
func (*BridgingFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *BridgingFlow_Action) XXX_Unmarshal(b []byte) error
type BridgingFlow_Action_Name ¶
type BridgingFlow_Action_Name int32
const ( BridgingFlow_Action_UNSPEC BridgingFlow_Action_Name = 0 BridgingFlow_Action_OUTPUT BridgingFlow_Action_Name = 1 )
func (BridgingFlow_Action_Name) EnumDescriptor ¶
func (BridgingFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (BridgingFlow_Action_Name) String ¶
func (x BridgingFlow_Action_Name) String() string
type BridgingFlow_Match ¶
type BridgingFlow_Match struct { EthDst string `protobuf:"bytes,1,opt,name=eth_dst,json=ethDst,proto3" json:"eth_dst,omitempty"` VlanVid uint32 `protobuf:"varint,2,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` TunnelId uint32 `protobuf:"varint,3,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewBridgingFlowMatch ¶ added in v0.4.0
func NewBridgingFlowMatch(ethDst string, vid uint16, tunId uint32) *BridgingFlow_Match
func (*BridgingFlow_Match) Descriptor ¶
func (*BridgingFlow_Match) Descriptor() ([]byte, []int)
func (*BridgingFlow_Match) GetEthDst ¶
func (m *BridgingFlow_Match) GetEthDst() string
func (*BridgingFlow_Match) GetTunnelId ¶
func (m *BridgingFlow_Match) GetTunnelId() uint32
func (*BridgingFlow_Match) GetVlanVid ¶
func (m *BridgingFlow_Match) GetVlanVid() uint32
func (*BridgingFlow_Match) ProtoMessage ¶
func (*BridgingFlow_Match) ProtoMessage()
func (*BridgingFlow_Match) Reset ¶
func (m *BridgingFlow_Match) Reset()
func (*BridgingFlow_Match) String ¶
func (m *BridgingFlow_Match) String() string
func (*BridgingFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *BridgingFlow_Match) XXX_DiscardUnknown()
func (*BridgingFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *BridgingFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BridgingFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *BridgingFlow_Match) XXX_Merge(src proto.Message)
func (*BridgingFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *BridgingFlow_Match) XXX_Size() int
func (*BridgingFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *BridgingFlow_Match) XXX_Unmarshal(b []byte) error
type DpStatus ¶
type DpStatus struct { Status DpStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=fibcapi.DpStatus_Status" json:"status,omitempty"` ReId string `protobuf:"bytes,2,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewDpStatusFromBytes ¶
func (*DpStatus) Descriptor ¶
func (*DpStatus) GetStatus ¶
func (m *DpStatus) GetStatus() DpStatus_Status
func (*DpStatus) ProtoMessage ¶
func (*DpStatus) ProtoMessage()
func (*DpStatus) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *DpStatus) XXX_DiscardUnknown()
func (*DpStatus) XXX_Marshal ¶ added in v0.3.1
func (*DpStatus) XXX_Unmarshal ¶ added in v0.3.1
type DpStatus_Status ¶
type DpStatus_Status int32
const ( DpStatus_NOP DpStatus_Status = 0 DpStatus_ENTER DpStatus_Status = 1 DpStatus_LEAVE DpStatus_Status = 2 )
func (DpStatus_Status) EnumDescriptor ¶
func (DpStatus_Status) EnumDescriptor() ([]byte, []int)
func (DpStatus_Status) String ¶
func (x DpStatus_Status) String() string
type FFHello ¶ added in v0.3.1
type FFHello struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` DpType FFHello_DpType `protobuf:"varint,2,opt,name=dp_type,json=dpType,proto3,enum=fibcapi.FFHello_DpType" json:"dp_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FFHello
func NewFFHello ¶ added in v0.3.1
func NewFFHelloFromBytes ¶ added in v0.3.1
func (*FFHello) Descriptor ¶ added in v0.3.1
func (*FFHello) GetDpType ¶ added in v0.3.1
func (m *FFHello) GetDpType() FFHello_DpType
func (*FFHello) ProtoMessage ¶ added in v0.3.1
func (*FFHello) ProtoMessage()
func (*FFHello) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFHello) XXX_DiscardUnknown()
func (*FFHello) XXX_Marshal ¶ added in v0.3.1
func (*FFHello) XXX_Unmarshal ¶ added in v0.3.1
type FFHello_DpType ¶ added in v0.3.1
type FFHello_DpType int32
const ( FFHello_NOP FFHello_DpType = 0 FFHello_OPENNSL FFHello_DpType = 1 )
func (FFHello_DpType) EnumDescriptor ¶ added in v0.3.1
func (FFHello_DpType) EnumDescriptor() ([]byte, []int)
func (FFHello_DpType) String ¶ added in v0.3.1
func (x FFHello_DpType) String() string
type FFL2AddrStatus ¶ added in v0.4.0
type FFL2AddrStatus struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` Addrs []*L2Addr `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FFL2AddrStatus (dp->fibc)
func NewFFL2AddrStatus ¶ added in v0.4.0
func NewFFL2AddrStatus(dpId uint64, addrs []*L2Addr) *FFL2AddrStatus
func NewFFL2AddrStatusFromBytes ¶ added in v0.4.0
func NewFFL2AddrStatusFromBytes(data []byte) (*FFL2AddrStatus, error)
func (*FFL2AddrStatus) Bytes ¶ added in v0.4.0
func (a *FFL2AddrStatus) Bytes() ([]byte, error)
func (*FFL2AddrStatus) Descriptor ¶ added in v0.4.0
func (*FFL2AddrStatus) Descriptor() ([]byte, []int)
func (*FFL2AddrStatus) GetAddrs ¶ added in v0.4.0
func (m *FFL2AddrStatus) GetAddrs() []*L2Addr
func (*FFL2AddrStatus) GetDpId ¶ added in v0.4.0
func (m *FFL2AddrStatus) GetDpId() uint64
func (*FFL2AddrStatus) ProtoMessage ¶ added in v0.4.0
func (*FFL2AddrStatus) ProtoMessage()
func (*FFL2AddrStatus) Reset ¶ added in v0.4.0
func (m *FFL2AddrStatus) Reset()
func (*FFL2AddrStatus) String ¶ added in v0.4.0
func (m *FFL2AddrStatus) String() string
func (*FFL2AddrStatus) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *FFL2AddrStatus) XXX_DiscardUnknown()
func (*FFL2AddrStatus) XXX_Marshal ¶ added in v0.4.0
func (m *FFL2AddrStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFL2AddrStatus) XXX_Merge ¶ added in v0.4.0
func (m *FFL2AddrStatus) XXX_Merge(src proto.Message)
func (*FFL2AddrStatus) XXX_Size ¶ added in v0.4.0
func (m *FFL2AddrStatus) XXX_Size() int
func (*FFL2AddrStatus) XXX_Unmarshal ¶ added in v0.4.0
func (m *FFL2AddrStatus) XXX_Unmarshal(b []byte) error
type FFM ¶
type FFM int32
FF Message types
const ( FFM_UNSPEC FFM = 0 FFM_HELLO FFM = 1 FFM_PORT_STATUS FFM = 2 FFM_PORT_CONFIG FFM = 3 FFM_FLOW_MOD FFM = 4 FFM_GROUP_MOD FFM = 5 FFM_DP_STATUS FFM = 6 FFM_FF_HELLO FFM = 7 FFM_FF_MULTIPART_REQUEST FFM = 8 FFM_FF_MULTIPART_REPLY FFM = 9 FFM_FF_PACKET_IN FFM = 10 FFM_FF_PACKET_OUT FFM = 11 FFM_FF_PORT_STATUS FFM = 12 FFM_FF_PORT_MOD FFM = 13 FFM_L2ADDR_STATUS FFM = 14 FFM_FF_L2ADDR_STATUS FFM = 15 )
func (FFM) EnumDescriptor ¶
type FFMultipart ¶ added in v0.3.1
type FFMultipart struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Multipart
func (*FFMultipart) Descriptor ¶ added in v0.3.1
func (*FFMultipart) Descriptor() ([]byte, []int)
func (*FFMultipart) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart) ProtoMessage()
func (*FFMultipart) Reset ¶ added in v0.3.1
func (m *FFMultipart) Reset()
func (*FFMultipart) String ¶ added in v0.3.1
func (m *FFMultipart) String() string
func (*FFMultipart) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart) XXX_DiscardUnknown()
func (*FFMultipart) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart) XXX_Merge(src proto.Message)
func (*FFMultipart) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart) XXX_Size() int
func (*FFMultipart) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart) XXX_Unmarshal(b []byte) error
type FFMultipart_MpType ¶ added in v0.3.1
type FFMultipart_MpType int32
const ( FFMultipart_NOP FFMultipart_MpType = 0 FFMultipart_FLOW FFMultipart_MpType = 1 FFMultipart_AGGREGATE FFMultipart_MpType = 2 FFMultipart_TABLE FFMultipart_MpType = 3 FFMultipart_PORT FFMultipart_MpType = 4 FFMultipart_QUEUE FFMultipart_MpType = 5 FFMultipart_GROUP FFMultipart_MpType = 6 FFMultipart_GROUP_DESC FFMultipart_MpType = 7 FFMultipart_METER FFMultipart_MpType = 9 FFMultipart_METER_CONFIG FFMultipart_MpType = 10 FFMultipart_METER_FEATURE FFMultipart_MpType = 11 FFMultipart_TABLE_FEATURE FFMultipart_MpType = 12 FFMultipart_PORT_DESC FFMultipart_MpType = 13 FFMultipart_EXPERIMENTER FFMultipart_MpType = 65535 )
func (FFMultipart_MpType) EnumDescriptor ¶ added in v0.3.1
func (FFMultipart_MpType) EnumDescriptor() ([]byte, []int)
func (FFMultipart_MpType) String ¶ added in v0.3.1
func (x FFMultipart_MpType) String() string
type FFMultipart_PortDescReply ¶ added in v0.3.1
type FFMultipart_PortDescReply struct { Internal bool `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"` Port []*FFPort `protobuf:"bytes,2,rep,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FFMultipart_PortDescReply) Descriptor ¶ added in v0.3.1
func (*FFMultipart_PortDescReply) Descriptor() ([]byte, []int)
func (*FFMultipart_PortDescReply) GetInternal ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) GetInternal() bool
func (*FFMultipart_PortDescReply) GetPort ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) GetPort() []*FFPort
func (*FFMultipart_PortDescReply) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_PortDescReply) ProtoMessage()
func (*FFMultipart_PortDescReply) Reset ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) Reset()
func (*FFMultipart_PortDescReply) String ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) String() string
func (*FFMultipart_PortDescReply) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) XXX_DiscardUnknown()
func (*FFMultipart_PortDescReply) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_PortDescReply) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) XXX_Merge(src proto.Message)
func (*FFMultipart_PortDescReply) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) XXX_Size() int
func (*FFMultipart_PortDescReply) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_PortDescReply) XXX_Unmarshal(b []byte) error
type FFMultipart_PortDescRequest ¶ added in v0.3.1
type FFMultipart_PortDescRequest struct { Internal bool `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FFMultipart_PortDescRequest) Descriptor ¶ added in v0.3.1
func (*FFMultipart_PortDescRequest) Descriptor() ([]byte, []int)
func (*FFMultipart_PortDescRequest) GetInternal ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) GetInternal() bool
func (*FFMultipart_PortDescRequest) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_PortDescRequest) ProtoMessage()
func (*FFMultipart_PortDescRequest) Reset ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) Reset()
func (*FFMultipart_PortDescRequest) String ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) String() string
func (*FFMultipart_PortDescRequest) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) XXX_DiscardUnknown()
func (*FFMultipart_PortDescRequest) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_PortDescRequest) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) XXX_Merge(src proto.Message)
func (*FFMultipart_PortDescRequest) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) XXX_Size() int
func (*FFMultipart_PortDescRequest) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_PortDescRequest) XXX_Unmarshal(b []byte) error
type FFMultipart_PortReply ¶ added in v0.3.1
type FFMultipart_PortReply struct { Stats []*FFPortStats `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FFMultipart_PortReply) Descriptor ¶ added in v0.3.1
func (*FFMultipart_PortReply) Descriptor() ([]byte, []int)
func (*FFMultipart_PortReply) GetStats ¶ added in v0.3.1
func (m *FFMultipart_PortReply) GetStats() []*FFPortStats
func (*FFMultipart_PortReply) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_PortReply) ProtoMessage()
func (*FFMultipart_PortReply) Reset ¶ added in v0.3.1
func (m *FFMultipart_PortReply) Reset()
func (*FFMultipart_PortReply) String ¶ added in v0.3.1
func (m *FFMultipart_PortReply) String() string
func (*FFMultipart_PortReply) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_PortReply) XXX_DiscardUnknown()
func (*FFMultipart_PortReply) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_PortReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_PortReply) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_PortReply) XXX_Merge(src proto.Message)
func (*FFMultipart_PortReply) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_PortReply) XXX_Size() int
func (*FFMultipart_PortReply) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_PortReply) XXX_Unmarshal(b []byte) error
type FFMultipart_PortRequest ¶ added in v0.3.1
type FFMultipart_PortRequest struct { PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FFMultipart_PortRequest) Descriptor ¶ added in v0.3.1
func (*FFMultipart_PortRequest) Descriptor() ([]byte, []int)
func (*FFMultipart_PortRequest) GetNames ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) GetNames() []string
func (*FFMultipart_PortRequest) GetPortNo ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) GetPortNo() uint32
func (*FFMultipart_PortRequest) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_PortRequest) ProtoMessage()
func (*FFMultipart_PortRequest) Reset ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) Reset()
func (*FFMultipart_PortRequest) String ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) String() string
func (*FFMultipart_PortRequest) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) XXX_DiscardUnknown()
func (*FFMultipart_PortRequest) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_PortRequest) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) XXX_Merge(src proto.Message)
func (*FFMultipart_PortRequest) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) XXX_Size() int
func (*FFMultipart_PortRequest) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_PortRequest) XXX_Unmarshal(b []byte) error
type FFMultipart_Reply ¶ added in v0.3.1
type FFMultipart_Reply struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` MpType FFMultipart_MpType `protobuf:"varint,2,opt,name=mp_type,json=mpType,proto3,enum=fibcapi.FFMultipart_MpType" json:"mp_type,omitempty"` // Types that are valid to be assigned to Body: // *FFMultipart_Reply_Port // *FFMultipart_Reply_PortDesc Body isFFMultipart_Reply_Body `protobuf_oneof:"body"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewFFMultipart_ReplyFromBytes ¶ added in v0.3.1
func NewFFMultipart_ReplyFromBytes(data []byte) (*FFMultipart_Reply, error)
func NewFFMultipart_Reply_Port ¶ added in v0.3.1
func NewFFMultipart_Reply_Port(dpId uint64, stats []*FFPortStats) *FFMultipart_Reply
func NewMultipart_Reply_PortDesc ¶ added in v0.3.1
func NewMultipart_Reply_PortDesc(dpId uint64, ports []*FFPort, internal bool) *FFMultipart_Reply
func (*FFMultipart_Reply) Bytes ¶ added in v0.3.1
func (m *FFMultipart_Reply) Bytes() ([]byte, error)
func (*FFMultipart_Reply) Descriptor ¶ added in v0.3.1
func (*FFMultipart_Reply) Descriptor() ([]byte, []int)
func (*FFMultipart_Reply) GetBody ¶ added in v0.3.1
func (m *FFMultipart_Reply) GetBody() isFFMultipart_Reply_Body
func (*FFMultipart_Reply) GetDpId ¶ added in v0.3.1
func (m *FFMultipart_Reply) GetDpId() uint64
func (*FFMultipart_Reply) GetMpType ¶ added in v0.3.1
func (m *FFMultipart_Reply) GetMpType() FFMultipart_MpType
func (*FFMultipart_Reply) GetPort ¶ added in v0.3.1
func (m *FFMultipart_Reply) GetPort() *FFMultipart_PortReply
func (*FFMultipart_Reply) GetPortDesc ¶ added in v0.3.1
func (m *FFMultipart_Reply) GetPortDesc() *FFMultipart_PortDescReply
func (*FFMultipart_Reply) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_Reply) ProtoMessage()
func (*FFMultipart_Reply) Reset ¶ added in v0.3.1
func (m *FFMultipart_Reply) Reset()
func (*FFMultipart_Reply) String ¶ added in v0.3.1
func (m *FFMultipart_Reply) String() string
func (*FFMultipart_Reply) Type ¶ added in v0.3.1
func (m *FFMultipart_Reply) Type() uint16
FFMultipart_Reply
func (*FFMultipart_Reply) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_Reply) XXX_DiscardUnknown()
func (*FFMultipart_Reply) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_Reply) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_Reply) XXX_Merge(src proto.Message)
func (*FFMultipart_Reply) XXX_OneofWrappers ¶ added in v0.3.1
func (*FFMultipart_Reply) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*FFMultipart_Reply) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_Reply) XXX_Size() int
func (*FFMultipart_Reply) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_Reply) XXX_Unmarshal(b []byte) error
type FFMultipart_Reply_Port ¶ added in v0.3.1
type FFMultipart_Reply_Port struct {
Port *FFMultipart_PortReply `protobuf:"bytes,3,opt,name=port,proto3,oneof"`
}
type FFMultipart_Reply_PortDesc ¶ added in v0.3.1
type FFMultipart_Reply_PortDesc struct {
PortDesc *FFMultipart_PortDescReply `protobuf:"bytes,4,opt,name=port_desc,json=portDesc,proto3,oneof"`
}
type FFMultipart_Request ¶ added in v0.3.1
type FFMultipart_Request struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` MpType FFMultipart_MpType `protobuf:"varint,2,opt,name=mp_type,json=mpType,proto3,enum=fibcapi.FFMultipart_MpType" json:"mp_type,omitempty"` // Types that are valid to be assigned to Body: // *FFMultipart_Request_Port // *FFMultipart_Request_PortDesc Body isFFMultipart_Request_Body `protobuf_oneof:"body"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewFFMultipart_RequestFromBytes ¶ added in v0.3.1
func NewFFMultipart_RequestFromBytes(data []byte) (*FFMultipart_Request, error)
func NewFFMultipart_Request_Port ¶ added in v0.3.1
func NewFFMultipart_Request_Port(dpId uint64, portNo uint32) *FFMultipart_Request
func NewMultipart_Request_PortDesc ¶ added in v0.3.1
func NewMultipart_Request_PortDesc(dpId uint64, internal bool) *FFMultipart_Request
func (*FFMultipart_Request) Bytes ¶ added in v0.3.1
func (m *FFMultipart_Request) Bytes() ([]byte, error)
func (*FFMultipart_Request) Descriptor ¶ added in v0.3.1
func (*FFMultipart_Request) Descriptor() ([]byte, []int)
func (*FFMultipart_Request) GetBody ¶ added in v0.3.1
func (m *FFMultipart_Request) GetBody() isFFMultipart_Request_Body
func (*FFMultipart_Request) GetDpId ¶ added in v0.3.1
func (m *FFMultipart_Request) GetDpId() uint64
func (*FFMultipart_Request) GetMpType ¶ added in v0.3.1
func (m *FFMultipart_Request) GetMpType() FFMultipart_MpType
func (*FFMultipart_Request) GetPort ¶ added in v0.3.1
func (m *FFMultipart_Request) GetPort() *FFMultipart_PortRequest
func (*FFMultipart_Request) GetPortDesc ¶ added in v0.3.1
func (m *FFMultipart_Request) GetPortDesc() *FFMultipart_PortDescRequest
func (*FFMultipart_Request) ProtoMessage ¶ added in v0.3.1
func (*FFMultipart_Request) ProtoMessage()
func (*FFMultipart_Request) Reset ¶ added in v0.3.1
func (m *FFMultipart_Request) Reset()
func (*FFMultipart_Request) String ¶ added in v0.3.1
func (m *FFMultipart_Request) String() string
func (*FFMultipart_Request) Type ¶ added in v0.3.1
func (m *FFMultipart_Request) Type() uint16
FFultipart_Request
func (*FFMultipart_Request) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFMultipart_Request) XXX_DiscardUnknown()
func (*FFMultipart_Request) XXX_Marshal ¶ added in v0.3.1
func (m *FFMultipart_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFMultipart_Request) XXX_Merge ¶ added in v0.3.1
func (m *FFMultipart_Request) XXX_Merge(src proto.Message)
func (*FFMultipart_Request) XXX_OneofWrappers ¶ added in v0.3.1
func (*FFMultipart_Request) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*FFMultipart_Request) XXX_Size ¶ added in v0.3.1
func (m *FFMultipart_Request) XXX_Size() int
func (*FFMultipart_Request) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFMultipart_Request) XXX_Unmarshal(b []byte) error
type FFMultipart_Request_Port ¶ added in v0.3.1
type FFMultipart_Request_Port struct {
Port *FFMultipart_PortRequest `protobuf:"bytes,3,opt,name=port,proto3,oneof"`
}
type FFMultipart_Request_PortDesc ¶ added in v0.3.1
type FFMultipart_Request_PortDesc struct {
PortDesc *FFMultipart_PortDescRequest `protobuf:"bytes,4,opt,name=port_desc,json=portDesc,proto3,oneof"`
}
type FFPacketIn ¶ added in v0.3.1
type FFPacketIn struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` PortNo uint32 `protobuf:"varint,2,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PacketIn
func NewFFPacketIn ¶ added in v0.3.1
func NewFFPacketIn(dpId uint64, portNo uint32, data []byte) *FFPacketIn
func NewFFPacketInFromBytes ¶ added in v0.3.1
func NewFFPacketInFromBytes(data []byte) (*FFPacketIn, error)
func (*FFPacketIn) Bytes ¶ added in v0.3.1
func (p *FFPacketIn) Bytes() ([]byte, error)
func (*FFPacketIn) DataLen ¶ added in v0.3.1
func (p *FFPacketIn) DataLen() uint32
func (*FFPacketIn) Descriptor ¶ added in v0.3.1
func (*FFPacketIn) Descriptor() ([]byte, []int)
func (*FFPacketIn) GetData ¶ added in v0.3.1
func (m *FFPacketIn) GetData() []byte
func (*FFPacketIn) GetDpId ¶ added in v0.3.1
func (m *FFPacketIn) GetDpId() uint64
func (*FFPacketIn) GetPortNo ¶ added in v0.3.1
func (m *FFPacketIn) GetPortNo() uint32
func (*FFPacketIn) ProtoMessage ¶ added in v0.3.1
func (*FFPacketIn) ProtoMessage()
func (*FFPacketIn) Reset ¶ added in v0.3.1
func (m *FFPacketIn) Reset()
func (*FFPacketIn) String ¶ added in v0.3.1
func (m *FFPacketIn) String() string
func (*FFPacketIn) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPacketIn) XXX_DiscardUnknown()
func (*FFPacketIn) XXX_Marshal ¶ added in v0.3.1
func (m *FFPacketIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFPacketIn) XXX_Merge ¶ added in v0.3.1
func (m *FFPacketIn) XXX_Merge(src proto.Message)
func (*FFPacketIn) XXX_Size ¶ added in v0.3.1
func (m *FFPacketIn) XXX_Size() int
func (*FFPacketIn) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFPacketIn) XXX_Unmarshal(b []byte) error
type FFPacketOut ¶ added in v0.3.1
type FFPacketOut struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` PortNo uint32 `protobuf:"varint,2,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PacketOUT
func NewFFPacketOut ¶ added in v0.3.1
func NewFFPacketOut(dpId uint64, portNo uint32, data []byte) *FFPacketOut
func NewFFPacketOutFromBytes ¶ added in v0.3.1
func NewFFPacketOutFromBytes(data []byte) (*FFPacketOut, error)
func (*FFPacketOut) Bytes ¶ added in v0.3.1
func (p *FFPacketOut) Bytes() ([]byte, error)
func (*FFPacketOut) DataLen ¶ added in v0.3.1
func (p *FFPacketOut) DataLen() uint32
func (*FFPacketOut) Descriptor ¶ added in v0.3.1
func (*FFPacketOut) Descriptor() ([]byte, []int)
func (*FFPacketOut) GetData ¶ added in v0.3.1
func (m *FFPacketOut) GetData() []byte
func (*FFPacketOut) GetDpId ¶ added in v0.3.1
func (m *FFPacketOut) GetDpId() uint64
func (*FFPacketOut) GetPortNo ¶ added in v0.3.1
func (m *FFPacketOut) GetPortNo() uint32
func (*FFPacketOut) ProtoMessage ¶ added in v0.3.1
func (*FFPacketOut) ProtoMessage()
func (*FFPacketOut) Reset ¶ added in v0.3.1
func (m *FFPacketOut) Reset()
func (*FFPacketOut) String ¶ added in v0.3.1
func (m *FFPacketOut) String() string
func (*FFPacketOut) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPacketOut) XXX_DiscardUnknown()
func (*FFPacketOut) XXX_Marshal ¶ added in v0.3.1
func (m *FFPacketOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFPacketOut) XXX_Merge ¶ added in v0.3.1
func (m *FFPacketOut) XXX_Merge(src proto.Message)
func (*FFPacketOut) XXX_Size ¶ added in v0.3.1
func (m *FFPacketOut) XXX_Size() int
func (*FFPacketOut) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFPacketOut) XXX_Unmarshal(b []byte) error
type FFPort ¶ added in v0.3.1
type FFPort struct { PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` HwAddr string `protobuf:"bytes,2,opt,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Config uint32 `protobuf:"varint,4,opt,name=config,proto3" json:"config,omitempty"` State uint32 `protobuf:"varint,5,opt,name=state,proto3" json:"state,omitempty"` Curr uint32 `protobuf:"varint,6,opt,name=curr,proto3" json:"curr,omitempty"` Advertised uint32 `protobuf:"varint,7,opt,name=advertised,proto3" json:"advertised,omitempty"` CurrSpeed uint32 `protobuf:"varint,8,opt,name=curr_speed,json=currSpeed,proto3" json:"curr_speed,omitempty"` MaxSpeed uint32 `protobuf:"varint,9,opt,name=max_speed,json=maxSpeed,proto3" json:"max_speed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FFPort
func (*FFPort) Descriptor ¶ added in v0.3.1
func (*FFPort) GetAdvertised ¶ added in v0.3.1
func (*FFPort) GetCurrSpeed ¶ added in v0.3.1
func (*FFPort) GetMaxSpeed ¶ added in v0.3.1
func (*FFPort) ProtoMessage ¶ added in v0.3.1
func (*FFPort) ProtoMessage()
func (*FFPort) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPort) XXX_DiscardUnknown()
func (*FFPort) XXX_Marshal ¶ added in v0.3.1
func (*FFPort) XXX_Unmarshal ¶ added in v0.3.1
type FFPortMod ¶ added in v0.3.1
type FFPortMod struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` PortNo uint32 `protobuf:"varint,2,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` HwAddr string `protobuf:"bytes,3,opt,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` Status PortStatus_Status `protobuf:"varint,4,opt,name=status,proto3,enum=fibcapi.PortStatus_Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PortMod
func NewFFPortMod ¶ added in v0.3.1
func NewFFPortMod(dpId uint64, portNo uint32, status PortStatus_Status, hwaddr string) *FFPortMod
func NewFFPortModFromBytes ¶ added in v0.3.1
func (*FFPortMod) Descriptor ¶ added in v0.3.1
func (*FFPortMod) GetStatus ¶ added in v0.3.1
func (m *FFPortMod) GetStatus() PortStatus_Status
func (*FFPortMod) ProtoMessage ¶ added in v0.3.1
func (*FFPortMod) ProtoMessage()
func (*FFPortMod) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPortMod) XXX_DiscardUnknown()
func (*FFPortMod) XXX_Marshal ¶ added in v0.3.1
func (*FFPortMod) XXX_Unmarshal ¶ added in v0.3.1
type FFPortStats ¶ added in v0.3.1
type FFPortStats struct { PortNo uint32 `protobuf:"varint,1,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"` Values map[string]uint64 `` /* 154-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Port Stats
func NewFFPortStats ¶ added in v0.3.1
func NewFFPortStats(port uint32, stats map[string]uint64) *FFPortStats
FFPortStats
func (*FFPortStats) Descriptor ¶ added in v0.3.1
func (*FFPortStats) Descriptor() ([]byte, []int)
func (*FFPortStats) GetPortNo ¶ added in v0.3.1
func (m *FFPortStats) GetPortNo() uint32
func (*FFPortStats) GetValues ¶ added in v0.3.1
func (m *FFPortStats) GetValues() map[string]uint64
func (*FFPortStats) ProtoMessage ¶ added in v0.3.1
func (*FFPortStats) ProtoMessage()
func (*FFPortStats) Reset ¶ added in v0.3.1
func (m *FFPortStats) Reset()
func (*FFPortStats) String ¶ added in v0.3.1
func (m *FFPortStats) String() string
func (*FFPortStats) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPortStats) XXX_DiscardUnknown()
func (*FFPortStats) XXX_Marshal ¶ added in v0.3.1
func (m *FFPortStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFPortStats) XXX_Merge ¶ added in v0.3.1
func (m *FFPortStats) XXX_Merge(src proto.Message)
func (*FFPortStats) XXX_Size ¶ added in v0.3.1
func (m *FFPortStats) XXX_Size() int
func (*FFPortStats) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFPortStats) XXX_Unmarshal(b []byte) error
type FFPortStatus ¶ added in v0.3.1
type FFPortStatus struct { DpId uint64 `protobuf:"varint,1,opt,name=dp_id,json=dpId,proto3" json:"dp_id,omitempty"` Port *FFPort `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"` Reason FFPortStatus_Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=fibcapi.FFPortStatus_Reason" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Port Status
func NewFFPortStatus ¶ added in v0.3.1
func NewFFPortStatus(dpId uint64, port *FFPort, reason FFPortStatus_Reason) *FFPortStatus
func NewFFPortStatusFromBytes ¶ added in v0.3.1
func NewFFPortStatusFromBytes(data []byte) (*FFPortStatus, error)
func (*FFPortStatus) Bytes ¶ added in v0.3.1
func (p *FFPortStatus) Bytes() ([]byte, error)
func (*FFPortStatus) Descriptor ¶ added in v0.3.1
func (*FFPortStatus) Descriptor() ([]byte, []int)
func (*FFPortStatus) GetDpId ¶ added in v0.3.1
func (m *FFPortStatus) GetDpId() uint64
func (*FFPortStatus) GetPort ¶ added in v0.3.1
func (m *FFPortStatus) GetPort() *FFPort
func (*FFPortStatus) GetReason ¶ added in v0.3.1
func (m *FFPortStatus) GetReason() FFPortStatus_Reason
func (*FFPortStatus) ProtoMessage ¶ added in v0.3.1
func (*FFPortStatus) ProtoMessage()
func (*FFPortStatus) Reset ¶ added in v0.3.1
func (m *FFPortStatus) Reset()
func (*FFPortStatus) String ¶ added in v0.3.1
func (m *FFPortStatus) String() string
func (*FFPortStatus) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FFPortStatus) XXX_DiscardUnknown()
func (*FFPortStatus) XXX_Marshal ¶ added in v0.3.1
func (m *FFPortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FFPortStatus) XXX_Merge ¶ added in v0.3.1
func (m *FFPortStatus) XXX_Merge(src proto.Message)
func (*FFPortStatus) XXX_Size ¶ added in v0.3.1
func (m *FFPortStatus) XXX_Size() int
func (*FFPortStatus) XXX_Unmarshal ¶ added in v0.3.1
func (m *FFPortStatus) XXX_Unmarshal(b []byte) error
type FFPortStatus_Reason ¶ added in v0.3.1
type FFPortStatus_Reason int32
const ( FFPortStatus_ADD FFPortStatus_Reason = 0 FFPortStatus_DELETE FFPortStatus_Reason = 1 FFPortStatus_MODIFY FFPortStatus_Reason = 2 )
func (FFPortStatus_Reason) EnumDescriptor ¶ added in v0.3.1
func (FFPortStatus_Reason) EnumDescriptor() ([]byte, []int)
func (FFPortStatus_Reason) String ¶ added in v0.3.1
func (x FFPortStatus_Reason) String() string
type FlowMod ¶
type FlowMod struct { Cmd FlowMod_Cmd `protobuf:"varint,1,opt,name=cmd,proto3,enum=fibcapi.FlowMod_Cmd" json:"cmd,omitempty"` Table FlowMod_Table `protobuf:"varint,2,opt,name=table,proto3,enum=fibcapi.FlowMod_Table" json:"table,omitempty"` ReId string `protobuf:"bytes,3,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` // Types that are valid to be assigned to Entry: // *FlowMod_Vlan // *FlowMod_TermMac // *FlowMod_Mpls1 // *FlowMod_Unicast // *FlowMod_Bridging // *FlowMod_Acl Entry isFlowMod_Entry `protobuf_oneof:"entry"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewFlowModFromBytes ¶ added in v0.3.1
func (*FlowMod) Descriptor ¶
func (*FlowMod) GetAcl ¶
func (m *FlowMod) GetAcl() *PolicyACLFlow
func (*FlowMod) GetBridging ¶
func (m *FlowMod) GetBridging() *BridgingFlow
func (*FlowMod) GetCmd ¶
func (m *FlowMod) GetCmd() FlowMod_Cmd
func (*FlowMod) GetTable ¶
func (m *FlowMod) GetTable() FlowMod_Table
func (*FlowMod) GetTermMac ¶
func (m *FlowMod) GetTermMac() *TerminationMacFlow
func (*FlowMod) GetUnicast ¶
func (m *FlowMod) GetUnicast() *UnicastRoutingFlow
func (*FlowMod) ProtoMessage ¶
func (*FlowMod) ProtoMessage()
func (*FlowMod) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *FlowMod) XXX_DiscardUnknown()
func (*FlowMod) XXX_Marshal ¶ added in v0.3.1
func (*FlowMod) XXX_OneofWrappers ¶ added in v0.3.1
func (*FlowMod) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*FlowMod) XXX_Unmarshal ¶ added in v0.3.1
type FlowMod_Acl ¶
type FlowMod_Acl struct {
Acl *PolicyACLFlow `protobuf:"bytes,9,opt,name=acl,proto3,oneof"`
}
type FlowMod_Bridging ¶
type FlowMod_Bridging struct {
Bridging *BridgingFlow `protobuf:"bytes,8,opt,name=bridging,proto3,oneof"`
}
type FlowMod_Cmd ¶
type FlowMod_Cmd int32
const ( FlowMod_NOP FlowMod_Cmd = 0 FlowMod_ADD FlowMod_Cmd = 1 FlowMod_MODIFY FlowMod_Cmd = 2 FlowMod_MODIFY_STRICT FlowMod_Cmd = 3 FlowMod_DELETE FlowMod_Cmd = 4 FlowMod_DELETE_STRICT FlowMod_Cmd = 5 )
func (FlowMod_Cmd) EnumDescriptor ¶
func (FlowMod_Cmd) EnumDescriptor() ([]byte, []int)
func (FlowMod_Cmd) String ¶
func (x FlowMod_Cmd) String() string
type FlowMod_Mpls1 ¶
type FlowMod_Mpls1 struct {
Mpls1 *MPLSFlow `protobuf:"bytes,6,opt,name=mpls1,proto3,oneof"`
}
type FlowMod_Table ¶
type FlowMod_Table int32
const ( FlowMod_INGRESS_PORT FlowMod_Table = 0 FlowMod_VLAN FlowMod_Table = 10 FlowMod_TERM_MAC FlowMod_Table = 20 FlowMod_L3_TYPE FlowMod_Table = 21 FlowMod_MPLS0 FlowMod_Table = 23 FlowMod_MPLS1 FlowMod_Table = 24 FlowMod_MPLS2 FlowMod_Table = 25 FlowMod_MPLS_L3_TYPE FlowMod_Table = 27 FlowMod_MPLS_LABEL_TRUST FlowMod_Table = 28 FlowMod_MPLS_TYPE FlowMod_Table = 29 FlowMod_UNICAST_ROUTING FlowMod_Table = 30 FlowMod_MULTICAST_ROUTING FlowMod_Table = 40 FlowMod_BRIDGING FlowMod_Table = 50 FlowMod_POLICY_ACL FlowMod_Table = 60 )
func (FlowMod_Table) EnumDescriptor ¶
func (FlowMod_Table) EnumDescriptor() ([]byte, []int)
func (FlowMod_Table) String ¶
func (x FlowMod_Table) String() string
type FlowMod_TermMac ¶
type FlowMod_TermMac struct {
TermMac *TerminationMacFlow `protobuf:"bytes,5,opt,name=term_mac,json=termMac,proto3,oneof"`
}
type FlowMod_Unicast ¶
type FlowMod_Unicast struct {
Unicast *UnicastRoutingFlow `protobuf:"bytes,7,opt,name=unicast,proto3,oneof"`
}
type FlowMod_Vlan ¶
type FlowMod_Vlan struct {
Vlan *VLANFlow `protobuf:"bytes,4,opt,name=vlan,proto3,oneof"`
}
type GroupMod ¶
type GroupMod struct { Cmd GroupMod_Cmd `protobuf:"varint,1,opt,name=cmd,proto3,enum=fibcapi.GroupMod_Cmd" json:"cmd,omitempty"` GType GroupMod_GType `protobuf:"varint,2,opt,name=g_type,json=gType,proto3,enum=fibcapi.GroupMod_GType" json:"g_type,omitempty"` ReId string `protobuf:"bytes,3,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` // Types that are valid to be assigned to Entry: // *GroupMod_L2Iface // *GroupMod_L3Unicast // *GroupMod_MplsIface // *GroupMod_MplsLabel Entry isGroupMod_Entry `protobuf_oneof:"entry"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewGroupModFromBytes ¶ added in v0.3.1
func (*GroupMod) Descriptor ¶
func (*GroupMod) GetCmd ¶
func (m *GroupMod) GetCmd() GroupMod_Cmd
func (*GroupMod) GetGType ¶
func (m *GroupMod) GetGType() GroupMod_GType
func (*GroupMod) GetL2Iface ¶
func (m *GroupMod) GetL2Iface() *L2InterfaceGroup
func (*GroupMod) GetL3Unicast ¶
func (m *GroupMod) GetL3Unicast() *L3UnicastGroup
func (*GroupMod) GetMplsIface ¶
func (m *GroupMod) GetMplsIface() *MPLSInterfaceGroup
func (*GroupMod) GetMplsLabel ¶
func (m *GroupMod) GetMplsLabel() *MPLSLabelGroup
func (*GroupMod) ProtoMessage ¶
func (*GroupMod) ProtoMessage()
func (*GroupMod) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *GroupMod) XXX_DiscardUnknown()
func (*GroupMod) XXX_Marshal ¶ added in v0.3.1
func (*GroupMod) XXX_OneofWrappers ¶ added in v0.3.1
func (*GroupMod) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*GroupMod) XXX_Unmarshal ¶ added in v0.3.1
type GroupMod_Cmd ¶
type GroupMod_Cmd int32
const ( GroupMod_NOP GroupMod_Cmd = 0 GroupMod_ADD GroupMod_Cmd = 1 GroupMod_MODIFY GroupMod_Cmd = 2 GroupMod_DELETE GroupMod_Cmd = 3 )
func (GroupMod_Cmd) EnumDescriptor ¶
func (GroupMod_Cmd) EnumDescriptor() ([]byte, []int)
func (GroupMod_Cmd) String ¶
func (x GroupMod_Cmd) String() string
type GroupMod_GType ¶
type GroupMod_GType int32
const ( GroupMod_UNSPEC GroupMod_GType = 0 GroupMod_L2_INTERFACE GroupMod_GType = 1 GroupMod_L2_REWRITE GroupMod_GType = 16 GroupMod_L3_UNICAST GroupMod_GType = 32 GroupMod_L2_MULTICAST GroupMod_GType = 48 GroupMod_L2_FLOOD GroupMod_GType = 64 GroupMod_L3_INTERFACE GroupMod_GType = 80 GroupMod_L3_MULTICAST GroupMod_GType = 96 GroupMod_L3_ECMP GroupMod_GType = 112 GroupMod_L2_OVERLAY_FL_UC GroupMod_GType = 128 GroupMod_L2_OVERLAY_FL_MC GroupMod_GType = 129 GroupMod_L2_OVERLAY_MC_UC GroupMod_GType = 130 GroupMod_L2_OVERLAY_MC_MC GroupMod_GType = 131 GroupMod_MPLS_INTERFACE GroupMod_GType = 144 GroupMod_MPLS_L2_VPN GroupMod_GType = 145 GroupMod_MPLS_L3_VPN GroupMod_GType = 146 GroupMod_MPLS_TUNNEL1 GroupMod_GType = 147 GroupMod_MPLS_TUNNEL2 GroupMod_GType = 148 GroupMod_MPLS_SWAP GroupMod_GType = 149 GroupMod_MPLS_FF GroupMod_GType = 166 GroupMod_MPLS_ECMP GroupMod_GType = 168 GroupMod_L2_UF_INTERFACE GroupMod_GType = 176 )
func (GroupMod_GType) EnumDescriptor ¶
func (GroupMod_GType) EnumDescriptor() ([]byte, []int)
func (GroupMod_GType) String ¶
func (x GroupMod_GType) String() string
type GroupMod_L2Iface ¶
type GroupMod_L2Iface struct {
L2Iface *L2InterfaceGroup `protobuf:"bytes,4,opt,name=l2_iface,json=l2Iface,proto3,oneof"`
}
type GroupMod_L3Unicast ¶
type GroupMod_L3Unicast struct {
L3Unicast *L3UnicastGroup `protobuf:"bytes,5,opt,name=l3_unicast,json=l3Unicast,proto3,oneof"`
}
type GroupMod_MplsIface ¶
type GroupMod_MplsIface struct {
MplsIface *MPLSInterfaceGroup `protobuf:"bytes,6,opt,name=mpls_iface,json=mplsIface,proto3,oneof"`
}
type GroupMod_MplsLabel ¶
type GroupMod_MplsLabel struct {
MplsLabel *MPLSLabelGroup `protobuf:"bytes,7,opt,name=mpls_label,json=mplsLabel,proto3,oneof"`
}
type HardwareAddrType ¶ added in v0.3.1
type HardwareAddrType uint32
HardwareAddr types
func ParseHardwareAddrType ¶ added in v0.3.1
func ParseHardwareAddrType(mac net.HardwareAddr) (HardwareAddrType, error)
func (HardwareAddrType) Has ¶ added in v0.3.1
func (t HardwareAddrType) Has(v HardwareAddrType) bool
func (HardwareAddrType) String ¶ added in v0.3.1
func (t HardwareAddrType) String() string
type Hello ¶
type Hello struct { ReId string `protobuf:"bytes,1,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewHelloFromBytes ¶ added in v0.3.1
func (*Hello) Descriptor ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *Hello) XXX_DiscardUnknown()
func (*Hello) XXX_Marshal ¶ added in v0.3.1
func (*Hello) XXX_Unmarshal ¶ added in v0.3.1
type L2Addr ¶ added in v0.4.0
type L2Addr struct { HwAddr string `protobuf:"bytes,1,opt,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` VlanVid uint32 `protobuf:"varint,2,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` PortId uint32 `protobuf:"varint,3,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` Ifname string `protobuf:"bytes,4,opt,name=ifname,proto3" json:"ifname,omitempty"` Reason L2Addr_Reason `protobuf:"varint,5,opt,name=reason,proto3,enum=fibcapi.L2Addr_Reason" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
L2Addr
func NewL2AddrDP ¶ added in v0.4.0
func NewL2AddrDP(hwaddr net.HardwareAddr, vid uint16, portId uint32, reason L2Addr_Reason) *L2Addr
func NewL2AddrFromBytes ¶ added in v0.4.0
func NewL2AddrVM ¶ added in v0.4.0
func NewL2AddrVM(hwaddr net.HardwareAddr, vid uint16, portId uint32, reason L2Addr_Reason, ifname string) *L2Addr
L2Addr
func (*L2Addr) Descriptor ¶ added in v0.4.0
func (*L2Addr) GetReason ¶ added in v0.4.0
func (m *L2Addr) GetReason() L2Addr_Reason
func (*L2Addr) GetVlanVid ¶ added in v0.4.0
func (*L2Addr) ProtoMessage ¶ added in v0.4.0
func (*L2Addr) ProtoMessage()
func (*L2Addr) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *L2Addr) XXX_DiscardUnknown()
func (*L2Addr) XXX_Marshal ¶ added in v0.4.0
func (*L2Addr) XXX_Unmarshal ¶ added in v0.4.0
type L2AddrStatus ¶ added in v0.4.0
type L2AddrStatus struct { ReId string `protobuf:"bytes,1,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` Addrs []*L2Addr `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
L2AddrStatus (fibc->ribc)
func NewL2AddrStatus ¶ added in v0.4.0
func NewL2AddrStatus(reId string, addrs []*L2Addr) *L2AddrStatus
func NewL2AddrStatusFromBytes ¶ added in v0.4.0
func NewL2AddrStatusFromBytes(data []byte) (*L2AddrStatus, error)
func (*L2AddrStatus) Bytes ¶ added in v0.4.0
func (a *L2AddrStatus) Bytes() ([]byte, error)
func (*L2AddrStatus) Descriptor ¶ added in v0.4.0
func (*L2AddrStatus) Descriptor() ([]byte, []int)
func (*L2AddrStatus) GetAddrs ¶ added in v0.4.0
func (m *L2AddrStatus) GetAddrs() []*L2Addr
func (*L2AddrStatus) GetReId ¶ added in v0.4.0
func (m *L2AddrStatus) GetReId() string
func (*L2AddrStatus) ProtoMessage ¶ added in v0.4.0
func (*L2AddrStatus) ProtoMessage()
func (*L2AddrStatus) Reset ¶ added in v0.4.0
func (m *L2AddrStatus) Reset()
func (*L2AddrStatus) String ¶ added in v0.4.0
func (m *L2AddrStatus) String() string
func (*L2AddrStatus) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *L2AddrStatus) XXX_DiscardUnknown()
func (*L2AddrStatus) XXX_Marshal ¶ added in v0.4.0
func (m *L2AddrStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*L2AddrStatus) XXX_Merge ¶ added in v0.4.0
func (m *L2AddrStatus) XXX_Merge(src proto.Message)
func (*L2AddrStatus) XXX_Size ¶ added in v0.4.0
func (m *L2AddrStatus) XXX_Size() int
func (*L2AddrStatus) XXX_Unmarshal ¶ added in v0.4.0
func (m *L2AddrStatus) XXX_Unmarshal(b []byte) error
type L2Addr_Reason ¶ added in v0.4.0
type L2Addr_Reason int32
const ( L2Addr_NOP L2Addr_Reason = 0 L2Addr_ADD L2Addr_Reason = 1 L2Addr_DELETE L2Addr_Reason = 2 )
func (L2Addr_Reason) EnumDescriptor ¶ added in v0.4.0
func (L2Addr_Reason) EnumDescriptor() ([]byte, []int)
func (L2Addr_Reason) String ¶ added in v0.4.0
func (x L2Addr_Reason) String() string
type L2InterfaceGroup ¶
type L2InterfaceGroup struct { PortId uint32 `protobuf:"varint,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` VlanVid uint32 `protobuf:"varint,2,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` VlanTranslation bool `protobuf:"varint,3,opt,name=vlan_translation,json=vlanTranslation,proto3" json:"vlan_translation,omitempty"` HwAddr string `protobuf:"bytes,4,opt,name=hw_addr,json=hwAddr,proto3" json:"hw_addr,omitempty"` Mtu uint32 `protobuf:"varint,5,opt,name=mtu,proto3" json:"mtu,omitempty"` Vrf uint32 `protobuf:"varint,6,opt,name=vrf,proto3" json:"vrf,omitempty"` Master uint32 `protobuf:"varint,7,opt,name=master,proto3" json:"master,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
0x0vvvPPPP (vvv:VID, PPPP:port_id)
func NewL2InterfaceGroup ¶
func NewL2InterfaceGroup(portId uint32, vlanId uint16, vlanTranslation bool, hwAddr net.HardwareAddr, mtu int, vrf uint8, master uint32) *L2InterfaceGroup
func (*L2InterfaceGroup) Descriptor ¶
func (*L2InterfaceGroup) Descriptor() ([]byte, []int)
func (*L2InterfaceGroup) GetAdjustedVlanVid ¶ added in v0.3.1
func (g *L2InterfaceGroup) GetAdjustedVlanVid() uint16
func (*L2InterfaceGroup) GetHwAddr ¶ added in v0.3.1
func (m *L2InterfaceGroup) GetHwAddr() string
func (*L2InterfaceGroup) GetMaster ¶ added in v0.4.0
func (m *L2InterfaceGroup) GetMaster() uint32
func (*L2InterfaceGroup) GetMtu ¶ added in v0.3.1
func (m *L2InterfaceGroup) GetMtu() uint32
func (*L2InterfaceGroup) GetPortId ¶
func (m *L2InterfaceGroup) GetPortId() uint32
func (*L2InterfaceGroup) GetVlanTranslation ¶
func (m *L2InterfaceGroup) GetVlanTranslation() bool
func (*L2InterfaceGroup) GetVlanVid ¶
func (m *L2InterfaceGroup) GetVlanVid() uint32
func (*L2InterfaceGroup) GetVrf ¶ added in v0.3.1
func (m *L2InterfaceGroup) GetVrf() uint32
func (*L2InterfaceGroup) ProtoMessage ¶
func (*L2InterfaceGroup) ProtoMessage()
func (*L2InterfaceGroup) Reset ¶
func (m *L2InterfaceGroup) Reset()
func (*L2InterfaceGroup) String ¶
func (m *L2InterfaceGroup) String() string
func (*L2InterfaceGroup) ToMod ¶
func (g *L2InterfaceGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
func (*L2InterfaceGroup) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *L2InterfaceGroup) XXX_DiscardUnknown()
func (*L2InterfaceGroup) XXX_Marshal ¶ added in v0.3.1
func (m *L2InterfaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*L2InterfaceGroup) XXX_Merge ¶ added in v0.3.1
func (m *L2InterfaceGroup) XXX_Merge(src proto.Message)
func (*L2InterfaceGroup) XXX_Size ¶ added in v0.3.1
func (m *L2InterfaceGroup) XXX_Size() int
func (*L2InterfaceGroup) XXX_Unmarshal ¶ added in v0.3.1
func (m *L2InterfaceGroup) XXX_Unmarshal(b []byte) error
type L3UnicastGroup ¶
type L3UnicastGroup struct { NeId uint32 `protobuf:"varint,1,opt,name=ne_id,json=neId,proto3" json:"ne_id,omitempty"` PortId uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` VlanVid uint32 `protobuf:"varint,3,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` EthDst string `protobuf:"bytes,4,opt,name=eth_dst,json=ethDst,proto3" json:"eth_dst,omitempty"` EthSrc string `protobuf:"bytes,5,opt,name=eth_src,json=ethSrc,proto3" json:"eth_src,omitempty"` PhyPortId uint32 `protobuf:"varint,6,opt,name=phy_port_id,json=phyPortId,proto3" json:"phy_port_id,omitempty"` TunType TunnelType_Type `protobuf:"varint,7,opt,name=tun_type,json=tunType,proto3,enum=fibcapi.TunnelType_Type" json:"tun_type,omitempty"` TunRemote string `protobuf:"bytes,8,opt,name=tun_remote,json=tunRemote,proto3" json:"tun_remote,omitempty"` TunLocal string `protobuf:"bytes,9,opt,name=tun_local,json=tunLocal,proto3" json:"tun_local,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
0x20VVNNNN (VV:VRF, NNNN:NeId)
func NewL3UnicastGroup ¶
func NewL3UnicastGroup(neId, portId, phyPortId uint32, vlanVid uint16, ethDst, ethSrc net.HardwareAddr) *L3UnicastGroup
func (*L3UnicastGroup) Descriptor ¶
func (*L3UnicastGroup) Descriptor() ([]byte, []int)
func (*L3UnicastGroup) GetAdjustedVlanVid ¶ added in v0.3.1
func (g *L3UnicastGroup) GetAdjustedVlanVid() uint16
func (*L3UnicastGroup) GetEthDst ¶
func (m *L3UnicastGroup) GetEthDst() string
func (*L3UnicastGroup) GetEthDstHwAddr ¶ added in v0.3.1
func (g *L3UnicastGroup) GetEthDstHwAddr() net.HardwareAddr
func (*L3UnicastGroup) GetEthSrc ¶
func (m *L3UnicastGroup) GetEthSrc() string
func (*L3UnicastGroup) GetEthSrcHwAddr ¶ added in v0.3.1
func (g *L3UnicastGroup) GetEthSrcHwAddr() net.HardwareAddr
func (*L3UnicastGroup) GetNeId ¶
func (m *L3UnicastGroup) GetNeId() uint32
func (*L3UnicastGroup) GetPhyPortId ¶ added in v0.3.1
func (m *L3UnicastGroup) GetPhyPortId() uint32
func (*L3UnicastGroup) GetPortId ¶
func (m *L3UnicastGroup) GetPortId() uint32
func (*L3UnicastGroup) GetTunLocal ¶ added in v0.3.1
func (m *L3UnicastGroup) GetTunLocal() string
func (*L3UnicastGroup) GetTunLocalIP ¶ added in v0.3.1
func (g *L3UnicastGroup) GetTunLocalIP() net.IP
func (*L3UnicastGroup) GetTunRemote ¶ added in v0.3.1
func (m *L3UnicastGroup) GetTunRemote() string
func (*L3UnicastGroup) GetTunRemoteIP ¶ added in v0.3.1
func (g *L3UnicastGroup) GetTunRemoteIP() net.IP
func (*L3UnicastGroup) GetTunType ¶ added in v0.3.1
func (m *L3UnicastGroup) GetTunType() TunnelType_Type
func (*L3UnicastGroup) GetVlanVid ¶
func (m *L3UnicastGroup) GetVlanVid() uint32
func (*L3UnicastGroup) ProtoMessage ¶
func (*L3UnicastGroup) ProtoMessage()
func (*L3UnicastGroup) Reset ¶
func (m *L3UnicastGroup) Reset()
func (*L3UnicastGroup) SetTunnel ¶ added in v0.3.1
func (g *L3UnicastGroup) SetTunnel(tunType TunnelType_Type, remote, local net.IP)
func (*L3UnicastGroup) String ¶
func (m *L3UnicastGroup) String() string
func (*L3UnicastGroup) ToMod ¶
func (g *L3UnicastGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
func (*L3UnicastGroup) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *L3UnicastGroup) XXX_DiscardUnknown()
func (*L3UnicastGroup) XXX_Marshal ¶ added in v0.3.1
func (m *L3UnicastGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*L3UnicastGroup) XXX_Merge ¶ added in v0.3.1
func (m *L3UnicastGroup) XXX_Merge(src proto.Message)
func (*L3UnicastGroup) XXX_Size ¶ added in v0.3.1
func (m *L3UnicastGroup) XXX_Size() int
func (*L3UnicastGroup) XXX_Unmarshal ¶ added in v0.3.1
func (m *L3UnicastGroup) XXX_Unmarshal(b []byte) error
type LinkType ¶ added in v0.4.0
type LinkType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LinkType) Descriptor ¶ added in v0.4.0
func (*LinkType) ProtoMessage ¶ added in v0.4.0
func (*LinkType) ProtoMessage()
func (*LinkType) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *LinkType) XXX_DiscardUnknown()
func (*LinkType) XXX_Marshal ¶ added in v0.4.0
func (*LinkType) XXX_Unmarshal ¶ added in v0.4.0
type LinkType_Type ¶ added in v0.4.0
type LinkType_Type int32
const ( LinkType_DEVICE LinkType_Type = 0 LinkType_IPTUN LinkType_Type = 1 LinkType_BRIDGE LinkType_Type = 2 LinkType_BRIDGE_SLAVE LinkType_Type = 3 LinkType_BOND LinkType_Type = 4 LinkType_BOND_SLAVE LinkType_Type = 5 )
func ParseDPPortId ¶ added in v0.4.0
func ParseDPPortId(port uint32) (uint32, LinkType_Type)
func ParseLinkTypeFromNative ¶ added in v0.4.0
func ParseLinkTypeFromNative(s string) (LinkType_Type, error)
func ParseLinkTypeFromNativeMust ¶ added in v0.4.0
func ParseLinkTypeFromNativeMust(s string, defaultType LinkType_Type) LinkType_Type
func (LinkType_Type) EnumDescriptor ¶ added in v0.4.0
func (LinkType_Type) EnumDescriptor() ([]byte, []int)
func (LinkType_Type) String ¶ added in v0.4.0
func (x LinkType_Type) String() string
type MPLSFlow ¶
type MPLSFlow struct { Match *MPLSFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Actions []*MPLSFlow_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` GType GroupMod_GType `protobuf:"varint,3,opt,name=g_type,json=gType,proto3,enum=fibcapi.GroupMod_GType" json:"g_type,omitempty"` GId uint32 `protobuf:"varint,4,opt,name=g_id,json=gId,proto3" json:"g_id,omitempty"` GotoTable uint32 `protobuf:"varint,5,opt,name=goto_table,json=gotoTable,proto3" json:"goto_table,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewMPLSFlow ¶
func NewMPLSFlow(match *MPLSFlow_Match, actions []*MPLSFlow_Action, gotoTable uint32, gtype GroupMod_GType, gid uint32) *MPLSFlow
func (*MPLSFlow) Descriptor ¶
func (*MPLSFlow) GetActions ¶
func (m *MPLSFlow) GetActions() []*MPLSFlow_Action
func (*MPLSFlow) GetGType ¶
func (m *MPLSFlow) GetGType() GroupMod_GType
func (*MPLSFlow) GetGotoTable ¶
func (*MPLSFlow) GetMatch ¶
func (m *MPLSFlow) GetMatch() *MPLSFlow_Match
func (*MPLSFlow) ProtoMessage ¶
func (*MPLSFlow) ProtoMessage()
func (*MPLSFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *MPLSFlow) XXX_DiscardUnknown()
func (*MPLSFlow) XXX_Marshal ¶ added in v0.3.1
func (*MPLSFlow) XXX_Unmarshal ¶ added in v0.3.1
type MPLSFlow_Action ¶
type MPLSFlow_Action struct { Name MPLSFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.MPLSFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewMPLSAction ¶
func NewMPLSAction(key string, value uint32) *MPLSFlow_Action
func (*MPLSFlow_Action) Descriptor ¶
func (*MPLSFlow_Action) Descriptor() ([]byte, []int)
func (*MPLSFlow_Action) GetName ¶
func (m *MPLSFlow_Action) GetName() MPLSFlow_Action_Name
func (*MPLSFlow_Action) GetValue ¶
func (m *MPLSFlow_Action) GetValue() uint32
func (*MPLSFlow_Action) ProtoMessage ¶
func (*MPLSFlow_Action) ProtoMessage()
func (*MPLSFlow_Action) Reset ¶
func (m *MPLSFlow_Action) Reset()
func (*MPLSFlow_Action) String ¶
func (m *MPLSFlow_Action) String() string
func (*MPLSFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *MPLSFlow_Action) XXX_DiscardUnknown()
func (*MPLSFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *MPLSFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MPLSFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *MPLSFlow_Action) XXX_Merge(src proto.Message)
func (*MPLSFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *MPLSFlow_Action) XXX_Size() int
func (*MPLSFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *MPLSFlow_Action) XXX_Unmarshal(b []byte) error
type MPLSFlow_Action_Name ¶
type MPLSFlow_Action_Name int32
const ( MPLSFlow_Action_UNSPEC MPLSFlow_Action_Name = 0 MPLSFlow_Action_POP_LABEL MPLSFlow_Action_Name = 1 MPLSFlow_Action_DEC_TTL MPLSFlow_Action_Name = 2 MPLSFlow_Action_COPY_TTL_IN MPLSFlow_Action_Name = 3 MPLSFlow_Action_COPY_TC_IN MPLSFlow_Action_Name = 4 MPLSFlow_Action_SET_VRF MPLSFlow_Action_Name = 5 MPLSFlow_Action_SET_MPLS_L2_PORT MPLSFlow_Action_Name = 6 MPLSFlow_Action_SET_MPLS_TYPE MPLSFlow_Action_Name = 7 MPLSFlow_Action_SET_TUNNEL_ID MPLSFlow_Action_Name = 8 MPLSFlow_Action_SET_QOS_INDEX MPLSFlow_Action_Name = 9 MPLSFlow_Action_SET_TRAFFIC_CLASS MPLSFlow_Action_Name = 10 MPLSFlow_Action_SET_L3_IN_PORT MPLSFlow_Action_Name = 11 MPLSFlow_Action_COPY_FIELD MPLSFlow_Action_Name = 12 MPLSFlow_Action_POP_CW_OR_ACH MPLSFlow_Action_Name = 13 MPLSFlow_Action_POP_VLAN MPLSFlow_Action_Name = 14 MPLSFlow_Action_POP_L2_HEADER MPLSFlow_Action_Name = 15 MPLSFlow_Action_SET_LMEP_ID MPLSFlow_Action_Name = 16 MPLSFlow_Action_SET_PROTECTION_INDEX MPLSFlow_Action_Name = 17 )
func (MPLSFlow_Action_Name) EnumDescriptor ¶
func (MPLSFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (MPLSFlow_Action_Name) String ¶
func (x MPLSFlow_Action_Name) String() string
type MPLSFlow_Match ¶
type MPLSFlow_Match struct { Bos bool `protobuf:"varint,1,opt,name=bos,proto3" json:"bos,omitempty"` Label uint32 `protobuf:"varint,2,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MPLSFlow_Match) Descriptor ¶
func (*MPLSFlow_Match) Descriptor() ([]byte, []int)
func (*MPLSFlow_Match) GetBos ¶
func (m *MPLSFlow_Match) GetBos() bool
func (*MPLSFlow_Match) GetLabel ¶
func (m *MPLSFlow_Match) GetLabel() uint32
func (*MPLSFlow_Match) ProtoMessage ¶
func (*MPLSFlow_Match) ProtoMessage()
func (*MPLSFlow_Match) Reset ¶
func (m *MPLSFlow_Match) Reset()
func (*MPLSFlow_Match) String ¶
func (m *MPLSFlow_Match) String() string
func (*MPLSFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *MPLSFlow_Match) XXX_DiscardUnknown()
func (*MPLSFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *MPLSFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MPLSFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *MPLSFlow_Match) XXX_Merge(src proto.Message)
func (*MPLSFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *MPLSFlow_Match) XXX_Size() int
func (*MPLSFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *MPLSFlow_Match) XXX_Unmarshal(b []byte) error
type MPLSInterfaceGroup ¶
type MPLSInterfaceGroup struct { NeId uint32 `protobuf:"varint,1,opt,name=ne_id,json=neId,proto3" json:"ne_id,omitempty"` PortId uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` VlanVid uint32 `protobuf:"varint,3,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` EthDst string `protobuf:"bytes,4,opt,name=eth_dst,json=ethDst,proto3" json:"eth_dst,omitempty"` EthSrc string `protobuf:"bytes,5,opt,name=eth_src,json=ethSrc,proto3" json:"eth_src,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
0x90VVNNNN (VV:VRF, NNNN:NeId)
func NewMPLSInterfaceGroup ¶
func NewMPLSInterfaceGroup(neId, portId uint32, vlanVid uint16, ethDst, ethSrc net.HardwareAddr) *MPLSInterfaceGroup
func (*MPLSInterfaceGroup) Descriptor ¶
func (*MPLSInterfaceGroup) Descriptor() ([]byte, []int)
func (*MPLSInterfaceGroup) GetEthDst ¶
func (m *MPLSInterfaceGroup) GetEthDst() string
func (*MPLSInterfaceGroup) GetEthSrc ¶
func (m *MPLSInterfaceGroup) GetEthSrc() string
func (*MPLSInterfaceGroup) GetNeId ¶
func (m *MPLSInterfaceGroup) GetNeId() uint32
func (*MPLSInterfaceGroup) GetPortId ¶
func (m *MPLSInterfaceGroup) GetPortId() uint32
func (*MPLSInterfaceGroup) GetVlanVid ¶
func (m *MPLSInterfaceGroup) GetVlanVid() uint32
func (*MPLSInterfaceGroup) ProtoMessage ¶
func (*MPLSInterfaceGroup) ProtoMessage()
func (*MPLSInterfaceGroup) Reset ¶
func (m *MPLSInterfaceGroup) Reset()
func (*MPLSInterfaceGroup) String ¶
func (m *MPLSInterfaceGroup) String() string
func (*MPLSInterfaceGroup) ToMod ¶
func (g *MPLSInterfaceGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
func (*MPLSInterfaceGroup) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *MPLSInterfaceGroup) XXX_DiscardUnknown()
func (*MPLSInterfaceGroup) XXX_Marshal ¶ added in v0.3.1
func (m *MPLSInterfaceGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MPLSInterfaceGroup) XXX_Merge ¶ added in v0.3.1
func (m *MPLSInterfaceGroup) XXX_Merge(src proto.Message)
func (*MPLSInterfaceGroup) XXX_Size ¶ added in v0.3.1
func (m *MPLSInterfaceGroup) XXX_Size() int
func (*MPLSInterfaceGroup) XXX_Unmarshal ¶ added in v0.3.1
func (m *MPLSInterfaceGroup) XXX_Unmarshal(b []byte) error
type MPLSLabelGroup ¶
type MPLSLabelGroup struct { DstId uint32 `protobuf:"varint,1,opt,name=dst_id,json=dstId,proto3" json:"dst_id,omitempty"` NewLabel uint32 `protobuf:"varint,2,opt,name=new_label,json=newLabel,proto3" json:"new_label,omitempty"` NeId uint32 `protobuf:"varint,3,opt,name=ne_id,json=neId,proto3" json:"ne_id,omitempty"` NewDstId uint32 `protobuf:"varint,4,opt,name=new_dst_id,json=newDstId,proto3" json:"new_dst_id,omitempty"` GType GroupMod_GType `protobuf:"varint,5,opt,name=g_type,json=gType,proto3,enum=fibcapi.GroupMod_GType" json:"g_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
0x9x0LLLLL (LLLL: label)
func NewMPLSLabelGroup ¶
func NewMPLSLabelGroup(gType GroupMod_GType, dstId, newLabel, neId, newDstId uint32) *MPLSLabelGroup
func (*MPLSLabelGroup) Descriptor ¶
func (*MPLSLabelGroup) Descriptor() ([]byte, []int)
func (*MPLSLabelGroup) GetDstId ¶
func (m *MPLSLabelGroup) GetDstId() uint32
func (*MPLSLabelGroup) GetGType ¶
func (m *MPLSLabelGroup) GetGType() GroupMod_GType
func (*MPLSLabelGroup) GetNeId ¶
func (m *MPLSLabelGroup) GetNeId() uint32
func (*MPLSLabelGroup) GetNewDstId ¶
func (m *MPLSLabelGroup) GetNewDstId() uint32
func (*MPLSLabelGroup) GetNewLabel ¶
func (m *MPLSLabelGroup) GetNewLabel() uint32
func (*MPLSLabelGroup) ProtoMessage ¶
func (*MPLSLabelGroup) ProtoMessage()
func (*MPLSLabelGroup) Reset ¶
func (m *MPLSLabelGroup) Reset()
func (*MPLSLabelGroup) String ¶
func (m *MPLSLabelGroup) String() string
func (*MPLSLabelGroup) ToMod ¶
func (g *MPLSLabelGroup) ToMod(cmd GroupMod_Cmd, reId string) *GroupMod
func (*MPLSLabelGroup) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *MPLSLabelGroup) XXX_DiscardUnknown()
func (*MPLSLabelGroup) XXX_Marshal ¶ added in v0.3.1
func (m *MPLSLabelGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MPLSLabelGroup) XXX_Merge ¶ added in v0.3.1
func (m *MPLSLabelGroup) XXX_Merge(src proto.Message)
func (*MPLSLabelGroup) XXX_Size ¶ added in v0.3.1
func (m *MPLSLabelGroup) XXX_Size() int
func (*MPLSLabelGroup) XXX_Unmarshal ¶ added in v0.3.1
func (m *MPLSLabelGroup) XXX_Unmarshal(b []byte) error
type PolicyACLFlow ¶
type PolicyACLFlow struct { Match *PolicyACLFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Action *PolicyACLFlow_Action `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPolicyACLFlowByAddr ¶
Policy ACL Flow (match ip_dst and send controller)
func (*PolicyACLFlow) Descriptor ¶
func (*PolicyACLFlow) Descriptor() ([]byte, []int)
func (*PolicyACLFlow) GetAction ¶
func (m *PolicyACLFlow) GetAction() *PolicyACLFlow_Action
func (*PolicyACLFlow) GetMatch ¶
func (m *PolicyACLFlow) GetMatch() *PolicyACLFlow_Match
func (*PolicyACLFlow) ProtoMessage ¶
func (*PolicyACLFlow) ProtoMessage()
func (*PolicyACLFlow) Reset ¶
func (m *PolicyACLFlow) Reset()
func (*PolicyACLFlow) String ¶
func (m *PolicyACLFlow) String() string
func (*PolicyACLFlow) ToMod ¶
func (f *PolicyACLFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
Policy ACL Flow Table
func (*PolicyACLFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *PolicyACLFlow) XXX_DiscardUnknown()
func (*PolicyACLFlow) XXX_Marshal ¶ added in v0.3.1
func (m *PolicyACLFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyACLFlow) XXX_Merge ¶ added in v0.3.1
func (m *PolicyACLFlow) XXX_Merge(src proto.Message)
func (*PolicyACLFlow) XXX_Size ¶ added in v0.3.1
func (m *PolicyACLFlow) XXX_Size() int
func (*PolicyACLFlow) XXX_Unmarshal ¶ added in v0.3.1
func (m *PolicyACLFlow) XXX_Unmarshal(b []byte) error
type PolicyACLFlow_Action ¶
type PolicyACLFlow_Action struct { Name PolicyACLFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.PolicyACLFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PolicyACLFlow_Action) Descriptor ¶
func (*PolicyACLFlow_Action) Descriptor() ([]byte, []int)
func (*PolicyACLFlow_Action) GetName ¶
func (m *PolicyACLFlow_Action) GetName() PolicyACLFlow_Action_Name
func (*PolicyACLFlow_Action) GetValue ¶
func (m *PolicyACLFlow_Action) GetValue() uint32
func (*PolicyACLFlow_Action) ProtoMessage ¶
func (*PolicyACLFlow_Action) ProtoMessage()
func (*PolicyACLFlow_Action) Reset ¶
func (m *PolicyACLFlow_Action) Reset()
func (*PolicyACLFlow_Action) String ¶
func (m *PolicyACLFlow_Action) String() string
func (*PolicyACLFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *PolicyACLFlow_Action) XXX_DiscardUnknown()
func (*PolicyACLFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *PolicyACLFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyACLFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *PolicyACLFlow_Action) XXX_Merge(src proto.Message)
func (*PolicyACLFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *PolicyACLFlow_Action) XXX_Size() int
func (*PolicyACLFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *PolicyACLFlow_Action) XXX_Unmarshal(b []byte) error
type PolicyACLFlow_Action_Name ¶
type PolicyACLFlow_Action_Name int32
const ( PolicyACLFlow_Action_UNSPEC PolicyACLFlow_Action_Name = 0 PolicyACLFlow_Action_OUTPUT PolicyACLFlow_Action_Name = 1 )
func ParsePolicyACLFlowActionName ¶ added in v0.4.0
func ParsePolicyACLFlowActionName(s string) (PolicyACLFlow_Action_Name, error)
func (PolicyACLFlow_Action_Name) EnumDescriptor ¶
func (PolicyACLFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (PolicyACLFlow_Action_Name) String ¶
func (x PolicyACLFlow_Action_Name) String() string
type PolicyACLFlow_Match ¶
type PolicyACLFlow_Match struct { IpDst string `protobuf:"bytes,1,opt,name=ip_dst,json=ipDst,proto3" json:"ip_dst,omitempty"` Vrf uint32 `protobuf:"varint,2,opt,name=vrf,proto3" json:"vrf,omitempty"` EthType uint32 `protobuf:"varint,3,opt,name=eth_type,json=ethType,proto3" json:"eth_type,omitempty"` IpProto uint32 `protobuf:"varint,4,opt,name=ip_proto,json=ipProto,proto3" json:"ip_proto,omitempty"` TpSrc uint32 `protobuf:"varint,5,opt,name=tp_src,json=tpSrc,proto3" json:"tp_src,omitempty"` TpDst uint32 `protobuf:"varint,6,opt,name=tp_dst,json=tpDst,proto3" json:"tp_dst,omitempty"` EthDst string `protobuf:"bytes,7,opt,name=eth_dst,json=ethDst,proto3" json:"eth_dst,omitempty"` InPort uint32 `protobuf:"varint,8,opt,name=in_port,json=inPort,proto3" json:"in_port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PolicyACLFlow_Match) Descriptor ¶
func (*PolicyACLFlow_Match) Descriptor() ([]byte, []int)
func (*PolicyACLFlow_Match) GetEthDst ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) GetEthDst() string
func (*PolicyACLFlow_Match) GetEthType ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) GetEthType() uint32
func (*PolicyACLFlow_Match) GetInPort ¶ added in v0.4.0
func (m *PolicyACLFlow_Match) GetInPort() uint32
func (*PolicyACLFlow_Match) GetIpDst ¶
func (m *PolicyACLFlow_Match) GetIpDst() string
func (*PolicyACLFlow_Match) GetIpProto ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) GetIpProto() uint32
func (*PolicyACLFlow_Match) GetTpDst ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) GetTpDst() uint32
func (*PolicyACLFlow_Match) GetTpSrc ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) GetTpSrc() uint32
func (*PolicyACLFlow_Match) GetVrf ¶
func (m *PolicyACLFlow_Match) GetVrf() uint32
func (*PolicyACLFlow_Match) ProtoMessage ¶
func (*PolicyACLFlow_Match) ProtoMessage()
func (*PolicyACLFlow_Match) Reset ¶
func (m *PolicyACLFlow_Match) Reset()
func (*PolicyACLFlow_Match) String ¶
func (m *PolicyACLFlow_Match) String() string
func (*PolicyACLFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) XXX_DiscardUnknown()
func (*PolicyACLFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyACLFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) XXX_Merge(src proto.Message)
func (*PolicyACLFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) XXX_Size() int
func (*PolicyACLFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *PolicyACLFlow_Match) XXX_Unmarshal(b []byte) error
type PortConfig ¶
type PortConfig struct { Cmd PortConfig_Cmd `protobuf:"varint,1,opt,name=cmd,proto3,enum=fibcapi.PortConfig_Cmd" json:"cmd,omitempty"` ReId string `protobuf:"bytes,2,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` Ifname string `protobuf:"bytes,3,opt,name=ifname,proto3" json:"ifname,omitempty"` PortId uint32 `protobuf:"varint,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` Link string `protobuf:"bytes,5,opt,name=link,proto3" json:"link,omitempty"` Status PortStatus_Status `protobuf:"varint,6,opt,name=status,proto3,enum=fibcapi.PortStatus_Status" json:"status,omitempty"` DpPort uint32 `protobuf:"varint,7,opt,name=dp_port,json=dpPort,proto3" json:"dp_port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPortConfig ¶
func NewPortConfig(cmd, reID, ifname string, portId uint32, status PortStatus_Status) *PortConfig
func NewPortConfigFromBytes ¶ added in v0.3.1
func NewPortConfigFromBytes(data []byte) (*PortConfig, error)
func (*PortConfig) Bytes ¶
func (p *PortConfig) Bytes() ([]byte, error)
func (*PortConfig) Descriptor ¶
func (*PortConfig) Descriptor() ([]byte, []int)
func (*PortConfig) GetCmd ¶
func (m *PortConfig) GetCmd() PortConfig_Cmd
func (*PortConfig) GetDpPort ¶ added in v0.3.1
func (m *PortConfig) GetDpPort() uint32
func (*PortConfig) GetIfname ¶
func (m *PortConfig) GetIfname() string
func (*PortConfig) GetLink ¶ added in v0.2.0
func (m *PortConfig) GetLink() string
func (*PortConfig) GetPortId ¶ added in v0.2.0
func (m *PortConfig) GetPortId() uint32
func (*PortConfig) GetReId ¶
func (m *PortConfig) GetReId() string
func (*PortConfig) GetStatus ¶ added in v0.2.0
func (m *PortConfig) GetStatus() PortStatus_Status
func (*PortConfig) ProtoMessage ¶
func (*PortConfig) ProtoMessage()
func (*PortConfig) Reset ¶
func (m *PortConfig) Reset()
func (*PortConfig) String ¶
func (m *PortConfig) String() string
func (*PortConfig) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *PortConfig) XXX_DiscardUnknown()
func (*PortConfig) XXX_Marshal ¶ added in v0.3.1
func (m *PortConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PortConfig) XXX_Merge ¶ added in v0.3.1
func (m *PortConfig) XXX_Merge(src proto.Message)
func (*PortConfig) XXX_Size ¶ added in v0.3.1
func (m *PortConfig) XXX_Size() int
func (*PortConfig) XXX_Unmarshal ¶ added in v0.3.1
func (m *PortConfig) XXX_Unmarshal(b []byte) error
type PortConfig_Cmd ¶
type PortConfig_Cmd int32
const ( PortConfig_NOP PortConfig_Cmd = 0 PortConfig_ADD PortConfig_Cmd = 1 PortConfig_MODIFY PortConfig_Cmd = 2 PortConfig_DELETE PortConfig_Cmd = 3 )
func (PortConfig_Cmd) EnumDescriptor ¶
func (PortConfig_Cmd) EnumDescriptor() ([]byte, []int)
func (PortConfig_Cmd) String ¶
func (x PortConfig_Cmd) String() string
type PortStatus ¶
type PortStatus struct { Status PortStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=fibcapi.PortStatus_Status" json:"status,omitempty"` ReId string `protobuf:"bytes,2,opt,name=re_id,json=reId,proto3" json:"re_id,omitempty"` PortId uint32 `protobuf:"varint,3,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` Ifname string `protobuf:"bytes,4,opt,name=ifname,proto3" json:"ifname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPortStatus ¶ added in v0.3.1
func NewPortStatus(reId string, portId uint32, ifname string, status PortStatus_Status) *PortStatus
func NewPortStatusFromBytes ¶
func NewPortStatusFromBytes(data []byte) (*PortStatus, error)
func (*PortStatus) Bytes ¶
func (p *PortStatus) Bytes() ([]byte, error)
func (*PortStatus) Descriptor ¶
func (*PortStatus) Descriptor() ([]byte, []int)
func (*PortStatus) GetIfname ¶
func (m *PortStatus) GetIfname() string
func (*PortStatus) GetPortId ¶
func (m *PortStatus) GetPortId() uint32
func (*PortStatus) GetReId ¶
func (m *PortStatus) GetReId() string
func (*PortStatus) GetStatus ¶
func (m *PortStatus) GetStatus() PortStatus_Status
func (*PortStatus) ProtoMessage ¶
func (*PortStatus) ProtoMessage()
func (*PortStatus) Reset ¶
func (m *PortStatus) Reset()
func (*PortStatus) String ¶
func (m *PortStatus) String() string
func (*PortStatus) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *PortStatus) XXX_DiscardUnknown()
func (*PortStatus) XXX_Marshal ¶ added in v0.3.1
func (m *PortStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PortStatus) XXX_Merge ¶ added in v0.3.1
func (m *PortStatus) XXX_Merge(src proto.Message)
func (*PortStatus) XXX_Size ¶ added in v0.3.1
func (m *PortStatus) XXX_Size() int
func (*PortStatus) XXX_Unmarshal ¶ added in v0.3.1
func (m *PortStatus) XXX_Unmarshal(b []byte) error
type PortStatus_Status ¶
type PortStatus_Status int32
const ( PortStatus_NOP PortStatus_Status = 0 PortStatus_UP PortStatus_Status = 1 PortStatus_DOWN PortStatus_Status = 2 )
func (PortStatus_Status) EnumDescriptor ¶
func (PortStatus_Status) EnumDescriptor() ([]byte, []int)
func (PortStatus_Status) String ¶
func (x PortStatus_Status) String() string
type TerminationMacFlow ¶
type TerminationMacFlow struct { Match *TerminationMacFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Actions []*TerminationMacFlow_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` GotoTable uint32 `protobuf:"varint,3,opt,name=goto_table,json=gotoTable,proto3" json:"goto_table,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewTermMACFlow ¶
func NewTermMACFlow(match *TerminationMacFlow_Match, actions []*TerminationMacFlow_Action, gotoTable uint32) *TerminationMacFlow
func (*TerminationMacFlow) Descriptor ¶
func (*TerminationMacFlow) Descriptor() ([]byte, []int)
func (*TerminationMacFlow) GetActions ¶
func (m *TerminationMacFlow) GetActions() []*TerminationMacFlow_Action
func (*TerminationMacFlow) GetGotoTable ¶
func (m *TerminationMacFlow) GetGotoTable() uint32
func (*TerminationMacFlow) GetMatch ¶
func (m *TerminationMacFlow) GetMatch() *TerminationMacFlow_Match
func (*TerminationMacFlow) ProtoMessage ¶
func (*TerminationMacFlow) ProtoMessage()
func (*TerminationMacFlow) Reset ¶
func (m *TerminationMacFlow) Reset()
func (*TerminationMacFlow) String ¶
func (m *TerminationMacFlow) String() string
func (*TerminationMacFlow) ToMod ¶
func (f *TerminationMacFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
func (*TerminationMacFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *TerminationMacFlow) XXX_DiscardUnknown()
func (*TerminationMacFlow) XXX_Marshal ¶ added in v0.3.1
func (m *TerminationMacFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TerminationMacFlow) XXX_Merge ¶ added in v0.3.1
func (m *TerminationMacFlow) XXX_Merge(src proto.Message)
func (*TerminationMacFlow) XXX_Size ¶ added in v0.3.1
func (m *TerminationMacFlow) XXX_Size() int
func (*TerminationMacFlow) XXX_Unmarshal ¶ added in v0.3.1
func (m *TerminationMacFlow) XXX_Unmarshal(b []byte) error
type TerminationMacFlow_Action ¶
type TerminationMacFlow_Action struct { Name TerminationMacFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.TerminationMacFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewTermMACAction ¶
func NewTermMACAction(key string, value uint32) *TerminationMacFlow_Action
func (*TerminationMacFlow_Action) Descriptor ¶
func (*TerminationMacFlow_Action) Descriptor() ([]byte, []int)
func (*TerminationMacFlow_Action) GetName ¶
func (m *TerminationMacFlow_Action) GetName() TerminationMacFlow_Action_Name
func (*TerminationMacFlow_Action) GetValue ¶
func (m *TerminationMacFlow_Action) GetValue() uint32
func (*TerminationMacFlow_Action) ProtoMessage ¶
func (*TerminationMacFlow_Action) ProtoMessage()
func (*TerminationMacFlow_Action) Reset ¶
func (m *TerminationMacFlow_Action) Reset()
func (*TerminationMacFlow_Action) String ¶
func (m *TerminationMacFlow_Action) String() string
func (*TerminationMacFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *TerminationMacFlow_Action) XXX_DiscardUnknown()
func (*TerminationMacFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *TerminationMacFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TerminationMacFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *TerminationMacFlow_Action) XXX_Merge(src proto.Message)
func (*TerminationMacFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *TerminationMacFlow_Action) XXX_Size() int
func (*TerminationMacFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *TerminationMacFlow_Action) XXX_Unmarshal(b []byte) error
type TerminationMacFlow_Action_Name ¶
type TerminationMacFlow_Action_Name int32
const ( TerminationMacFlow_Action_UNSPEC TerminationMacFlow_Action_Name = 0 TerminationMacFlow_Action_OUTPUT TerminationMacFlow_Action_Name = 1 )
func (TerminationMacFlow_Action_Name) EnumDescriptor ¶
func (TerminationMacFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (TerminationMacFlow_Action_Name) String ¶
func (x TerminationMacFlow_Action_Name) String() string
type TerminationMacFlow_Match ¶
type TerminationMacFlow_Match struct { InPort uint32 `protobuf:"varint,1,opt,name=in_port,json=inPort,proto3" json:"in_port,omitempty"` EthType uint32 `protobuf:"varint,2,opt,name=eth_type,json=ethType,proto3" json:"eth_type,omitempty"` EthDst string `protobuf:"bytes,3,opt,name=eth_dst,json=ethDst,proto3" json:"eth_dst,omitempty"` VlanVid uint32 `protobuf:"varint,4,opt,name=vlan_vid,json=vlanVid,proto3" json:"vlan_vid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewTermMACMatch ¶
func NewTermMACMatch(inPort uint32, ethType uint32, ethDst string, vid uint16) *TerminationMacFlow_Match
Termination MAC Flow Table
func (*TerminationMacFlow_Match) Descriptor ¶
func (*TerminationMacFlow_Match) Descriptor() ([]byte, []int)
func (*TerminationMacFlow_Match) GetEthDst ¶
func (m *TerminationMacFlow_Match) GetEthDst() string
func (*TerminationMacFlow_Match) GetEthType ¶
func (m *TerminationMacFlow_Match) GetEthType() uint32
func (*TerminationMacFlow_Match) GetInPort ¶
func (m *TerminationMacFlow_Match) GetInPort() uint32
func (*TerminationMacFlow_Match) GetVlanVid ¶
func (m *TerminationMacFlow_Match) GetVlanVid() uint32
func (*TerminationMacFlow_Match) ProtoMessage ¶
func (*TerminationMacFlow_Match) ProtoMessage()
func (*TerminationMacFlow_Match) Reset ¶
func (m *TerminationMacFlow_Match) Reset()
func (*TerminationMacFlow_Match) String ¶
func (m *TerminationMacFlow_Match) String() string
func (*TerminationMacFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *TerminationMacFlow_Match) XXX_DiscardUnknown()
func (*TerminationMacFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *TerminationMacFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TerminationMacFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *TerminationMacFlow_Match) XXX_Merge(src proto.Message)
func (*TerminationMacFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *TerminationMacFlow_Match) XXX_Size() int
func (*TerminationMacFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *TerminationMacFlow_Match) XXX_Unmarshal(b []byte) error
type TunnelType ¶ added in v0.3.1
type TunnelType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TunnelType) Descriptor ¶ added in v0.3.1
func (*TunnelType) Descriptor() ([]byte, []int)
func (*TunnelType) ProtoMessage ¶ added in v0.3.1
func (*TunnelType) ProtoMessage()
func (*TunnelType) Reset ¶ added in v0.3.1
func (m *TunnelType) Reset()
func (*TunnelType) String ¶ added in v0.3.1
func (m *TunnelType) String() string
func (*TunnelType) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *TunnelType) XXX_DiscardUnknown()
func (*TunnelType) XXX_Marshal ¶ added in v0.3.1
func (m *TunnelType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TunnelType) XXX_Merge ¶ added in v0.3.1
func (m *TunnelType) XXX_Merge(src proto.Message)
func (*TunnelType) XXX_Size ¶ added in v0.3.1
func (m *TunnelType) XXX_Size() int
func (*TunnelType) XXX_Unmarshal ¶ added in v0.3.1
func (m *TunnelType) XXX_Unmarshal(b []byte) error
type TunnelType_Type ¶ added in v0.3.1
type TunnelType_Type int32
const ( TunnelType_NOP TunnelType_Type = 0 TunnelType_IPIP TunnelType_Type = 1 TunnelType_IPV6 TunnelType_Type = 2 TunnelType_GRE4 TunnelType_Type = 3 TunnelType_GRE6 TunnelType_Type = 4 )
func ParseTunnelTypeFromNative ¶ added in v0.3.1
func ParseTunnelTypeFromNative(s string) (TunnelType_Type, error)
func (TunnelType_Type) EnumDescriptor ¶ added in v0.3.1
func (TunnelType_Type) EnumDescriptor() ([]byte, []int)
func (TunnelType_Type) String ¶ added in v0.3.1
func (x TunnelType_Type) String() string
type UnicastRoutingFlow ¶
type UnicastRoutingFlow struct { Match *UnicastRoutingFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Action *UnicastRoutingFlow_Action `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` GType GroupMod_GType `protobuf:"varint,3,opt,name=g_type,json=gType,proto3,enum=fibcapi.GroupMod_GType" json:"g_type,omitempty"` GId uint32 `protobuf:"varint,4,opt,name=g_id,json=gId,proto3" json:"g_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewUnicastRoutingFlow ¶
func NewUnicastRoutingFlow(match *UnicastRoutingFlow_Match, action *UnicastRoutingFlow_Action, gtype GroupMod_GType, gid uint32) *UnicastRoutingFlow
func (*UnicastRoutingFlow) Descriptor ¶
func (*UnicastRoutingFlow) Descriptor() ([]byte, []int)
func (*UnicastRoutingFlow) GetAction ¶
func (m *UnicastRoutingFlow) GetAction() *UnicastRoutingFlow_Action
func (*UnicastRoutingFlow) GetGId ¶
func (m *UnicastRoutingFlow) GetGId() uint32
func (*UnicastRoutingFlow) GetGType ¶
func (m *UnicastRoutingFlow) GetGType() GroupMod_GType
func (*UnicastRoutingFlow) GetMatch ¶
func (m *UnicastRoutingFlow) GetMatch() *UnicastRoutingFlow_Match
func (*UnicastRoutingFlow) ProtoMessage ¶
func (*UnicastRoutingFlow) ProtoMessage()
func (*UnicastRoutingFlow) Reset ¶
func (m *UnicastRoutingFlow) Reset()
func (*UnicastRoutingFlow) String ¶
func (m *UnicastRoutingFlow) String() string
func (*UnicastRoutingFlow) ToMod ¶
func (f *UnicastRoutingFlow) ToMod(cmd FlowMod_Cmd, reId string) *FlowMod
func (*UnicastRoutingFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *UnicastRoutingFlow) XXX_DiscardUnknown()
func (*UnicastRoutingFlow) XXX_Marshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnicastRoutingFlow) XXX_Merge ¶ added in v0.3.1
func (m *UnicastRoutingFlow) XXX_Merge(src proto.Message)
func (*UnicastRoutingFlow) XXX_Size ¶ added in v0.3.1
func (m *UnicastRoutingFlow) XXX_Size() int
func (*UnicastRoutingFlow) XXX_Unmarshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow) XXX_Unmarshal(b []byte) error
type UnicastRoutingFlow_Action ¶
type UnicastRoutingFlow_Action struct { Name UnicastRoutingFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.UnicastRoutingFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewUnicastRoutingAction ¶
func NewUnicastRoutingAction(key string, value uint32) *UnicastRoutingFlow_Action
func (*UnicastRoutingFlow_Action) Descriptor ¶
func (*UnicastRoutingFlow_Action) Descriptor() ([]byte, []int)
func (*UnicastRoutingFlow_Action) GetName ¶
func (m *UnicastRoutingFlow_Action) GetName() UnicastRoutingFlow_Action_Name
func (*UnicastRoutingFlow_Action) GetValue ¶
func (m *UnicastRoutingFlow_Action) GetValue() uint32
func (*UnicastRoutingFlow_Action) ProtoMessage ¶
func (*UnicastRoutingFlow_Action) ProtoMessage()
func (*UnicastRoutingFlow_Action) Reset ¶
func (m *UnicastRoutingFlow_Action) Reset()
func (*UnicastRoutingFlow_Action) String ¶
func (m *UnicastRoutingFlow_Action) String() string
func (*UnicastRoutingFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Action) XXX_DiscardUnknown()
func (*UnicastRoutingFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnicastRoutingFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Action) XXX_Merge(src proto.Message)
func (*UnicastRoutingFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Action) XXX_Size() int
func (*UnicastRoutingFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Action) XXX_Unmarshal(b []byte) error
type UnicastRoutingFlow_Action_Name ¶
type UnicastRoutingFlow_Action_Name int32
const ( UnicastRoutingFlow_Action_UNSPEC UnicastRoutingFlow_Action_Name = 0 UnicastRoutingFlow_Action_OUTPUT UnicastRoutingFlow_Action_Name = 1 UnicastRoutingFlow_Action_CLEAR_ACTIONS UnicastRoutingFlow_Action_Name = 2 UnicastRoutingFlow_Action_DEC_TTL UnicastRoutingFlow_Action_Name = 3 )
func (UnicastRoutingFlow_Action_Name) EnumDescriptor ¶
func (UnicastRoutingFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (UnicastRoutingFlow_Action_Name) String ¶
func (x UnicastRoutingFlow_Action_Name) String() string
type UnicastRoutingFlow_Match ¶
type UnicastRoutingFlow_Match struct { IpDst string `protobuf:"bytes,1,opt,name=ip_dst,json=ipDst,proto3" json:"ip_dst,omitempty"` Vrf uint32 `protobuf:"varint,2,opt,name=vrf,proto3" json:"vrf,omitempty"` Origin UnicastRoutingFlow_Origin `protobuf:"varint,3,opt,name=origin,proto3,enum=fibcapi.UnicastRoutingFlow_Origin" json:"origin,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewUnicastRoutingMatch ¶
func NewUnicastRoutingMatch(ipDst *net.IPNet, vrf uint8, origin UnicastRoutingFlow_Origin) *UnicastRoutingFlow_Match
Unicast Routing Flow Table
func NewUnicastRoutingMatchNeigh ¶ added in v0.3.1
func NewUnicastRoutingMatchNeigh(ip net.IP, vrf uint8) *UnicastRoutingFlow_Match
func NewUnicastRoutingMatchRoute ¶ added in v0.3.1
func NewUnicastRoutingMatchRoute(ipDst *net.IPNet, vrf uint8) *UnicastRoutingFlow_Match
func (*UnicastRoutingFlow_Match) Descriptor ¶
func (*UnicastRoutingFlow_Match) Descriptor() ([]byte, []int)
func (*UnicastRoutingFlow_Match) GetIpDst ¶
func (m *UnicastRoutingFlow_Match) GetIpDst() string
func (*UnicastRoutingFlow_Match) GetOrigin ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) GetOrigin() UnicastRoutingFlow_Origin
func (*UnicastRoutingFlow_Match) GetVrf ¶
func (m *UnicastRoutingFlow_Match) GetVrf() uint32
func (*UnicastRoutingFlow_Match) ProtoMessage ¶
func (*UnicastRoutingFlow_Match) ProtoMessage()
func (*UnicastRoutingFlow_Match) Reset ¶
func (m *UnicastRoutingFlow_Match) Reset()
func (*UnicastRoutingFlow_Match) String ¶
func (m *UnicastRoutingFlow_Match) String() string
func (*UnicastRoutingFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) XXX_DiscardUnknown()
func (*UnicastRoutingFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnicastRoutingFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) XXX_Merge(src proto.Message)
func (*UnicastRoutingFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) XXX_Size() int
func (*UnicastRoutingFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *UnicastRoutingFlow_Match) XXX_Unmarshal(b []byte) error
type UnicastRoutingFlow_Origin ¶ added in v0.3.1
type UnicastRoutingFlow_Origin int32
const ( UnicastRoutingFlow_UNSPEC UnicastRoutingFlow_Origin = 0 UnicastRoutingFlow_NEIGH UnicastRoutingFlow_Origin = 1 UnicastRoutingFlow_ROUTE UnicastRoutingFlow_Origin = 2 )
func (UnicastRoutingFlow_Origin) EnumDescriptor ¶ added in v0.3.1
func (UnicastRoutingFlow_Origin) EnumDescriptor() ([]byte, []int)
func (UnicastRoutingFlow_Origin) String ¶ added in v0.3.1
func (x UnicastRoutingFlow_Origin) String() string
type VLANFlow ¶
type VLANFlow struct { Match *VLANFlow_Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` Actions []*VLANFlow_Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` GotoTable uint32 `protobuf:"varint,3,opt,name=goto_table,json=gotoTable,proto3" json:"goto_table,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewVLANFlow ¶
func NewVLANFlow(match *VLANFlow_Match, actions []*VLANFlow_Action, gotoTable uint32) *VLANFlow
func (VLANFlow) BridgeVlanInfoFlags ¶ added in v0.4.0
func (f VLANFlow) BridgeVlanInfoFlags() (BridgeVlanInfo_Flags, bool)
func (*VLANFlow) Descriptor ¶
func (VLANFlow) GetAction ¶ added in v0.4.0
func (f VLANFlow) GetAction(name VLANFlow_Action_Name) *VLANFlow_Action
func (*VLANFlow) GetActions ¶
func (m *VLANFlow) GetActions() []*VLANFlow_Action
func (*VLANFlow) GetGotoTable ¶
func (*VLANFlow) GetMatch ¶
func (m *VLANFlow) GetMatch() *VLANFlow_Match
func (*VLANFlow) ProtoMessage ¶
func (*VLANFlow) ProtoMessage()
func (*VLANFlow) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *VLANFlow) XXX_DiscardUnknown()
func (*VLANFlow) XXX_Marshal ¶ added in v0.3.1
func (*VLANFlow) XXX_Unmarshal ¶ added in v0.3.1
type VLANFlow_Action ¶
type VLANFlow_Action struct { Name VLANFlow_Action_Name `protobuf:"varint,1,opt,name=name,proto3,enum=fibcapi.VLANFlow_Action_Name" json:"name,omitempty"` Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewVLANFlowAction ¶
func NewVLANFlowAction(key string, value uint32) *VLANFlow_Action
func (*VLANFlow_Action) Descriptor ¶
func (*VLANFlow_Action) Descriptor() ([]byte, []int)
func (*VLANFlow_Action) GetName ¶
func (m *VLANFlow_Action) GetName() VLANFlow_Action_Name
func (*VLANFlow_Action) GetValue ¶
func (m *VLANFlow_Action) GetValue() uint32
func (*VLANFlow_Action) ProtoMessage ¶
func (*VLANFlow_Action) ProtoMessage()
func (*VLANFlow_Action) Reset ¶
func (m *VLANFlow_Action) Reset()
func (*VLANFlow_Action) String ¶
func (m *VLANFlow_Action) String() string
func (*VLANFlow_Action) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *VLANFlow_Action) XXX_DiscardUnknown()
func (*VLANFlow_Action) XXX_Marshal ¶ added in v0.3.1
func (m *VLANFlow_Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VLANFlow_Action) XXX_Merge ¶ added in v0.3.1
func (m *VLANFlow_Action) XXX_Merge(src proto.Message)
func (*VLANFlow_Action) XXX_Size ¶ added in v0.3.1
func (m *VLANFlow_Action) XXX_Size() int
func (*VLANFlow_Action) XXX_Unmarshal ¶ added in v0.3.1
func (m *VLANFlow_Action) XXX_Unmarshal(b []byte) error
type VLANFlow_Action_Name ¶
type VLANFlow_Action_Name int32
const ( VLANFlow_Action_UNSPEC VLANFlow_Action_Name = 0 VLANFlow_Action_SET_VLAN_VID VLANFlow_Action_Name = 1 VLANFlow_Action_SET_VRF VLANFlow_Action_Name = 2 VLANFlow_Action_SET_OVID VLANFlow_Action_Name = 3 VLANFlow_Action_SET_MPLS_TYPE VLANFlow_Action_Name = 4 VLANFlow_Action_PUSH_VLAN VLANFlow_Action_Name = 5 VLANFlow_Action_POP_VLAN VLANFlow_Action_Name = 6 VLANFlow_Action_SET_MPLS_L2_TYPE VLANFlow_Action_Name = 7 VLANFlow_Action_SET_TUNNEL_ID VLANFlow_Action_Name = 8 VLANFlow_Action_SET_VLAN_L2_TYPE VLANFlow_Action_Name = 9 )
func (VLANFlow_Action_Name) EnumDescriptor ¶
func (VLANFlow_Action_Name) EnumDescriptor() ([]byte, []int)
func (VLANFlow_Action_Name) String ¶
func (x VLANFlow_Action_Name) String() string
type VLANFlow_Match ¶
type VLANFlow_Match struct { InPort uint32 `protobuf:"varint,1,opt,name=in_port,json=inPort,proto3" json:"in_port,omitempty"` Vid uint32 `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty"` VidMask uint32 `protobuf:"varint,3,opt,name=vid_mask,json=vidMask,proto3" json:"vid_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewVLANFlowMatch ¶
func NewVLANFlowMatch(inPort, vid, vidMask uint32) *VLANFlow_Match
VLAN Flow Table
func (*VLANFlow_Match) Descriptor ¶
func (*VLANFlow_Match) Descriptor() ([]byte, []int)
func (*VLANFlow_Match) GetInPort ¶
func (m *VLANFlow_Match) GetInPort() uint32
func (*VLANFlow_Match) GetVid ¶
func (m *VLANFlow_Match) GetVid() uint32
func (*VLANFlow_Match) GetVidMask ¶
func (m *VLANFlow_Match) GetVidMask() uint32
func (*VLANFlow_Match) ProtoMessage ¶
func (*VLANFlow_Match) ProtoMessage()
func (*VLANFlow_Match) Reset ¶
func (m *VLANFlow_Match) Reset()
func (*VLANFlow_Match) String ¶
func (m *VLANFlow_Match) String() string
func (*VLANFlow_Match) XXX_DiscardUnknown ¶ added in v0.3.1
func (m *VLANFlow_Match) XXX_DiscardUnknown()
func (*VLANFlow_Match) XXX_Marshal ¶ added in v0.3.1
func (m *VLANFlow_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VLANFlow_Match) XXX_Merge ¶ added in v0.3.1
func (m *VLANFlow_Match) XXX_Merge(src proto.Message)
func (*VLANFlow_Match) XXX_Size ¶ added in v0.3.1
func (m *VLANFlow_Match) XXX_Size() int
func (*VLANFlow_Match) XXX_Unmarshal ¶ added in v0.3.1
func (m *VLANFlow_Match) XXX_Unmarshal(b []byte) error