ric-plt/xapp-frame-cpp.git
10 months agoRMR update and H release step 1 of 2 02/11302/5 2.3.9
czichy [Thu, 8 Jun 2023 11:48:50 +0000 (14:48 +0300)]
RMR update and H release step 1 of 2

Change-Id: I9443d5dc6434d6988e1bcca72513ffd45751714f
Signed-off-by: czichy <thoralf.czichy@nokia.com>
16 months agoReleasing G release step 2 of 2 34/10134/3 g-release
czichy [Wed, 14 Dec 2022 16:32:20 +0000 (18:32 +0200)]
Releasing G release step 2 of 2

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I23de0b33fc644c80480725916555b71dba293aff
Signed-off-by: czichy <thoralf.czichy@nokia.com>
16 months agoReleasing G release step 1 of 2 31/10131/1
czichy [Wed, 14 Dec 2022 15:59:59 +0000 (17:59 +0200)]
Releasing G release step 1 of 2

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I4382fee694e1cc139d62b02da27fac899661304d

16 months agoRIC-641 Fixing client/server model definitions and adding client and server API 73/9973/9
sandeepindia [Mon, 5 Dec 2022 18:47:19 +0000 (00:17 +0530)]
RIC-641 Fixing client/server model definitions and adding client and server API

Signed-off-by: sandeepindia <kumar.sandeep3@hcl.com>
Change-Id: Ic177b9b7c417f1ccc184ae0e945b7748582604fe

16 months agoUpdating RMR version to 4.8.5 24/10024/1
czichy [Thu, 8 Dec 2022 10:33:09 +0000 (12:33 +0200)]
Updating RMR version to 4.8.5

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I81f79b40a4d53dc3a0afe43e0b09472486ea4c4c

17 months agoRIC-641 Add client/server model definitions 01/9501/2
Nhat Anh [Mon, 7 Nov 2022 16:06:23 +0000 (23:06 +0700)]
RIC-641 Add client/server model definitions

Change-Id: I8a3228f261dade6b5ac00a8924ad60bbef0de22c
Signed-off-by: Nhat Anh <anh_ng@hcl.com>
23 months ago ISSUE ID:- RIC-890 02/8102/2 f-release
sandeepindia [Fri, 22 Apr 2022 17:28:51 +0000 (22:58 +0530)]
ISSUE ID:- RIC-890
     Changed base image in dockerfile

 ISSUE ID :- RIC-891
      modified the sequence of unit test in dockerfile.

ISSUE ID:-892
     Now copying the entire content as git repo inside container, inorder to
     fetch submodule jsmn.

Signed-off-by: sandeepindia <kumar.sandeep3@hcl.com>
Change-Id: I11feb554743e7203f758bb92b4a5e643a574d286

2 years agoPush v2.3.6 to package cloud 07/7707/1 2.3.8
Alexandre Huff [Mon, 7 Feb 2022 16:00:17 +0000 (13:00 -0300)]
Push v2.3.6 to package cloud

Issue-ID: RIC-883

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: Ie0d8c2629662976c1594ff551ff0430500651247

2 years agoFix $XAPP_DESCRIPTOR_PATH parser bug 84/7684/1 2.3.6
Alexandre Huff [Sat, 5 Feb 2022 12:54:32 +0000 (09:54 -0300)]
Fix $XAPP_DESCRIPTOR_PATH parser bug

While xapp-frame-cpp assumes that $XAPP_DESCRIPTOR_PATH is a filename, the
xapp-onboarder sets it up as a directory. This assumption causes xapps
based on xapp-frame-cpp to crash on startup even using default helm charts.

This change fixes this bug and adds some logic to determine if the
$XAPP_DESCRIPTOR_PATH is a directory or a filename.
This change also adds test cases for $XAPP_DESCRIPTOR_PATH parser.

Issue-ID: RIC-883

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: I1d29c8c8ae80028accc5d3e29ea571b6365121ac

2 years agoMerge "Push v2.3.5 to package cloud" e-release
Thoralf Czichy [Sun, 5 Dec 2021 18:04:32 +0000 (18:04 +0000)]
Merge "Push v2.3.5 to package cloud"

2 years agoPush v2.3.5 to package cloud 36/7236/2
Anssi Mannila [Fri, 3 Dec 2021 13:18:03 +0000 (15:18 +0200)]
Push v2.3.5 to package cloud

Change-Id: I85c7e6fcceef41add9af8b05da6ff2780ae3d6b7
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
2 years agoAdding minor version in CMakelist 41/7241/1 2.3.5
wahidw [Sun, 5 Dec 2021 15:25:15 +0000 (15:25 +0000)]
Adding minor version in CMakelist

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: Ic433f8b2e7b857580f34c110ad0cb175e8016792

