VOL-5212:Unable to fetch PON RX power for all the ONTs on a PON port
Change-Id: I3faa37b1a72eb0dde0bebb9a91d54e42562fe5d8
diff --git a/VERSION b/VERSION
index b98ff4c..c966188 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.4.6
+4.4.7
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index 2b3e43e..c5698fe 100755
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -3688,7 +3688,6 @@
logger.Errorw(ctx, "getPONRxPower invalid portType", log.Fields{"oltPortType": portInfo[0]})
return errResp(extension.GetValueResponse_ERROR, extension.GetValueResponse_INVALID_PORT_TYPE)
}
- ponIntdID := plt.PortNoToIntfID((uint32)(portNumber), voltha.Port_PON_OLT)
if serialNumber != "" {
@@ -3721,9 +3720,9 @@
} else {
dh.onus.Range(func(Onukey interface{}, onuInCache interface{}) bool {
- if onuInCache.(*OnuDevice).intfID == ponIntdID {
+ if onuInCache.(*OnuDevice).intfID == (uint32)(portNumber) {
- Onu := oop.Onu{IntfId: ponIntdID, OnuId: onuInCache.(*OnuDevice).onuID}
+ Onu := oop.Onu{IntfId: (uint32)(portNumber), OnuId: onuInCache.(*OnuDevice).onuID}
rxPower, err := dh.Client.GetPonRxPower(ctx, &Onu)
if err != nil {
logger.Errorw(ctx, "error-while-getting-rx-power, however considering to proceed further with other ONUs on PON", log.Fields{"Onu": Onu, "err": err})