X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_msg_hdl.c;h=6fb4026d4585175ef3e0abf94cd455674228982c;hb=791615463ef2fcc0d6e0697d7860e6e6a56bd9a6;hp=e29be40883bc494eda405aad8caa2eb812847318;hpb=ba78fa13b01e0729fe0a6a7a18cbf1d52cdcda1c;p=o-du%2Fl2.git diff --git a/src/du_app/du_msg_hdl.c b/src/du_app/du_msg_hdl.c index e29be4088..6fb4026d4 100644 --- a/src/du_app/du_msg_hdl.c +++ b/src/du_app/du_msg_hdl.c @@ -40,6 +40,13 @@ #include "du_utils.h" #include "du_cell_mgr.h" +#ifdef O1_ENABLE + +#include "GlobalDefs.h" +#include "AlarmInterface.h" + +#endif + uint8_t rlcDlCfg = 0; uint8_t numRlcDlSaps = 0; uint8_t rlcUlCfg = 0; @@ -1636,7 +1643,7 @@ uint8_t duHandleSlotInd(Pst *pst, SlotIndInfo *slotInfo) if(slotInfo->cellId <=0 || slotInfo->cellId > MAX_NUM_CELL) { - DU_LOG("\nDU APP : Invalid Cell Id %d", slotInfo->cellId); + DU_LOG("\nDU APP : Invalid Cell Id %d in duHandleSlotInd()", slotInfo->cellId); return RFAILED; } @@ -1651,6 +1658,11 @@ uint8_t duHandleSlotInd(Pst *pst, SlotIndInfo *slotInfo) { DU_LOG("\nDU APP : 5G-NR Cell %d is UP", slotInfo->cellId); cellCb->cellStatus = ACTIVATED; + +#ifdef O1_ENABLE + DU_LOG("\nDU APP : Raise cell UP alarm for cell id=%d", slotInfo->cellId); + raiseCellAlrm(CELL_UP_ALARM_ID, slotInfo->cellId); +#endif } } @@ -1772,7 +1784,7 @@ uint8_t duHandleStopInd(Pst *pst, MacCellStopInfo *cellStopId) if(cellStopId->cellId <=0 || cellStopId->cellId > MAX_NUM_CELL) { - DU_LOG("\nDU APP : Invalid Cell Id %d", cellStopId->cellId); + DU_LOG("\nDU APP : Invalid Cell Id %d in duHandleStopInd()", cellStopId->cellId); } if(duGetCellCb(cellStopId->cellId, &cellCb) != ROK) @@ -1785,6 +1797,11 @@ uint8_t duHandleStopInd(Pst *pst, MacCellStopInfo *cellStopId) { DU_LOG("\nDU APP : 5G-NR Cell %d is DOWN", cellStopId->cellId); cellCb->cellStatus = DELETION_IN_PROGRESS; + +#ifdef O1_ENABLE + DU_LOG("\nDU APP : Raise cell down alarm for cell id=%d", cellStopId->cellId); + raiseCellAlrm(CELL_DOWN_ALARM_ID, cellStopId->cellId); +#endif } } if((pst->selector == ODU_SELECTOR_LWLC) || (pst->selector == ODU_SELECTOR_TC))