X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fntsim-ng%2Fcore%2Fapp%2Fnetwork_function.c;fp=ntsimulator%2Fntsim-ng%2Fcore%2Fapp%2Fnetwork_function.c;h=e34d85c2e8b03485e9b54f7c761d92ce9a997747;hb=82d15195f8617207727a8505729c4c2b15383ec3;hp=63f041dfbb79185d1b19ee3358ab2332e779ab16;hpb=9930f2ad0c0927530fb677f1fda46d3dc7d693f2;p=sim%2Fo1-interface.git diff --git a/ntsimulator/ntsim-ng/core/app/network_function.c b/ntsimulator/ntsim-ng/core/app/network_function.c index 63f041d..e34d85c 100644 --- a/ntsimulator/ntsim-ng/core/app/network_function.c +++ b/ntsimulator/ntsim-ng/core/app/network_function.c @@ -44,6 +44,7 @@ #include "features/manual_notification/manual_notification.h" #include "features/netconf_call_home/netconf_call_home.h" #include "features/web_cut_through/web_cut_through.h" +#include "features/ves_o1_pnf_registration/ves_o1_pnf_registration.h" #include "app_common.h" #include "nf_oran_du.h" @@ -296,6 +297,16 @@ int network_function_run(void) { } } + if(strstr(nf_function_control_string, "ves-o1-pnf-registration") != 0) { + if(nf_function_control_string[0] == '1') { + // check if O1 PNF registration is enabled and send PNF registration message if so + rc = ves_o1_pnf_registration_feature_start(session_running); + if(rc != 0) { + log_error("ves_o1_pnf_registration_feature_start() failed\n"); + } + } + } + if(strstr(nf_function_control_string, "ves-heartbeat") != 0) { if(nf_function_control_string[0] == '1') { // start feature for handling the heartbeat VES message @@ -698,7 +709,11 @@ static int network_function_info_get_items_cb(sr_session_ctx_t *session, const c if(web_cut_through_feature_get_status()) { strcat(started_features, "web-cut-through "); } - + + if(ves_o1_pnf_registration_feature_get_status()) { + strcat(started_features, "ves-o1-pnf-registration "); + } + if(strlen(started_features)) { started_features[strlen(started_features) - 1] = 0; }