Version: v1.8.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type ByteMsg

type ByteMsg struct {
	IntfId uint32
	OnuId  uint32
	Bytes  []byte

deprecated, use OnuPacketOutMessage instead

type IgmpMessage added in v1.5.0

type IgmpMessage struct {
	GroupAddress string

type Message added in v1.5.0

type Message struct {
	Type MessageType
	Data interface{}

type MessageType added in v1.5.0

type MessageType int
const (
	OltIndication     MessageType = 0
	NniIndication     MessageType = 1
	PonIndication     MessageType = 2
	OnuDiscIndication MessageType = 3
	OnuIndication     MessageType = 4
	OMCI              MessageType = 5
	FlowAdd           MessageType = 6
	FlowRemoved       MessageType = 18
	StartEAPOL        MessageType = 7
	StartDHCP         MessageType = 8
	OnuPacketOut      MessageType = 9

	// BBR messages
	OmciIndication MessageType = 10 // this are OMCI messages going from the OLT to VOLTHA
	SendEapolFlow  MessageType = 11
	SendDhcpFlow   MessageType = 12
	OnuPacketIn    MessageType = 13

	IGMPMembershipReportV2 MessageType = 14 // Version 2 Membership Report (JOIN)
	IGMPLeaveGroup         MessageType = 15 // Leave Group

	AlarmIndication        MessageType = 16 // message data is an openolt.AlarmIndication
	IGMPMembershipReportV3 MessageType = 17 // Version 3 Membership Report
	UniStatusAlarm         MessageType = 19

func (MessageType) String added in v1.5.0

func (m MessageType) String() string

type NniIndicationMessage added in v1.5.0

type NniIndicationMessage struct {
	OperState OperState
	NniPortID uint32

type OltIndicationMessage added in v1.5.0

type OltIndicationMessage struct {
	OperState OperState

type OmciIndicationMessage added in v1.5.0

type OmciIndicationMessage struct {
	OnuSN   *openolt.SerialNumber
	OnuID   uint32
	OmciInd *openolt.OmciIndication

these are OMCI messages going from the OLT to VOLTHA these messages are received by BBR

type OmciMessage added in v1.5.0

type OmciMessage struct {
	OnuSN   *openolt.SerialNumber
	OnuID   uint32
	OmciMsg *omci.OMCI
	OmciPkt gopacket.Packet

these are OMCI messages going from VOLTHA to the OLT used by BBSim

type OnuDiscIndicationMessage added in v1.5.0

type OnuDiscIndicationMessage struct {
	OperState OperState

type OnuFlowUpdateMessage added in v1.5.0

type OnuFlowUpdateMessage struct {
	PonPortID uint32
	OnuID     uint32
	Flow      *openolt.Flow

type OnuIndicationMessage added in v1.5.0

type OnuIndicationMessage struct {
	OperState OperState
	PonPortID uint32
	OnuID     uint32
	OnuSN     *openolt.SerialNumber

type OnuPacketMessage added in v1.5.0

type OnuPacketMessage struct {
	IntfId     uint32
	OnuId      uint32
	PortNo     uint32
	Packet     gopacket.Packet
	Type       packetHandlers.PacketType
	MacAddress net.HardwareAddr
	GemPortId  uint32 // this is used by BBR

type OperState added in v1.5.0

type OperState int
const (
	UP   OperState = iota
	DOWN           // The device has been discovered, but not yet activated

func (OperState) String added in v1.5.0

func (m OperState) String() string

type PacketMessage added in v1.5.0

type PacketMessage struct {
	PonPortID uint32
	OnuID     uint32

type PacketMsg

type PacketMsg struct {
	Pkt gopacket.Packet

type PonIndicationMessage added in v1.5.0

type PonIndicationMessage struct {
	OperState OperState
	PonPortID uint32

type Stream added in v0.0.2

type Stream interface {
	Send(*openolt.Indication) error

represent a gRPC stream

type UniStatusAlarmMessage added in v1.5.0

type UniStatusAlarmMessage struct {
	OnuSN          *openolt.SerialNumber
	OnuID          uint32
	AdminState     uint8
	EntityID       uint16
	RaiseOMCIAlarm bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL