Fixing BBR
As part of SEBA-927 BBSim expect VOLTHA to send back the OnuId and thus
BBR should behave the same way
Change-Id: I364c665c37385885310d8cfa1639b0f5037ed473
diff --git a/cmd/bbr/bbr.go b/cmd/bbr/bbr.go
index 4c83789..c5a373d 100644
--- a/cmd/bbr/bbr.go
+++ b/cmd/bbr/bbr.go
@@ -64,6 +64,8 @@
"NumOnuPerPon": options.Olt.OnusPonPort,
"BBSimIp": options.BBSimIp,
"BBSimPort": options.BBSimPort,
+ "LogLevel": options.BBR.LogLevel,
+ "TotalOnus": options.Olt.PonPorts * options.Olt.OnusPonPort,
}).Info("BroadBand Reflector is on")
// create the OLT device
@@ -80,6 +82,9 @@
options.BBSim.ControlledActivation,
true,
)
+
+ onuIdMap := make(map[uint32]uint32, options.Olt.PonPorts)
+
oltMock := bbrdevices.OltMock{
Olt: olt,
TargetOnus: int(options.Olt.PonPorts * options.Olt.OnusPonPort),
@@ -87,6 +92,7 @@
BBSimIp: options.BBSimIp,
BBSimPort: options.BBSimPort,
BBSimApiPort: options.BBSimApiPort,
+ LastUsedOnuId: onuIdMap,
}
// start the enable sequence