VES PNF Registration Request changes.
[o-du/l2.git] / src / o1 / O1App.cpp
index b4cfbde..05bdf7e 100644 (file)
@@ -27,6 +27,8 @@
 #include "ConfigInterface.h"
 #include <unistd.h>
 
+#include "VesUtils.hpp"
+#include "VesEventHandler.hpp"
 /*******************************************************************
  *
  * @brief Constructor
@@ -89,6 +91,15 @@ bool O1App::run()
 {
     
    SessionHandler sessHdlr;
+   /*send ves PNF registration request*/
+   VesEventHandler vesEvtHdr;
+   O1_LOG("\nO1 O1App : Sending VES Event");
+   if(!vesEvtHdr.send(VesEventType::PNF_REGISTRATION))
+   {
+      O1_LOG("\nO1 O1App : Could not send VES Request");
+      return false;
+   }
+
    /* Start Netconf session and subscribe to yang modules */
    try
    {