Cell down alarm notification [Issue-Id: ODUHIGH-430]
[o-du/l2.git] / src / o1 / ves / VesEventHandler.cpp
index 09339cf..18e45a7 100644 (file)
@@ -24,6 +24,8 @@
 #include "PnfRegistrationEvent.hpp"
 #include "SliceMeasurementEvent.hpp"
 #include "Message.hpp"
+#include "CellStateChange.hpp"
+#include "CellStateChangeStdDef.hpp"
 
 /*******************************************************************
  *
@@ -99,6 +101,17 @@ bool VesEventHandler::prepare(VesEventType evtType, const Message* msg)
          O1_LOG("\nO1 VesEventHandler : Preparing VES PM Slice");
          break;
       }
+      case VesEventType::FAULT_NOTIFICATION:
+      {
+         #ifdef StdDef
+         O1_LOG("\nO1 VesEventHandler : Preparing Standard VES fault notification");
+         mVesEvent = new CellStateChangeStdDef();
+         #else
+         O1_LOG("\nO1 VesEventHandler : Preparing VES fault notification");
+         mVesEvent = new CellStateChange();
+         #endif
+         break;
+      }
 
       default:
          O1_LOG("\nO1 VesEventHandler : VES message type does not exist ");