2 years agoFix RMR version in build_rmr.sh file 32/7232/1
Anssi Mannila [Fri, 3 Dec 2021 12:36:44 +0000 (14:36 +0200)]
Fix RMR version in build_rmr.sh file

Change-Id: I4a563e696fb4779041d605a87b23f240839ebf5f
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
2 years agoMake changes for releasing v2.3.5 22/7222/3
Anssi Mannila [Fri, 3 Dec 2021 10:57:11 +0000 (12:57 +0200)]
Make changes for releasing v2.3.5

Change-Id: I7f0ec310b754387505bb9419d158044d9999fef7
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
2 years agoUpdating RMR version 12/7212/1
czichy [Fri, 3 Dec 2021 08:42:34 +0000 (10:42 +0200)]
Updating RMR version

Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: Iad4a76305f578c2d2c968ecd2fe6da6e786da580

2 years agocorrect usage of free for strdup memory 07/7207/2
czichy [Fri, 3 Dec 2021 05:24:54 +0000 (07:24 +0200)]
correct usage of free for strdup memory

Issue-ID: RIC-863
Signed-off-by: czichy <thoralf.czichy@nokia.com>
Change-Id: I7babfc04a57675b3fa53d207b6bd5dd07c84b262

2 years agoPush v2.3.4 to package cloud 04/6404/1 dawn
wahidw [Wed, 23 Jun 2021 12:23:20 +0000 (12:23 +0000)]
Push v2.3.4 to package cloud

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I204a50c5b0d3027580e0ca11ae78c29685bdcf78

2 years agoMake changes for releasing v2.3.4 02/6402/1 2.3.4
wahidw [Wed, 23 Jun 2021 11:41:54 +0000 (11:41 +0000)]
Make changes for releasing v2.3.4

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: I112c2938a41b42c8dd94741850587e8638e63300

2 years agoUpdating RMR to v4.7.4 01/6401/1
wahidw [Wed, 23 Jun 2021 11:25:09 +0000 (11:25 +0000)]
Updating RMR to v4.7.4

Change-Id: I537dfac9bfb08856cad87d037d9b164947ead227
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
3 years agoPush 2.3.3 packages to release in packagecloud 34/5334/1 cherry
E. Scott Daniels [Fri, 11 Dec 2020 19:37:45 +0000 (14:37 -0500)]
Push 2.3.3 packages to release in packagecloud

Issue-ID: RIC-730

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Idc8eb12b6206ffb4db3f4ac0472201ad888d0496

3 years agoVersion bump to force CI jobs to promote packages 33/5333/1 2.3.3
E. Scott Daniels [Fri, 11 Dec 2020 19:01:27 +0000 (14:01 -0500)]
Version bump to force CI jobs to promote packages

The CI jobs failed to build all packages in staging, and there
is no mechanim to force it to build the missing ones. This change
is needed to force the staging packages to rebuild.

Issue-ID: RIC-730

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I6ad5bc3151792c841a9bba07c3a32727ea28b3db

3 years agoMerge "Push the package cloud pacage to release" 2.3.2
Scott Daniels [Fri, 11 Dec 2020 15:06:20 +0000 (15:06 +0000)]
Merge "Push the package cloud pacage to release"

3 years agoPush the package cloud pacage to release 24/5324/1
E. Scott Daniels [Fri, 11 Dec 2020 14:06:10 +0000 (09:06 -0500)]
Push the package cloud pacage to release

Issue_ID: RIC-730

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ice83e0c0bf0569ef821c4e0855f79659d76172b5

3 years agoUpdating RMR version to 4.4.1 53/5053/1
wahidw [Thu, 12 Nov 2020 10:00:12 +0000 (10:00 +0000)]
Updating RMR version to 4.4.1

Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: Iec55e15a0ef4865db89d0e8e5bdd22846f71d7d6

3 years agoAdd unit test stats to output 16/4716/1
E. Scott Daniels [Thu, 17 Sep 2020 19:46:48 +0000 (15:46 -0400)]
Add unit test stats to output

This change adds some summary data to the output as the unit
tests finish. There is also some "code smell" cleanup identified
by sonar.

Issue-ID: RIC-629

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ic0a7629b60981300c2a04f189ffef06cdf6a3c84

3 years agoFix bug introduced with code smell fix 90/4590/1 2.3.1
E. Scott Daniels [Fri, 21 Aug 2020 11:30:28 +0000 (07:30 -0400)]
Fix bug introduced with code smell fix

The change to the message constructor to fix a "code smell" identified
by sonar introduced the use of an uninitialised variable.  This change
fixes this.

Issue-ID: RIC-629

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I2ecf7a558b1b42bc0d225db7b60dbc61016f6f2b

