[VOL-4819] REST Interface for device and ports
Change-Id: I10e136ad5cfe32878fbbca5f897491de721c2fba
diff --git a/internal/pkg/vpagent/refresh.go b/internal/pkg/vpagent/refresh.go
index 2761408..71e33ad 100644
--- a/internal/pkg/vpagent/refresh.go
+++ b/internal/pkg/vpagent/refresh.go
@@ -105,15 +105,25 @@
vpa.mapLock.Lock()
defer vpa.mapLock.Unlock()
var serialNum = "Unknown"
+ var mfrDesc = "Unknown"
+ var hwDesc = "Unknown"
+ var swDesc = "Unknown"
if device.Desc != nil {
serialNum = device.Desc.SerialNum
+ mfrDesc = device.Desc.MfrDesc
+ hwDesc = device.Desc.HwDesc
+ swDesc = device.Desc.SwDesc
}
vpc := vpa.clientMap[device.Id]
if vpc == nil {
vpa.VPClientAgent.AddNewDevice(&intf.VPClientCfg{
DeviceID: device.Id,
SerialNum: serialNum,
+ MfrDesc: mfrDesc,
+ HwDesc: hwDesc,
+ SwDesc: swDesc,
SouthBoundID: device.RootDeviceId,
+ TimeStamp: time.Now(),
VolthaClient: vpa.volthaClient,
PacketOutChannel: vpa.packetOutChannel,
})