VOL-2324 Alarm - ONU Itu Pon Stats

         This commit addresses two U.S i.e VOL-895 and VOL-2324,
         where ONU remote defect alarm is raised according to the
         data present in the OnuItuPonStatsInd

Change-Id: I1fdc7566fe74e9b376ed2053db01caaeba373979
diff --git a/internal/pkg/core/device_handler.go b/internal/pkg/core/device_handler.go
index a008e65..09df67e 100644
--- a/internal/pkg/core/device_handler.go
+++ b/internal/pkg/core/device_handler.go
@@ -31,8 +31,6 @@
 
 	"github.com/opencord/voltha-lib-go/v3/pkg/flows"
 
-	"google.golang.org/grpc/codes"
-
 	"github.com/cenkalti/backoff/v3"
 	"github.com/gogo/protobuf/proto"
 	"github.com/golang/protobuf/ptypes"
@@ -47,6 +45,7 @@
 	oop "github.com/opencord/voltha-protos/v3/go/openolt"
 	"github.com/opencord/voltha-protos/v3/go/voltha"
 	"google.golang.org/grpc"
+	"google.golang.org/grpc/codes"
 	"google.golang.org/grpc/status"
 )
 
@@ -116,6 +115,7 @@
 	proxyDeviceID string
 	uniPorts      map[uint32]struct{}
 	losRaised     bool
+	rdiRaised     bool
 }
 
 var pmNames = []string{
@@ -2199,6 +2199,15 @@
 	dh.onus.Store(onuKey, onuDevice)
 }
 
+// setOnuITUPonAlarmConfig sets the parameters in the openolt agent for raising the ONU ITU PON alarms.
+func (dh *DeviceHandler) setOnuITUPonAlarmConfig(config *oop.OnuItuPonAlarm) error {
+	if _, err := dh.Client.OnuItuPonAlarmSet(context.Background(), config); err != nil {
+		return err
+	}
+	logger.Debugw("onu-itu-pon-alarm-config-set-successful", log.Fields{"config": config})
+	return nil
+}
+
 func (dh *DeviceHandler) getExtValue(device *voltha.Device, value voltha.ValueType_Type) (*voltha.ReturnValues, error) {
 	var err error
 	var sn *oop.SerialNumber