alarmsim

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlarmNameToEnum added in v0.0.16

func AlarmNameToEnum(name string) (bbsim.AlarmType_Types, error)

func BuildOnuAlarmIndication added in v0.0.18

func BuildOnuAlarmIndication(req *bbsim.ONUAlarmRequest, o *devices.OltDevice) (*openolt.AlarmIndication, error)

BuildOnuAlarmIndication function forms openolt alarmIndication as per ONUAlarmRequest

func IsNniPortPresentInOlt added in v0.0.18

func IsNniPortPresentInOlt(nniPort uint32) bool

IsNniPortPresentInOlt verifies if given nni port is present in olt

func IsPonPortPresentInOlt added in v0.0.18

func IsPonPortPresentInOlt(PonPort uint32) bool

IsPonPortPresentInOlt verifies if given Pon port is present in olt

func SimulateOltAlarm added in v0.0.18

func SimulateOltAlarm(ctx context.Context, req *bbsim.OLTAlarmRequest, o *devices.OltDevice) error

SimulateOltAlarm accept request for Olt alarms and send proper alarmIndication to openolt stream

func SimulateOnuAlarm added in v0.0.18

func SimulateOnuAlarm(ctx context.Context, req *bbsim.ONUAlarmRequest, o *devices.OltDevice) error

SimulateOnuAlarm accept request for Onu alarms and send proper alarmIndication to openolt stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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