[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_state.go b/vendor/github.com/opencord/omci-sim/omci_state.go
index ddb9921..d1b4332 100644
--- a/vendor/github.com/opencord/omci-sim/omci_state.go
+++ b/vendor/github.com/opencord/omci-sim/omci_state.go
@@ -19,7 +19,6 @@
"errors"
"fmt"
"sync"
- log "github.com/sirupsen/logrus"
)
type OnuOmciState struct {
@@ -61,8 +60,8 @@
s.tcontPointer = 0
s.priorQPriority = 0
}
-func GetOnuOmciState(intfId uint32, onuId uint32) istate {
- key := OnuKey{intfId, onuId}
+func GetOnuOmciState(oltId int, intfId uint32, onuId uint32) istate {
+ key := OnuKey{oltId,intfId, onuId}
OnuOmciStateMapLock.RLock()
defer OnuOmciStateMapLock.RUnlock()
if onu, ok := OnuOmciStateMap[key]; ok {
@@ -72,8 +71,8 @@
}
}
-func GetGemPortId(intfId uint32, onuId uint32) (uint16, error) {
- key := OnuKey{intfId, onuId}
+func GetGemPortId(oltId int, intfId uint32, onuId uint32) (uint16, error) {
+ key := OnuKey{oltId, intfId, onuId}
OnuOmciStateMapLock.RLock()
defer OnuOmciStateMapLock.RUnlock()
if OnuOmciState, ok := OnuOmciStateMap[key]; ok {
@@ -86,8 +85,3 @@
errmsg := fmt.Sprintf("ONU {intfid:%d, onuid:%d} - Failed to find a key in OnuOmciStateMap", intfId, onuId)
return 0, errors.New(errmsg)
}
-
-func CheckIsTeo() string {
- log.Warn("It's TEO!")
- return "It's TEO!"
-}