Fixing alarms in poweron/shutdown and added events for flow
Change-Id: Id21128dc0a46f3efd1247e5339d7b2f9cba4c580
diff --git a/internal/bbsim/api/onus_handler.go b/internal/bbsim/api/onus_handler.go
index 330621a..116199a 100644
--- a/internal/bbsim/api/onus_handler.go
+++ b/internal/bbsim/api/onus_handler.go
@@ -19,6 +19,7 @@
import (
"context"
"fmt"
+
"github.com/opencord/bbsim/api/bbsim"
"github.com/opencord/bbsim/internal/bbsim/alarmsim"
"github.com/opencord/bbsim/internal/bbsim/devices"
@@ -404,7 +405,7 @@
}
losReq := bbsim.ONUAlarmRequest{
- AlarmType: "LossOfSignal",
+ AlarmType: "ONU_ALARM_LOS",
SerialNumber: onu.Sn(),
Status: "off",
}
@@ -457,7 +458,7 @@
olt := devices.GetOLT()
dyingGasp := bbsim.ONUAlarmRequest{
- AlarmType: "DyingGasp",
+ AlarmType: "DYING_GASP",
SerialNumber: onu.Sn(),
Status: "on",
}
@@ -474,7 +475,7 @@
}
losReq := bbsim.ONUAlarmRequest{
- AlarmType: "LossOfSignal",
+ AlarmType: "ONU_ALARM_LOS",
SerialNumber: onu.Sn(),
Status: "on",
}