From: Tuan Nguyen Date: Mon, 3 Jun 2024 10:59:49 +0000 (+0000) Subject: SIM-119: Update value of MeasurementTypeName and MeasurementTypeID to constraint X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;ds=inline;p=sim%2Fe2-interface.git SIM-119: Update value of MeasurementTypeName and MeasurementTypeID to constraint Change-Id: I72fce472e941571b5e8ad2256051ce1257d58a61 Signed-off-by: Tuan Nguyen --- diff --git a/e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp b/e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp index 676c5a1..7ab086c 100755 --- a/e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp +++ b/e2sim/e2sm_examples/kpm_e2sm/src/kpm/encode_kpm.cpp @@ -28,8 +28,8 @@ using namespace std; const char* performance_measurements[] = { - "DRB.RlcSduTransmittedVolumeDL_Filter", - "DRB.RlcSduTransmittedVolumeUL_Filter", + "DRB.RlcSduTransmittedVolumeDL", + "DRB.RlcSduTransmittedVolumeUL", "DRB.PerDataVolumeDLDist.Bin", "DRB.PerDataVolumeULDist.Bin", "DRB.RlcPacketDropRateDLDist", @@ -103,7 +103,7 @@ void encode_kpm_function_description(E2SM_KPM_RANfunction_Description_t* ranfunc measItem->measName.size = strlen((char*)metrics); measItem->measID = (MeasurementTypeID_t*)calloc(1, sizeof(MeasurementTypeID_t)); - *measItem->measID = i; + *measItem->measID = i+1; ASN_SEQUENCE_ADD(&measInfo_Action_List->list, measItem); } @@ -308,6 +308,7 @@ void ue_meas_kpm_report_indication_message_initialized( if (ret) { LOG_I("Constraint validation of indication message failed: %s", error_buf); + exit(1); } // xer_fprint(stderr, &asn_DEF_E2SM_KPM_IndicationMessage, indicationmessage); @@ -404,6 +405,7 @@ void cell_meas_kpm_report_indication_message_style_1_initialized( if (ret) { LOG_I("Constraint validation of indication message failed: %s\n", error_buf); + exit(1); } } @@ -453,6 +455,7 @@ void encode_kpm_report_style1(E2SM_KPM_IndicationMessage_t* indicationmessage) { if (ret) { LOG_I("Constraint validation of indication message failed: %s\n", error_buf); + exit(1); } uint8_t e2smbuffer[8192] = {