Documentation ¶
Index ¶
- Variables
- func NewEthernetExtended64BitStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- func NewEthernetExtendedStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- func NewMacBridgePortDownstreamStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- func NewMacBridgePortStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- func NewMacBridgePortUpstreamStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- func NewMacBridgeStatistics(instanceID uint16, control *interfaces.PMControlBlock, intervalEndTime uint8) *interfaces.Statistics
- type Bridge
- func (b *Bridge) Configuration() interface{}
- func (b *Bridge) Disable() error
- func (b *Bridge) Enable() error
- func (b *Bridge) GetExtendedStatistics(cid me.ClassID, eid uint16) *interfaces.Statistics
- func (b *Bridge) ID() uint
- func (b *Bridge) Input() chan<- interface{}
- func (b *Bridge) IsEnabled() bool
- func (b *Bridge) MacBridgeServiceProfileHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (b *Bridge) Name() string
- func (b *Bridge) Parent() interfaces.ICommon
- func (b *Bridge) RxFrame(packet gopacket.Packet, sender interface{})
- func (b *Bridge) SetExtendedStatistics(cid me.ClassID, stats *interfaces.Statistics) me.OmciErrors
- func (b *Bridge) String() string
- type BridgeManager
- func (bMgr *BridgeManager) EthernetFrameExtendedPmHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) EthernetFramePerformanceMonitoringHistoryDataDownstreamHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) EthernetFramePerformanceMonitoringHistoryDataUpstreamHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) GetBridgePort(eid uint16) interfaces.IBridgePort
- func (bMgr *BridgeManager) GetBridgeService(eid uint16) interfaces.IBridge
- func (bMgr *BridgeManager) GetVlanTaggingFilterData(eid uint16) *VlanTaggingFilterData
- func (bMgr *BridgeManager) MacBridgeConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) MacBridgePerformanceMonitoringHistoryDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) MacBridgePortConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) MacBridgePortDesignationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) MacBridgePortPerformanceMonitoringHistoryDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) MacBridgeServiceProfileHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bMgr *BridgeManager) VlanTaggingFilterDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- type BridgePort
- func (bPort *BridgePort) GetExtendedStatistics(cid me.ClassID, eid uint16) *interfaces.Statistics
- func (bPort *BridgePort) MacBridgePortConfigurationDataHandler(request *me.ManagedEntity, existing *interfaces.MeDbEntry, mt omci.MessageType) gopacket.SerializableLayer
- func (bPort *BridgePort) RxFrame(packet gopacket.Packet, sender interface{})
- func (bPort *BridgePort) SetExtendedStatistics(cid me.ClassID, stats *interfaces.Statistics) me.OmciErrors
- type VlanTaggingFilterData
Constants ¶
This section is empty.
Variables ¶
var EthernetExtended64BitStatisticsNameToIndex map[string]uint
var EthernetExtendedStatisticsNameToIndex map[string]uint
var MacBridgeDownstreamStatisticsNameToIndex map[string]uint
var MacBridgePortStatisticsNameToIndex map[string]uint
var MacBridgeStatisticsNameToIndex map[string]uint
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) GetExtendedStatistics ¶
func (b *Bridge) GetExtendedStatistics(cid me.ClassID, eid uint16) *interfaces.Statistics
func (*Bridge) IsEnabled ¶
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) Parent ¶
func (b *Bridge) Parent() interfaces.ICommon
Parent returns the parent object of this Bridge (an ONU)
func (*Bridge) RxFrame ¶
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
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