X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FConfigInterface.cpp;h=76c584de3796529334750962bedd77cdf54f1f86;hb=743103e6bd7d291c71a3ffaa77166a2a3a13c6b4;hp=0a283ae51393d0f006a7c85ab2a8f5713a6c501b;hpb=2dc9d6735bc5ff973a761b7d6b3f71f97e95d60e;p=o-du%2Fl2.git diff --git a/src/o1/ConfigInterface.cpp b/src/o1/ConfigInterface.cpp index 0a283ae51..76c584de3 100644 --- a/src/o1/ConfigInterface.cpp +++ b/src/o1/ConfigInterface.cpp @@ -25,6 +25,7 @@ #include "UnixSocketClient.hpp" #include "SessionHandler.hpp" #include "InitConfig.hpp" +#include "NrCellList.hpp" StartupConfig g_cfg; @@ -145,6 +146,30 @@ uint8_t getStartupConfigForStub(StartupConfig *cfg) return O1::FAILURE; } +/******************************************************************* + * + * @brief update cell and operational state + * + * @details + * + * Function : setCellOpState + * + * Functionality: + * - send update of cell and operational state to it's handler + * + * + * @params[in] cellId, opState, cellState + * @return cell operational in string form + ******************************************************************/ + + +bool setCellOpState(uint16_t cellId, OpState opState, CellState cellState) +{ + O1_LOG("\nO1 ConfigInterface: Setting cellId = %d, opState=%d, \ +cellState=%d\n", cellId, opState, cellState); + return NrCellList::instance().setCellOpState(cellId, opState, \ + cellState); +} /********************************************************************** End of file