3 years agoCorrect sonar bugs and address smells 63/4563/3
E. Scott Daniels [Wed, 19 Aug 2020 13:51:33 +0000 (09:51 -0400)]
Correct sonar bugs and address smells

Three bugs related to misplaced memory deallocation were fixed.
Several "smells" were addressed in message, messaging, config
and json source.

Issue-ID: RIC-629

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ib2e7d51c96f3b4f88761af6b3058fc32d0005321

3 years agoCorrect potential leaks in xapp class. 46/4546/2
E. Scott Daniels [Thu, 13 Aug 2020 19:12:35 +0000 (15:12 -0400)]
Correct potential leaks in xapp class.

Sonar identified some potential memory leaks in the run function
of the xapp class. This change addresses those issues, and ensures
that the unused parameter grumblings which were attempted to be
corrected in the last change are also addressed.

Issue-ID: RIC-629

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I2fe2f4b681780cd60235a0c38ed4709af871abbe

3 years agoAdd rebuild to unit test script if no lib found 43/4543/1
E. Scott Daniels [Thu, 13 Aug 2020 16:48:38 +0000 (12:48 -0400)]
Add rebuild to unit test script if no lib found

The sonar jenkins jobs do not force a build which is now a problem
for the unit tests as some of them require the framework library
to be found.  This change adds a build step to the unit test
script if the library is missing which will allow the sonar jobs
to run.

Issue-ID: RIC-634

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I34e9a9bf5c6db1a868e390cdfa855e24c0b3b410

3 years agoAddress sonar grumblings 90/4490/3
E. Scott Daniels [Fri, 31 Jul 2020 14:51:24 +0000 (10:51 -0400)]
Address sonar grumblings

The jwrapper parsing code was refactored to address several grumblings
that sonar had about the code and to fix some bad practices.

Issue-ID: RIC-629

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ia42d676613d7eddbaa66a46f325dccd2ed783ad3

3 years agoAdd support for config file parsing and watching 87/4487/4 2.2.0
E. Scott Daniels [Wed, 29 Jul 2020 16:39:54 +0000 (12:39 -0400)]
Add support for config file parsing and watching

This change introduces the ability to load and parse
the json xapp descriptor (config) file. It also provides
the ability for the xAPP to register a callback function
which is executed when the descriptor is changed.

Issue-ID: RIC-428

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I7a1147aa8055599ef4b36ab17960e32ccb5b741f

3 years agoAdd metrics to the framework 29/4429/3 2.1.0
E. Scott Daniels [Wed, 22 Jul 2020 19:49:54 +0000 (15:49 -0400)]
Add metrics to the framework

This change adds support for a metrics class which provides
the API allowing an xAPP to easily create and send a set of
measurements to a central collector for forwarding.

Issue-ID: RIC381

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I0926b26d4862df308ab0863260805fe057785bdc

3 years agoAdd API allowing xAPPs to send alarm messages 07/4407/3 2.0.0
E. Scott Daniels [Wed, 15 Jul 2020 12:03:22 +0000 (08:03 -0400)]
Add API allowing xAPPs to send alarm messages

This change adds the ability for an xAPP to send alarms to
the alarm collector/manager via RMR messages.

This is a BREAKING change because the C++ framework classes
are all now wrapped in the xapp:: namespace.

Issue-ID: RIC-426

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I552292d57e987313ec684bd55f8780ef5fba74fe

3 years agoFix json blob selection bug 87/4387/1
E. Scott Daniels [Tue, 14 Jul 2020 17:38:27 +0000 (13:38 -0400)]
Fix json blob selection bug

The first selection of a blob in the json was ok, but all
subsequent selections failed.

Issue-ID: RIC-596

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I8e7c4b731c15bc98654a8fb9bd052d43bd10adca

3 years agoActually put the JSON doc into the user manual 63/4363/5
E. Scott Daniels [Thu, 9 Jul 2020 15:56:10 +0000 (11:56 -0400)]
Actually put the JSON doc into the user manual

The user manual include statment wasn't pulling the json section.
This change fixes that.

This change also closes some memory leaks in the json wrapper.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I54849c67960fd945a85327a3ff308d7d7651b673

3 years agoAdd json support 79/4279/7
E. Scott Daniels [Mon, 29 Jun 2020 19:39:57 +0000 (15:39 -0400)]
Add json support

The munchkin xAPP needs lightweight json, as might other xAPPs,
so it makes sense to do the work onece and add it to the framework.

Issue-ID: RIC-420

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I20ea999ba77566d1404f0d69be0f63669943236e

3 years agoAdd const qualifier to constructor port parameter 40/4240/1 1.1.0
E. Scott Daniels [Fri, 26 Jun 2020 13:01:52 +0000 (09:01 -0400)]
Add const qualifier to constructor port parameter

The port parameter defined by constructors should have a
const qualifier in order to allow a static string to be
passed. This change adds that qualifier

