intf-id standardization for alarm indications.
For detailed description: https://jira.opencord.org/browse/VOL-4384
Change-Id: I06a7583f94004e215346d9881fb2d91de2731f91
diff --git a/internal/pkg/core/openolt_eventmgr.go b/internal/pkg/core/openolt_eventmgr.go
index 67945dd..858d5f7 100644
--- a/internal/pkg/core/openolt_eventmgr.go
+++ b/internal/pkg/core/openolt_eventmgr.go
@@ -304,7 +304,7 @@
context := make(map[string]string)
/* Populating event context */
- context[ContextOltPonIntfID] = strconv.FormatUint(uint64(oltLos.IntfId), base10)
+ context[ContextOltPonIntfID] = strconv.FormatUint(uint64(ponIntdID), base10)
/* Populating device event body */
de.Context = context
de.ResourceId = deviceID
@@ -335,7 +335,7 @@
if err := em.eventProxy.SendDeviceEvent(ctx, &de, voltha.EventCategory_COMMUNICATION, voltha.EventSubCategory_PON, raisedTs); err != nil {
return err
}
- logger.Debugw(ctx, "olt-los-event-sent-to-kafka", log.Fields{"intf-id": oltLos.IntfId})
+ logger.Debugw(ctx, "olt-los-event-sent-to-kafka", log.Fields{"intf-id": ponIntdID})
return nil
}