Documentation ¶
Index ¶
- func HexDecode(pkt []byte) []byte
- type DyingGaspIndicationMessage
- type Message
- type MessageType
- type NniIndicationMessage
- type NniPort
- type OltDevice
- func (o OltDevice) ActivateOnu(context context.Context, onu *openolt.Onu) (*openolt.Empty, error)
- func (o OltDevice) CollectStatistics(context.Context, *openolt.Empty) (*openolt.Empty, error)
- func (s OltDevice) CreateTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*openolt.Empty, error)
- func (s OltDevice) CreateTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*openolt.Empty, error)
- func (o OltDevice) DeactivateOnu(context.Context, *openolt.Onu) (*openolt.Empty, error)
- func (o OltDevice) DeleteOnu(context.Context, *openolt.Onu) (*openolt.Empty, error)
- func (o OltDevice) DisableOlt(context.Context, *openolt.Empty) (*openolt.Empty, error)
- func (o OltDevice) DisablePonIf(context.Context, *openolt.Interface) (*openolt.Empty, error)
- func (o OltDevice) Enable(stream openolt.Openolt_EnableIndicationServer) error
- func (o OltDevice) EnableIndication(_ *openolt.Empty, stream openolt.Openolt_EnableIndicationServer) error
- func (o OltDevice) EnablePonIf(context.Context, *openolt.Interface) (*openolt.Empty, error)
- func (o OltDevice) FindOnu(serialNumber string) (*Onu, error)
- func (o OltDevice) FlowAdd(ctx context.Context, flow *openolt.Flow) (*openolt.Empty, error)
- func (o OltDevice) FlowRemove(context.Context, *openolt.Flow) (*openolt.Empty, error)
- func (o OltDevice) GetDeviceInfo(context.Context, *openolt.Empty) (*openolt.DeviceInfo, error)
- func (o OltDevice) GetOnuInfo(context context.Context, packet *openolt.Onu) (*openolt.OnuIndication, error)
- func (o OltDevice) GetPonIf(context context.Context, packet *openolt.Interface) (*openolt.IntfIndication, error)
- func (o OltDevice) HeartbeatCheck(context.Context, *openolt.Empty) (*openolt.Heartbeat, error)
- func (o OltDevice) OmciMsgOut(ctx context.Context, omci_msg *openolt.OmciMsg) (*openolt.Empty, error)
- func (o OltDevice) OnuPacketOut(ctx context.Context, onuPkt *openolt.OnuPacket) (*openolt.Empty, error)
- func (o OltDevice) Reboot(context.Context, *openolt.Empty) (*openolt.Empty, error)
- func (o OltDevice) ReenableOlt(context.Context, *openolt.Empty) (*openolt.Empty, error)
- func (s OltDevice) RemoveTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*openolt.Empty, error)
- func (s OltDevice) RemoveTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*openolt.Empty, error)
- func (o OltDevice) UplinkPacketOut(context context.Context, packet *openolt.UplinkPacket) (*openolt.Empty, error)
- type OltIndicationMessage
- type OmciMessage
- type Onu
- type OnuDiscIndicationMessage
- type OnuFlowUpdateMessage
- type OnuIndicationMessage
- type OperState
- type PacketMessage
- type PonIndicationMessage
- type PonPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { Type MessageType Data interface{} }
type MessageType ¶
type MessageType int
const ( OltIndication MessageType = 0 NniIndication MessageType = 1 PonIndication MessageType = 2 OnuDiscIndication MessageType = 3 OnuIndication MessageType = 4 OMCI MessageType = 5 FlowUpdate MessageType = 6 StartEAPOL MessageType = 7 StartDHCP MessageType = 8 DyingGaspIndication MessageType = 9 )
func (MessageType) String ¶
func (m MessageType) String() string
type NniIndicationMessage ¶
type NniPort ¶
type OltDevice ¶
type OltDevice struct { // BBSIM Internals ID int SerialNumber string NumNni int NumPon int NumOnuPerPon int InternalState *fsm.FSM Pons []PonPort Nnis []NniPort // OLT Attributes OperState *fsm.FSM // contains filtered or unexported fields }
func (OltDevice) ActivateOnu ¶
func (OltDevice) CollectStatistics ¶
func (OltDevice) CreateTrafficQueues ¶
func (s OltDevice) CreateTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*openolt.Empty, error)
func (OltDevice) CreateTrafficSchedulers ¶
func (s OltDevice) CreateTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*openolt.Empty, error)
func (OltDevice) DeactivateOnu ¶
func (OltDevice) DisableOlt ¶
func (OltDevice) DisablePonIf ¶
func (OltDevice) Enable ¶
func (o OltDevice) Enable(stream openolt.Openolt_EnableIndicationServer) error
func (OltDevice) EnableIndication ¶
func (OltDevice) EnablePonIf ¶
func (OltDevice) FlowRemove ¶
func (OltDevice) GetDeviceInfo ¶
func (OltDevice) GetOnuInfo ¶
func (OltDevice) HeartbeatCheck ¶
func (OltDevice) OmciMsgOut ¶
func (OltDevice) OnuPacketOut ¶
func (OltDevice) ReenableOlt ¶
func (OltDevice) RemoveTrafficQueues ¶
func (s OltDevice) RemoveTrafficQueues(context.Context, *tech_profile.TrafficQueues) (*openolt.Empty, error)
func (OltDevice) RemoveTrafficSchedulers ¶
func (s OltDevice) RemoveTrafficSchedulers(context.Context, *tech_profile.TrafficSchedulers) (*openolt.Empty, error)
func (OltDevice) UplinkPacketOut ¶
type OltIndicationMessage ¶
type OltIndicationMessage struct {
OperState OperState
}
type OmciMessage ¶
type OmciMessage struct { OnuSN *openolt.SerialNumber OnuID uint32 // contains filtered or unexported fields }
type Onu ¶
type Onu struct { ID uint32 PonPortID uint32 PonPort PonPort STag int CTag int HwAddress net.HardwareAddr InternalState *fsm.FSM OperState *fsm.FSM SerialNumber *openolt.SerialNumber Channel chan Message // this Channel is to track state changes and OMCI messages // contains filtered or unexported fields }
Devices
type OnuFlowUpdateMessage ¶
type OnuIndicationMessage ¶
type OnuIndicationMessage struct { OperState OperState PonPortID uint32 OnuID uint32 OnuSN *openolt.SerialNumber }
type PacketMessage ¶
type PonIndicationMessage ¶
Click to show internal directories.
Click to hide internal directories.