SEBA-806:Bring up ONUs one by one
For simulating onu discovery in a frequency, a time gap inserted between the OnuDiscovery messages generated by BBSIM.
For this, the configurable IndicationInterval parameter is used.
Change-Id: I49e2afb57e8321550898cbe89ee8b17ef580dc44
diff --git a/core/openolt_service.go b/core/openolt_service.go
index fafe1c9..a56b75c 100644
--- a/core/openolt_service.go
+++ b/core/openolt_service.go
@@ -17,7 +17,6 @@
package core
import (
- "time"
"github.com/opencord/voltha-bbsim/common/logger"
"github.com/opencord/voltha-bbsim/device"
@@ -91,8 +90,7 @@
return nil
}
-func sendOnuInd(stream openolt.Openolt_EnableIndicationServer, onu *device.Onu, delay int, operState string, adminState string) error {
- time.Sleep(time.Duration(delay) * time.Millisecond)
+func sendOnuInd(stream openolt.Openolt_EnableIndicationServer, onu *device.Onu, operState string, adminState string) error {
data := &openolt.Indication_OnuInd{OnuInd: &openolt.OnuIndication{
IntfId: onu.IntfID,
OnuId: onu.OnuID,