[VOL-3623] Reporting the correct SerialNumber as part of the ONUG request
Change-Id: I2041de1a046092c7b3d70cd8b9f5f57c31ace9a6
diff --git a/omci_sim.go b/omci_sim.go
index 6195168..e1ea77f 100644
--- a/omci_sim.go
+++ b/omci_sim.go
@@ -27,7 +27,7 @@
return omciCh
}
-func OmciSim(intfId uint32, onuId uint32, request []byte) ([]byte, error) {
+func OmciSim(oltId int, intfId uint32, onuId uint32, request []byte) ([]byte, error) {
var resp []byte
transactionId, deviceId, msgType, class, instance, content, err := ParsePkt(request)
@@ -50,7 +50,7 @@
"omciMsg": fmt.Sprintf("%x", content),
}).Tracef("Processing OMCI packet")
- key := OnuKey{intfId, onuId}
+ key := OnuKey{OltId: oltId, IntfId: intfId, OnuId: onuId}
OnuOmciStateMapLock.Lock()
if _, ok := OnuOmciStateMap[key]; !ok {
OnuOmciStateMap[key] = NewOnuOmciState()