[SEBA-836] Sending DHCP request in batches so that the DHCP Server replies to all of them
Change-Id: I1401db10ae298340a7dbbe897de66b7bdd47df7e
diff --git a/cmd/bbsim/bbsim.go b/cmd/bbsim/bbsim.go
index e7eef11..eea4b95 100644
--- a/cmd/bbsim/bbsim.go
+++ b/cmd/bbsim/bbsim.go
@@ -153,6 +153,7 @@
"TotalOnus": options.NumPonPerOlt * options.NumOnuPerPon,
"Auth": options.Auth,
"Dhcp": options.Dhcp,
+ "Delay": options.Delay,
}).Info("BroadBand Simulator is on")
// control channels, they are only closed when the goroutine needs to be terminated
@@ -170,6 +171,7 @@
close(oltDoneChannel)
}()
+
wg := sync.WaitGroup{}
wg.Add(5)
@@ -184,8 +186,10 @@
&apiDoneChannel,
options.Auth,
options.Dhcp,
+ options.Delay,
false,
)
+
go devices.StartOlt(olt, &wg)
log.Debugf("Created OLT with id: %d", options.OltID)
go startApiServer(apiDoneChannel, &wg)