VOL-3614 Other multicast ME created after multicast gem detected.
Change-Id: Idc272aa9f6ae3c8da3910031bc226847f253a78f
diff --git a/internal/pkg/onuadaptercore/device_handler.go b/internal/pkg/onuadaptercore/device_handler.go
index 8c46421..8349d51 100644
--- a/internal/pkg/onuadaptercore/device_handler.go
+++ b/internal/pkg/onuadaptercore/device_handler.go
@@ -2443,3 +2443,13 @@
}
return nil
}
+
+// getUniPortMEEntityID takes uniPortNo as the input and returns the Entity ID corresponding to this UNI-G ME Instance
+func (dh *deviceHandler) getUniPortMEEntityID(uniPortNo uint32) (uint16, error) {
+ dh.lockDevice.RLock()
+ defer dh.lockDevice.RUnlock()
+ if uniPort, ok := dh.uniEntityMap[uniPortNo]; ok {
+ return uniPort.entityID, nil
+ }
+ return 0, errors.New("error-fetching-uni-port")
+}