X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FSessionHandler.cpp;h=4fbe39007cad313e02f77a802a1ebdede9febba3;hb=0c4403cc2355cc38d01c6645b1dad36dd4c1daa7;hp=7c745ac5c0947849f88e85c05c6a8a41116748e4;hpb=a31737d4988c5e02d4998c16973b1048fa2be9a4;p=o-du%2Fl2.git diff --git a/src/o1/SessionHandler.cpp b/src/o1/SessionHandler.cpp index 7c745ac5c..4fbe39007 100644 --- a/src/o1/SessionHandler.cpp +++ b/src/o1/SessionHandler.cpp @@ -25,6 +25,8 @@ #include "SessionHandler.hpp" #include "InitConfig.hpp" #include "NrCellCb.hpp" +#include "NrCellDuCb.hpp" +#include "RrmPolicyCb.hpp" using namespace std; /* Default constructor */ @@ -35,7 +37,7 @@ SessionHandler::SessionHandler() /* Destructor */ SessionHandler::~SessionHandler() -{ +{ } /********************************************************************** @@ -163,6 +165,17 @@ bool SessionHandler::subscribeModule(sysrepo::S_Subscribe subscrb) 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; }