X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2Fves%2FVesEventHandler.cpp;h=bf52f1d50076ff5b6d97697416ea94ad18a9e682;hb=f3ebe72b954b0880bd8a5ddeef806ca29e87af32;hp=60f85137ca9aec069a307c6fab5f5d62d953338f;hpb=e850787b10d1f3882e2501e0eef12737b12d078f;p=o-du%2Fl2.git diff --git a/src/o1/ves/VesEventHandler.cpp b/src/o1/ves/VesEventHandler.cpp index 60f85137c..bf52f1d50 100644 --- a/src/o1/ves/VesEventHandler.cpp +++ b/src/o1/ves/VesEventHandler.cpp @@ -24,6 +24,9 @@ #include "PnfRegistrationEvent.hpp" #include "SliceMeasurementEvent.hpp" #include "Message.hpp" +#include "CellStateChange.hpp" +#include "CellStateChangeStdDef.hpp" +#include "SliceMeasurementEventStdDef.hpp" /******************************************************************* * @@ -95,8 +98,24 @@ bool VesEventHandler::prepare(VesEventType evtType, const Message* msg) } case VesEventType::PM_SLICE: { + #ifdef StdDef + mVesEvent = new SliceMeasurementEventStdDef; + O1_LOG("\nO1 VesEventHandler : Preparing Standard VES PM Slice"); + #else mVesEvent = new SliceMeasurementEvent; O1_LOG("\nO1 VesEventHandler : Preparing VES PM Slice"); + #endif + 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; } @@ -105,6 +124,7 @@ bool VesEventHandler::prepare(VesEventType evtType, const Message* msg) ret = false; break; } + mVesEvent->init(); if(!mVesEvent->prepare(msg)) { O1_LOG("\nO1 VesEventHandler : Failed to prepare VES message"); ret = false;