VOL-2496 Add support for SIGNALS_FAILURE alarm
Change-Id: I5806bf58a5dd64e53f753dfd390c32f2829bd3bf
diff --git a/internal/bbsim/alarmsim/alarmsim.go b/internal/bbsim/alarmsim/alarmsim.go
index 3c81265..57c7fe5 100644
--- a/internal/bbsim/alarmsim/alarmsim.go
+++ b/internal/bbsim/alarmsim/alarmsim.go
@@ -86,6 +86,15 @@
InverseBitErrorRate: uint32(extractInt(req.Parameters, "InverseBitErrorRate", 0)),
}},
}
+ case bbsim.AlarmType_ONU_SIGNALS_FAILURE:
+ alarm = &openolt.AlarmIndication{
+ Data: &openolt.AlarmIndication_OnuSignalsFailInd{&openolt.OnuSignalsFailureIndication{
+ Status: req.Status,
+ OnuId: onu.ID,
+ IntfId: onu.PonPortID,
+ InverseBitErrorRate: uint32(extractInt(req.Parameters, "InverseBitErrorRate", 0)),
+ }},
+ }
case bbsim.AlarmType_ONU_DRIFT_OF_WINDOW:
alarm = &openolt.AlarmIndication{
Data: &openolt.AlarmIndication_OnuDriftOfWindowInd{&openolt.OnuDriftOfWindowIndication{