[SEBA-836] Sending DHCP request in batches so that the DHCP Server replies to all of them
Change-Id: I1401db10ae298340a7dbbe897de66b7bdd47df7e
diff --git a/internal/bbsim/devices/olt.go b/internal/bbsim/devices/olt.go
index 6b15de4..6484896 100644
--- a/internal/bbsim/devices/olt.go
+++ b/internal/bbsim/devices/olt.go
@@ -52,6 +52,8 @@
apiDoneChannel *chan bool
nniPktInChannel chan *bbsim.PacketMsg
+ Delay int
+
Pons []*PonPort
Nnis []*NniPort
@@ -65,7 +67,7 @@
return &olt
}
-func CreateOLT(oltId int, nni int, pon int, onuPerPon int, sTag int, cTagInit int, oltDoneChannel *chan bool, apiDoneChannel *chan bool, auth bool, dhcp bool, isMock bool) *OltDevice {
+func CreateOLT(oltId int, nni int, pon int, onuPerPon int, sTag int, cTagInit int, oltDoneChannel *chan bool, apiDoneChannel *chan bool, auth bool, dhcp bool, delay int, isMock bool) *OltDevice {
oltLogger.WithFields(log.Fields{
"ID": oltId,
"NumNni": nni,
@@ -88,6 +90,7 @@
oltDoneChannel: oltDoneChannel,
apiDoneChannel: apiDoneChannel,
nniPktInChannel: make(chan *bbsim.PacketMsg, 1024), // packets coming in from the NNI and going to VOLTHA
+ Delay: delay,
}
// OLT State machine