From 23512eca8339e67b319c61e3f4ba596044e0ec78 Mon Sep 17 00:00:00 2001 From: rajalakshmisv Date: Tue, 7 Dec 2021 09:41:34 +0000 Subject: [PATCH] config.json change Signed-off-by: rajalakshmisv Change-Id: Iddaec06e0426a24d385da80b7fe7f7b0503a4619 --- xapp-descriptor/config.json | 120 +++++++++++++++++++++++++++----------------- 1 file changed, 74 insertions(+), 46 deletions(-) diff --git a/xapp-descriptor/config.json b/xapp-descriptor/config.json index a0dbd79..5c9ed9c 100644 --- a/xapp-descriptor/config.json +++ b/xapp-descriptor/config.json @@ -1,46 +1,74 @@ -{ - "xapp_name": "rc", - "version": "1.0.0", - "configPath": "/opt/ric/config/", - "containers": [ - { - "name": "rc", - "image": { - "registry": "nexus3.o-ran-sc.org:10002", - "name": "o-ran-sc/ric-app-rc", - "tag": "1.0.0" - } - } - ], - "messaging": { - "ports": [ - { - "name": "rmr-data", - "container": "rc", - "port": 4560, - "rxMessages": ["RIC_CONTROL_RESP"], - "txMessages": ["RIC_CONTROL_REQ"], - "policies": [], - "description": "rmr receive data port for rc" - }, - { - "name": "rmr-route", - "container": "rc", - "port": 4561, - "description": "rmr route port for rc" - } - ] - }, - "rmr": { - "protPort": "tcp:4560", - "maxSize": 2072, - "numWorkers": 1, - "rxMessages": ["RIC_CONTROL_RESP"], - "txMessages": ["RIC_CONTROL_REQ"], - "policies": [] - }, - "controls": { - "ricHOControlgRpcServerPort" : "7777" -} - -} +{ + "controls-schema.json": { + "$schema": "http://json-schema.org/draft-07/schema#", "$id": "#/controls", + "type": "object", + "title": "Controls Section Schema", + "required": [ + "ricHOControlgRpcServerPort", + "logLevel" + ], + "properties": { + "ricHOControlgRpcServerPort": { + "$id": "#/properties/ricHOControlgRpcServerPort", + "type": "string", + "title": "GRPC Port", + "default": "7777", + "examples": [ + "7777" + ], + "logLevel" : { + "$id": "#/properties/logLevel", + "type": "int", + "title": "log level", + "default":3, + "examples": [3] + } + } + } + }, + "config-file.json":{ + "xapp_name": "rc", + "version": "1.0.0", + "containers": [ + { + "name": "rc", + "image": { + "registry": "nexus3.o-ran-sc.org:10002", + "name": "o-ran-sc/ric-app-rc", + "tag": "1.0.0" + } + } + ], + "messaging": { + "ports": [ + { + "name": "rmr-data", + "container": "rc", + "port": 4560, + "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"], + "txMessages": ["RIC_CONTROL_REQ"], + "policies": [], + "description": "rmr receive data port for rc" + }, + { + "name": "rmr-route", + "container": "rc", + "port": 4561, + "description": "rmr route port for rc" + } + ] + }, + "rmr": { + "protPort": "tcp:4560", + "maxSize": 2072, + "numWorkers": 1, + "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"], + "txMessages": ["RIC_CONTROL_REQ"], + "policies": [] + }, + "controls": { + "ricHOControlgRpcServerPort" : "7777", + "logLevel": 4 + } +} +} -- 2.16.6