Issue-ID: RIC-534

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ib5a20825c3ff897cea31a3fbaac58b33dc7633f4

3 years agoCorrect release notes in RTD index 88/4088/1 bronze
E. Scott Daniels [Fri, 12 Jun 2020 17:47:13 +0000 (13:47 -0400)]
Correct release notes in RTD index

The title in the index was incorrect. The release notes are
now generated from the CHANGES log.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Id648e7e9c9c3aed4f4e0e10e127f5bdb89016b47

3 years agoRelease commit for 1.0.0 packages in packagecloud 84/4084/1
E. Scott Daniels [Fri, 12 Jun 2020 12:42:23 +0000 (08:42 -0400)]
Release commit for 1.0.0 packages in packagecloud

This commit will cause the 1.0.0. in Package Cloud to be
moved from the staging area to release.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I93d9c106391b0ac13160056bc2a30d72524ac98d

4 years agoBump version to 1.0.0 for upcoming release 10/3510/1 1.0.0
E. Scott Daniels [Tue, 28 Apr 2020 15:10:48 +0000 (11:10 -0400)]
Bump version to 1.0.0 for upcoming release

Version bump needed to force a rebuild of the package by the
CI jobs (change in CI to package with the standard install
prefix).

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I2976b9224bcdd41e108eeac3fc900ab52b59927c

4 years agoConfigure ReadTheDocs build of xapp-frame-cpp 09/3409/4
Lott, Christopher (cl778h) [Wed, 22 Apr 2020 21:31:33 +0000 (17:31 -0400)]
Configure ReadTheDocs build of xapp-frame-cpp

Rename and adjust some markup in user-guide.rst to pass Sphinx verify

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I24150f0071d4cbdd2ea87f305a752442a984342a

4 years agoAdd user guide 97/3397/4
E. Scott Daniels [Wed, 22 Apr 2020 16:40:27 +0000 (12:40 -0400)]
Add user guide

This change adds the document source for the user guide as well
as the mechanics needed to allow for scraping the repo for RTD
documents.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ib9d36e2f84bfb29f33cdb877abd3927b205fa991

4 years agoUnit test improvements, add example programme 34/3034/1
E. Scott Daniels [Fri, 27 Mar 2020 14:18:37 +0000 (10:18 -0400)]
Unit test improvements, add example programme

This change addresses some sonar flagged issues (move/copy
builders missing), and adds unit tests to support the
addition of those.  The code was slightly adjusted to
better support testing coverage.

The rmr_dump programme was added to the examples.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I9220d75fa6690feebf439cfe97dda43572f20c4e

4 years agoAdd unit tests and changes related 51/2951/10
E. Scott Daniels [Tue, 24 Mar 2020 16:28:06 +0000 (12:28 -0400)]
Add unit tests and changes related

Base unit tests have been added with the means to generate
gcov coverage information and a small amounto of coverage
data.  Some changes were made to the code to make testing
coverage better and to fix identified issues.

Most important are the unique smart ptr changes; the
framework prototypes now require them to be shared pointers
as they are not released/reallocated (e.g. message Send()).

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Ibc593ddc8687ce6d727bf6d3e2939c02f1e0afef

4 years agoInitial source commit 78/2878/6
E. Scott Daniels [Thu, 19 Mar 2020 15:36:37 +0000 (11:36 -0400)]
Initial source commit

This change contains the initial source for the framework.
This is a work in progress, but should compile and produce
both .deb and .rpm packages (with proper system support).

Currently the support is for RMR based messaging only.

The examples are rough but provide a first cut demonstration
of the base framework.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I9c64aa7db20c2977a4422d7257077e2531cc67d5

4 years agoAdd basic readme and license 31/2631/1
E. Scott Daniels [Mon, 2 Mar 2020 20:15:06 +0000 (15:15 -0500)]
Add basic readme and license

This change adds a base readme and a license file.

Issue-ID: RIC-148

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Iba9e12a2e9f66290da5f9c7686e0af4d6fbf6782

4 years agoAutomation adds INFO.yaml 93/2593/3
LF Jenkins CI [Wed, 26 Feb 2020 17:31:43 +0000 (17:31 +0000)]
Automation adds INFO.yaml

Change-Id: I64883673283579f3adf9b9783e711192fa4efda3
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
4 years agoAutomation adds .gitreview 92/2592/2
LF Jenkins CI [Wed, 26 Feb 2020 17:20:48 +0000 (17:20 +0000)]
Automation adds .gitreview

Change-Id: I7496ca695f5fcec2d2c12d9f18e2f5359aed6eaa
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
4 years agoInitial empty repository
LF Jenkins CI [Thu, 6 Feb 2020 23:48:01 +0000 (23:48 +0000)]
Initial empty repository