[VOL-5105] - Add Mapping label port for dmi transceiver
[VOL-5108] - bbsim test failure debugging
Change-Id: I12b85029565c45b7fc27a02847629ffd2fb98ca5
diff --git a/internal/bbsim/dmiserver/dmi_metrics_generator.go b/internal/bbsim/dmiserver/dmi_metrics_generator.go
index 0fd8014..66f7c89 100755
--- a/internal/bbsim/dmiserver/dmi_metrics_generator.go
+++ b/internal/bbsim/dmiserver/dmi_metrics_generator.go
@@ -28,7 +28,7 @@
dmi "github.com/opencord/device-management-interface/go/dmi"
)
-//MetricGenerationFunc to generate the metrics to the kafka bus
+// MetricGenerationFunc to generate the metrics to the kafka bus
type MetricGenerationFunc func(*dmi.Component, *DmiAPIServer) *dmi.Metric
// MetricTriggerConfig is the configuration of a metric and the time at which it will be exported
@@ -37,7 +37,7 @@
t time.Time
}
-//DmiMetricsGenerator has the attributes for generating metrics
+// DmiMetricsGenerator has the attributes for generating metrics
type DmiMetricsGenerator struct {
apiSrv *DmiAPIServer
configuredMetrics map[dmi.MetricNames]MetricTriggerConfig
@@ -47,7 +47,7 @@
var dmiMG DmiMetricsGenerator
-//StartMetricGenerator starts the metric generator
+// StartMetricGenerator starts the metric generator
func StartMetricGenerator(apiSrv *DmiAPIServer) {
log.Debugf("StartMetricGenerator invoked")
// Seed the rand for use later on
@@ -282,7 +282,7 @@
return lValue + randVal
}
-//UpdateMetricConfig Adds/Updates the passed metric configuration
+// UpdateMetricConfig Adds/Updates the passed metric configuration
func UpdateMetricConfig(newCfg *dmi.MetricConfig) {
dmiMG.access.Lock()
dmiMG.configuredMetrics[newCfg.GetMetricId()] = MetricTriggerConfig{