Documentation ¶
Index ¶
- Variables
- func AlarmNameToEnum(name string) (*bbsim.AlarmType_Types, error)
- func BuildOnuAlarmIndication(req *bbsim.ONUAlarmRequest, o *devices.OltDevice) (*openolt.AlarmIndication, error)
- func InterfaceIDToPortNo(req *bbsim.OLTAlarmRequest) uint32
- func IsNniPortPresentInOlt(nniPort uint32) bool
- func IsPonPortPresentInOlt(PonPort uint32) bool
- func SimulateOltAlarm(ctx context.Context, req *bbsim.OLTAlarmRequest, o *devices.OltDevice) error
- func SimulateOnuAlarm(ctx context.Context, req *bbsim.ONUAlarmRequest, o *devices.OltDevice) error
Constants ¶
This section is empty.
Variables ¶
View Source
var OltAlarmNameMap = map[string]bbsim.AlarmType_Types{ "PonLossOfSignal": bbsim.AlarmType_LOS, "NniLossOfSignal": bbsim.AlarmType_LOS, }
OltAlarmNameMap string to enum map
View Source
var OnuAlarmNameMap = map[string]bbsim.AlarmType_Types{ "DyingGasp": bbsim.AlarmType_DYING_GASP, "StartupFailure": bbsim.AlarmType_ONU_STARTUP_FAILURE, "SignalDegrade": bbsim.AlarmType_ONU_SIGNAL_DEGRADE, "DriftOfWindow": bbsim.AlarmType_ONU_DRIFT_OF_WINDOW, "LossOfOmciChannel": bbsim.AlarmType_ONU_LOSS_OF_OMCI_CHANNEL, "SignalsFailure": bbsim.AlarmType_ONU_SIGNALS_FAILURE, "TransmissionInterference": bbsim.AlarmType_ONU_TRANSMISSION_INTERFERENCE_WARNING, "ActivationFailure": bbsim.AlarmType_ONU_ACTIVATION_FAILURE, "ProcessingError": bbsim.AlarmType_ONU_PROCESSING_ERROR, "LossOfKeySyncFailure": bbsim.AlarmType_ONU_LOSS_OF_KEY_SYNC_FAILURE, "LossOfSignal": bbsim.AlarmType_ONU_ALARM_LOS, "LossOfBurst": bbsim.AlarmType_ONU_ALARM_LOB, "LOPC_MISS": bbsim.AlarmType_ONU_ALARM_LOPC_MISS, "LOPC_MIC_ERROR": bbsim.AlarmType_ONU_ALARM_LOPC_MIC_ERROR, "LossOfFrame": bbsim.AlarmType_ONU_ALARM_LOFI, "LossOfPloam": bbsim.AlarmType_ONU_ALARM_LOAMI, }
OnuAlarmNameMap string to enum map
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 InterfaceIDToPortNo ¶ added in v0.0.18
func InterfaceIDToPortNo(req *bbsim.OLTAlarmRequest) uint32
InterfaceIDToPortNo converts InterfaceID to voltha PortID Refer openolt adapter code(master) voltha-openolt-adapter/adaptercore/olt_platform.go: IntfIDToPortNo()
func IsNniPortPresentInOlt ¶ added in v0.0.18
IsNniPortPresentInOlt verifies if given nni port is present in olt
func IsPonPortPresentInOlt ¶ added in v0.0.18
IsPonPortPresentInOlt verifies if given Pon port is present in olt
func SimulateOltAlarm ¶ added in v0.0.18
SimulateOltAlarm accept request for Olt alarms and send proper alarmIndication to openolt stream
func SimulateOnuAlarm ¶ added in v0.0.18
SimulateOnuAlarm accept request for Onu alarms and send proper alarmIndication to openolt stream
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.