From: aa7133@att.com Date: Mon, 20 Apr 2020 08:37:31 +0000 (+0300) Subject: version 4.0.8 X-Git-Tag: 5.4.8~47^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b95f70ecd64b40c455cc4e68e62f60bf5fa49242;p=ric-plt%2Fe2.git version 4.0.8 replace RMR version to 3.8.0 Test fault in BuildXml.h Change-Id: I65d013583390b622d447d9efb9864eeeb88530f9 Signed-off-by: aa7133@att.com --- diff --git a/RIC-E2-TERMINATION/BuildXml.h b/RIC-E2-TERMINATION/BuildXml.h index fe6d757..beca88b 100644 --- a/RIC-E2-TERMINATION/BuildXml.h +++ b/RIC-E2-TERMINATION/BuildXml.h @@ -90,11 +90,18 @@ int buildXmlData(const string &messageName, const string &ieName, vector .child(messageName.c_str()) .child("protocolIEs") .children(ieName.c_str())) { - auto node = tool.child("id"); + // there can be many ieName entries in the messageName so we need only the ones that containes E2SM continers + auto node = tool.child("id"); // get the id to identify the type of the contained message + if (node.empty()) { + mdclog_write(MDCLOG_ERR, "Failed to find ID node in the XML. File %s, line %d", + __FILE__, __LINE__); + continue; + } if (strcmp(node.name(), "id") == 0 && strcmp(node.child_value(), "10") == 0) { auto nodea = tool.child("value"). child("RANfunctions-List"). children("ProtocolIE-SingleContainer"); + for (auto n1 : nodea) { auto n2 = n1.child("value").child("RANfunction-Item").child("ranFunctionDefinition"); n2.remove_children(); diff --git a/RIC-E2-TERMINATION/Dockerfile b/RIC-E2-TERMINATION/Dockerfile index c1b0bd2..3ae2d15 100644 --- a/RIC-E2-TERMINATION/Dockerfile +++ b/RIC-E2-TERMINATION/Dockerfile @@ -39,10 +39,10 @@ RUN cat /opt/e2/RIC-E2-TERMINATION/config/config.conf RUN wget --content-disposition https://github.com/cgreen-devs/cgreen/releases/download/1.2.0/cgreen_1.2.0_amd64.deb \ && dpkg -i cgreen_1.2.0_amd64.deb \ - && wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_3.6.2_amd64.deb/download.deb \ - && dpkg -i rmr_3.6.2_amd64.deb \ - && wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_3.6.2_amd64.deb/download.deb \ - && dpkg -i rmr-dev_3.6.2_amd64.deb + && wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_3.8.0_amd64.deb/download.deb \ + && dpkg -i rmr_3.8.0_amd64.deb \ + && wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_3.8.0_amd64.deb/download.deb \ + && dpkg -i rmr-dev_3.8.0_amd64.deb RUN apt-get install -y libcurl4-gnutls-dev gawk libtbb-dev libtbb-doc libtbb2 libtbb2-dbg \ && cd /opt/e2/RIC-E2-TERMINATION/3rdparty && git clone https://github.com/oktal/pistache.git && cd pistache \ @@ -92,8 +92,8 @@ COPY --from=ubuntu /usr/local/lib/libnng.so /usr/local/lib/libnng.so COPY --from=ubuntu /usr/local/lib/libnng.so.1 /usr/local/lib/libnng.so.1 COPY --from=ubuntu /usr/local/lib/libnng.so.1.1.0 /usr/local/lib/libnng.so.1.1.0 # -COPY --from=ubuntu /usr/local/lib/librmr_nng.so.3.6.2 /usr/local/lib/librmr_nng.so.3.6.2 -COPY --from=ubuntu /usr/local/lib/librmr_si.so.3.6.2 /usr/local/lib/librmr_si.so.3.6.2 +COPY --from=ubuntu /usr/local/lib/librmr_nng.so.3.8.0 /usr/local/lib/librmr_nng.so.3.8.0 +COPY --from=ubuntu /usr/local/lib/librmr_si.so.3.8.0 /usr/local/lib/librmr_si.so.3.8.0 COPY --from=ubuntu /usr/local/lib/librmr_si.so.3 /usr/local/lib/librmr_si.so.3 COPY --from=ubuntu /usr/local/lib/librmr_si.so /usr/local/lib/librmr_si.so COPY --from=ubuntu /usr/local/lib/librmr_nng.so.3 /usr/local/lib/librmr_nng.so.3