[VOL-3623] Reporting the correct SerialNumber as part of the ONUG request
Change-Id: If6140e96657a2ed38bcc83170131ae95c02bb4b6
diff --git a/vendor/github.com/opencord/omci-sim/omci_sim.go b/vendor/github.com/opencord/omci-sim/omci_sim.go
index 6195168..e1ea77f 100644
--- a/vendor/github.com/opencord/omci-sim/omci_sim.go
+++ b/vendor/github.com/opencord/omci-sim/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()