Adding counter type in response VOL-4272
Change-Id: Ifa295c76f25d56d0ebd3a6b4fae2caf03518dd2d
diff --git a/internal/pkg/commands/devices.go b/internal/pkg/commands/devices.go
index cce5f05..b8fdc71 100644
--- a/internal/pkg/commands/devices.go
+++ b/internal/pkg/commands/devices.go
@@ -106,7 +106,8 @@
DFrames_128To_255Octets: {{.DFrames_128To_255Octets}}
DFrames_256To_511Octets: {{.DFrames_256To_511Octets}}
DFrames_512To_1023Octets: {{.DFrames_512To_1023Octets}}
-DFrames_1024To_1518Octets: {{.DFrames_1024To_1518Octets}}`
+DFrames_1024To_1518Octets: {{.DFrames_1024To_1518Octets}}
+PmFormat: {{.PmFormat}}`
)
type DeviceList struct {
diff --git a/internal/pkg/commands/stats.go b/internal/pkg/commands/stats.go
index a91f9d0..1fe9c4c 100644
--- a/internal/pkg/commands/stats.go
+++ b/internal/pkg/commands/stats.go
@@ -200,6 +200,8 @@
func buildOnuEthernetFrameExtendedPmOutputFormat(counters *extension.GetOmciEthernetFrameExtendedPmResponse) model.OnuEthernetFrameExtendedPm {
onuStats := model.OnuEthernetFrameExtendedPm{}
+ onuStats.PmFormat = counters.GetOmciEthernetFrameExtendedPmFormat().String()
+
dropEvents := counters.Upstream.GetDropEvents()
onuStats.UDropEvents = &dropEvents