Add example integer and string configuration properties to config.json.
Add controls.json file containing a schema to validate those properties.
Issue-ID: RICAPP-122
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ib6b357a62577445c85fe8d60d3eb7f35aeb3e84b
[1.1.0] - 2020-06-29
--------------------
* Send alarm on SDL failure (`RICAPP-117 <https://jira.o-ran-sc.org/browse/RICAPP-117>`_)
+* Define configuration properties in xapp-descriptor controls section with JSON schema
* Requires RMR at version 4.1.2 or later
-* Requires xapp-frame-py at version 1.2.0 or later
+* Requires xapp-frame-py at version 1.3.0 or later
[1.0.9] - 2020-06-02
author="O-RAN-SC Community",
description="QP Driver Xapp for traffic steering use case",
url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-app/qp-driver",
- install_requires=["ricxappframe>=1.2.1,<2.0.0"],
+ install_requires=["ricxappframe>=1.3.0,<2.0.0"],
entry_points={"console_scripts": ["start-qpd.py=qpdriver.main:start"]}, # adds a magical entrypoint for Docker
license="Apache 2.0",
data_files=[("", ["LICENSE.txt"])],
}
]
},
+ "controls": {
+ "example_int": 10000,
+ "example_str": "value"
+ },
"rmr": {
"protPort": "tcp:4560",
"maxSize": 2072,
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "#/controls",
+ "type": "object",
+ "title": "Controls Section Schema",
+ "required": [
+ "example_int",
+ "example_str"
+ ],
+ "properties": {
+ "example_int": {
+ "$id": "#/properties/controls/items/properties/example_int",
+ "type": "integer",
+ "title": "An example integer property",
+ "default": 0
+ },
+ "example_str": {
+ "$id": "#/properties/controls/items/properties/example_str",
+ "type": "string",
+ "title": "An example string property",
+ "default": ""
+ }
+ }
+}