VOL-2967: Remove redundant variables from DeviceHandler struct
Change-Id: I09f119ef3cd41f13b8a2ada612cdc9aa009f2409
diff --git a/internal/pkg/core/statsmanager.go b/internal/pkg/core/statsmanager.go
index c5c44db..5d742d0 100755
--- a/internal/pkg/core/statsmanager.go
+++ b/internal/pkg/core/statsmanager.go
@@ -197,10 +197,10 @@
// Northbound and Southbound ports
// added to initialize the pm_metrics
var Ports interface{}
- Ports, _ = InitPorts("nni", Dev.deviceID, 1)
+ Ports, _ = InitPorts("nni", Dev.device.Id, 1)
StatMgr.NorthBoundPort, _ = Ports.(map[uint32]*NniPort)
NumPonPorts := Dev.resourceMgr.DevInfo.GetPonPorts()
- Ports, _ = InitPorts("pon", Dev.deviceID, NumPonPorts)
+ Ports, _ = InitPorts("pon", Dev.device.Id, NumPonPorts)
StatMgr.SouthBoundPort, _ = Ports.(map[uint32]*PonPort)
return &StatMgr
}