#include "O1App.hpp"
#include "GlobalDefs.hpp"
#include "SessionHandler.hpp"
-#include "ConfigInterface.h"
+#include "CmInterface.h"
#include <unistd.h>
+#include "VesUtils.hpp"
+#include "VesEventHandler.hpp"
+
+
/*******************************************************************
*
* @brief Constructor
bool O1App::run()
{
-
+ const int SLEEP_INTERVAL = 2;
+ const int DEFAUL_CELL_ID = 1;
SessionHandler sessHdlr;
+
+ /*setting default cell state disabled*/
+ setCellOpState(DEFAUL_CELL_ID, DISABLED, INACTIVE);
+
/* Start Netconf session and subscribe to yang modules */
try
{
if(mUxSocketServer.setAffinity(O1::CPU_CORE))
{
- O1_LOG("\nO1 O1App : CPU affinity set " );
+ O1_LOG("\nO1 O1App : CPU affinity set for UnixSocketServer thread to " );
mUxSocketServer.printAffinity();
}
- sleep(2);
+ sleep(SLEEP_INTERVAL);
if( mUxSocketServer.isRunning() )
{
mStartupStatus = true;
- O1_LOG("\nO1 O1App : Unix Socket server started\n");
+ O1_LOG("\nO1 O1App : Unix Socket server started");
}
else
{
- O1_LOG("\nO1 O1App : Unix Socket server failed to start\n");
+ O1_LOG("\nO1 O1App : Unix Socket server failed to start");
return false;
}
/* Wait for the Unix Socket Server thread to end*/
}
else
{
- O1_LOG("\nO1 O1App : Unix Socket server failed to start\n");
+ O1_LOG("\nO1 O1App : Unix Socket server failed to start");
return false;
}
return true;