X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FSessionHandler.cpp;h=4fbe39007cad313e02f77a802a1ebdede9febba3;hb=6dc8a4c17da24847b3a3aee91b37151f77a8a5bc;hp=1f9c0cf0696fdfb56f634947390d6a7568b493c7;hpb=b92944068f8a7b643b333515e424517db4192b61;p=o-du%2Fl2.git diff --git a/src/o1/SessionHandler.cpp b/src/o1/SessionHandler.cpp index 1f9c0cf06..4fbe39007 100644 --- a/src/o1/SessionHandler.cpp +++ b/src/o1/SessionHandler.cpp @@ -24,7 +24,9 @@ #include "sysrepo.h" #include "SessionHandler.hpp" #include "InitConfig.hpp" -#include +#include "NrCellCb.hpp" +#include "NrCellDuCb.hpp" +#include "RrmPolicyCb.hpp" using namespace std; /* Default constructor */ @@ -35,7 +37,7 @@ SessionHandler::SessionHandler() /* Destructor */ SessionHandler::~SessionHandler() -{ +{ } /********************************************************************** @@ -155,6 +157,26 @@ bool SessionHandler::subscribeModule(sysrepo::S_Subscribe subscrb) subscrb->oper_get_items_subscribe(ALARM_MODULE_NAME_ORAN, \ ALARM_MODULE_PATH_ORAN, \ alarmOranCb); + + sysrepo::S_Callback nrCellCb(new NrCellCb()); + + subscrb->oper_get_items_subscribe(CELL_STATE_MODULE_NAME, \ + CELL_STATE_MODULE_PATH, \ + nrCellCb); + subscrb->module_change_subscribe(CELL_STATE_MODULE_NAME, nrCellCb); + + sysrepo::S_Callback nrCellDuCb(new NrCellDuCb()); + subscrb->oper_get_items_subscribe(MANAGED_ELEMENT_MODULE_NAME, \ + MANAGED_ELEMENT_MODULE_PATH, \ + nrCellDuCb); + subscrb->module_change_subscribe(MANAGED_ELEMENT_MODULE_NAME, nrCellDuCb); + + sysrepo::S_Callback rrmPolicyCb(new RrmPolicyCb()); + subscrb->oper_get_items_subscribe(RRMPOLICY_MODULE_NAME, \ + RRMPOLICY_MODULE_PATH, \ + rrmPolicyCb); + subscrb->module_change_subscribe(RRMPOLICY_MODULE_NAME, rrmPolicyCb); + return true; }