bridge

package
v0.0.0-...-4bc4564 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EthernetExtended64BitStatisticsNameToIndex map[string]uint
View Source
var EthernetExtendedStatisticsNameToIndex map[string]uint
View Source
var MacBridgeDownstreamStatisticsNameToIndex map[string]uint
View Source
var MacBridgePortStatisticsNameToIndex map[string]uint
View Source
var MacBridgeStatisticsNameToIndex map[string]uint
View Source
var MacBridgeUpstreamStatisticsNameToIndex map[string]uint

Functions

func NewEthernetExtended64BitStatistics

func NewEthernetExtended64BitStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

func NewEthernetExtendedStatistics

func NewEthernetExtendedStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

func NewMacBridgePortDownstreamStatistics

func NewMacBridgePortDownstreamStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

func NewMacBridgePortStatistics

func NewMacBridgePortStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

func NewMacBridgePortUpstreamStatistics

func NewMacBridgePortUpstreamStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

func NewMacBridgeStatistics

func NewMacBridgeStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics

Types

type Bridge

type Bridge struct {
	Onu        interfaces.IOnu // Associated
	Manager    *BridgeManager
	PortNumber uint // Port number

	// PM Statistics
	MacBridgeStatistics *interfaces.Statistics
	// contains filtered or unexported fields
}

Bridge is used to model the Bridge of an ONU

func NewBridge

func NewBridge(onu interfaces.IOnu, request *me.ManagedEntity) (*Bridge, me.OmciErrors)

NewBridge is used to construct a new Bridge/PON port for an ONU

func (*Bridge) Configuration

func (b *Bridge) Configuration() interface{}

func (*Bridge) Disable

func (b *Bridge) Disable() error

Disable sends the equivalent of an 'disable' event to the FSM

func (*Bridge) Enable

func (b *Bridge) Enable() error

Enable will move an Bridge into the discoverable state

func (*Bridge) GetExtendedStatistics

func (b *Bridge) GetExtendedStatistics(cid me.ClassID, eid uint16) *interfaces.Statistics

func (*Bridge) ID

func (b *Bridge) ID() uint

func (*Bridge) Input

func (b *Bridge) Input() chan<- interface{}

func (*Bridge) IsEnabled

func (b *Bridge) IsEnabled() bool

IsEnabled returns the current Bridge enable state. An enabled Bridge is activated and able to pass OMCI messages

func (*Bridge) MacBridgeServiceProfileHandler

func (b *Bridge) MacBridgeServiceProfileHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*Bridge) Name

func (b *Bridge) Name() string

func (*Bridge) Parent

func (b *Bridge) Parent() interfaces.ICommon

Parent returns the parent object of this Bridge (an ONU)

func (*Bridge) RxFrame

func (b *Bridge) RxFrame(packet gopacket.Packet, sender interface{})

RxFrame handles frame reception from the PON and is responsible for looking up a matching GEM Port to forward the packet to while updating approprate statistics

func (*Bridge) SetExtendedStatistics

func (b *Bridge) SetExtendedStatistics(cid me.ClassID, stats *interfaces.Statistics) me.OmciErrors

func (*Bridge) String

func (b *Bridge) String() string

Convert type to string

type BridgeManager

type BridgeManager struct {
	// contains filtered or unexported fields
}

BridgeManager is responsible for bridge management.

func NewBridgeManager

func NewBridgeManager(onu interfaces.IOnu) *BridgeManager

func (*BridgeManager) EthernetFrameExtendedPmHandler

func (bMgr *BridgeManager) EthernetFrameExtendedPmHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) EthernetFramePerformanceMonitoringHistoryDataDownstreamHandler

func (bMgr *BridgeManager) EthernetFramePerformanceMonitoringHistoryDataDownstreamHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) EthernetFramePerformanceMonitoringHistoryDataUpstreamHandler

func (bMgr *BridgeManager) EthernetFramePerformanceMonitoringHistoryDataUpstreamHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) GetBridgePort

func (bMgr *BridgeManager) GetBridgePort(eid uint16) interfaces.IBridgePort

func (*BridgeManager) GetBridgeService

func (bMgr *BridgeManager) GetBridgeService(eid uint16) interfaces.IBridge

func (*BridgeManager) GetVlanTaggingFilterData

func (bMgr *BridgeManager) GetVlanTaggingFilterData(eid uint16) *VlanTaggingFilterData

func (*BridgeManager) MacBridgeConfigurationDataHandler

func (bMgr *BridgeManager) MacBridgeConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) MacBridgePerformanceMonitoringHistoryDataHandler

func (bMgr *BridgeManager) MacBridgePerformanceMonitoringHistoryDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) MacBridgePortConfigurationDataHandler

func (bMgr *BridgeManager) MacBridgePortConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) MacBridgePortDesignationDataHandler

func (bMgr *BridgeManager) MacBridgePortDesignationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) MacBridgePortPerformanceMonitoringHistoryDataHandler

func (bMgr *BridgeManager) MacBridgePortPerformanceMonitoringHistoryDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) MacBridgeServiceProfileHandler

func (bMgr *BridgeManager) MacBridgeServiceProfileHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgeManager) VlanTaggingFilterDataHandler

func (bMgr *BridgeManager) VlanTaggingFilterDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

type BridgePort

type BridgePort struct {
	Onu               interfaces.IOnu // Associated ONU
	BridgeService     *Bridge
	VlanTaggingFilter *VlanTaggingFilterData
	// contains filtered or unexported fields
}

BridgePort is used to model the port of a Bridge of an ONU

func NewBridgePort

func NewBridgePort(onu interfaces.IOnu, request *me.ManagedEntity) (*BridgePort, me.OmciErrors)

func (*BridgePort) GetExtendedStatistics

func (bPort *BridgePort) GetExtendedStatistics(cid me.ClassID, eid uint16) *interfaces.Statistics

func (*BridgePort) MacBridgePortConfigurationDataHandler

func (bPort *BridgePort) MacBridgePortConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

func (*BridgePort) RxFrame

func (bPort *BridgePort) RxFrame(packet gopacket.Packet, sender interface{})

RxFrame handles frame reception from the PON or UNI and is responsible for looking up a matching GEM Port to forward the packet to while updating approprate statistics

func (*BridgePort) SetExtendedStatistics

func (bPort *BridgePort) SetExtendedStatistics(cid me.ClassID, stats *interfaces.Statistics) me.OmciErrors

type VlanTaggingFilterData

type VlanTaggingFilterData struct {
	EntityID uint16
	// contains filtered or unexported fields
}

func NewVlanTaggingFilterData

func NewVlanTaggingFilterData(onu interfaces.IOnu, request *me.ManagedEntity) (*VlanTaggingFilterData, me.OmciErrors)

func (*VlanTaggingFilterData) RxFrame

func (vt *VlanTaggingFilterData) RxFrame(packet gopacket.Packet, sender interface{})

RxFrame handles frame reception from the PON and is responsible for looking up a matching GEM Port to forward the packet to while updating approprate statistics

func (*VlanTaggingFilterData) VlanTaggingFilterDataHandler

func (vt *VlanTaggingFilterData) VlanTaggingFilterDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer

Jump to

Keyboard shortcuts

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