From 26728b0bbb0472f919d05924d71e5c305ede7d98 Mon Sep 17 00:00:00 2001 From: "naman.gupta" Date: Mon, 5 Jul 2021 21:32:16 +0530 Subject: [PATCH] Add config and schema file for onbording Add config and schema file for onbording using dms_cli. Signed-off-by: naman.gupta Change-Id: I61584f9124e7644a1c11d17341dcd4527a2294fd --- init/config-file.json | 120 +++++++++++++++++++++++++++++++------------------- init/schema.json | 11 +++++ 2 files changed, 86 insertions(+), 45 deletions(-) create mode 100644 init/schema.json diff --git a/init/config-file.json b/init/config-file.json index 5478079..fdaeb3e 100644 --- a/init/config-file.json +++ b/init/config-file.json @@ -1,48 +1,78 @@ - { - "xapp_name": "hwxapp", - "version": "1.0.0", - "containers": [ +{ + "name": "hw-python", + "version": "1.0.0", + "containers": [ + { + "name": "hw-python", + "image": { + "registry": "nexus3.o-ran-sc.org:10004", + "name": "o-ran-sc/ric-app-hw-python", + "tag": "1.0.0" + } + } + ], + "livenessProbe": { + "httpGet": { + "path": "ric/v1/health/alive", + "port": 8080 + }, + "initialDelaySeconds": 5, + "periodSeconds": 15 + }, + "readinessProbe": { + "httpGet": { + "path": "ric/v1/health/ready", + "port": 8080 + }, + "initialDelaySeconds": 5, + "periodSeconds": 15 + }, + "messaging": { + "ports": [ + { + "name": "http", + "container": "hw-python", + "port": 8080, + "description": "http service" + }, { - "name": "hwxapp", - "image": { - "registry": "nexus3.o-ran-sc.org:10002", - "name": "o-ran-sc/ric-app-hw", - "tag": "1.0.6" - } + "name": "rmrroute", + "container": "hw-python", + "port": 4561, + "description": "rmr route port for hw-python xapp" + }, + { + "name": "rmrdata", + "container": "hw-python", + "port": 4560, + "rxMessages": ["RIC_SUB_RESP", "RIC_SUB_FAILURE", "RIC_SUB_DEL_RESP", "RIC_INDICATION"], + "txMessages": ["RIC_SUB_REQ", "RIC_SUB_DEL_REQ", "RIC_SGNB_ADDITION_REQ", "RIC_SGNB_ADDITION_ACK"], + "mtypes" : [ + {"name":"TESTNAME1","id":55555}, + {"name":"TESTNAME2","id":55556} + ], + "policies": [1], + "description": "rmr data port for hw-python" } + ] + }, + "rmr": { + "protPort": "tcp:4560", + "maxSize": 2072, + "numWorkers": 1, + "txMessages": [ + "RIC_SUB_REQ", "A1_POLICY_RESP", "A1_POLICY_QUERY", "RIC_HEALTH_CHECK_RESP" ], - "messaging": { - "ports": [ - { - "name": "rmr-data", - "container": "hwxapp", - "port": 4560, - "rxMessages": [ - "A1_POLICY_REQ", "RIC_HEALTH_CHECK_REQ" - ], - "txMessages": [ "A1_POLICY_RESP", "A1_POLICY_QUERY", "RIC_HEALTH_CHECK_RESP" ], - "policies": [1], - "description": "rmr receive data port for HWxapp" - }, - { - "name": "rmr-route", - "container": "hwxapp", - "port": 4561, - "description": "rmr route port for hwxapp" - } - ] - }, - "rmr": { - "protPort": "tcp:4560", - "maxSize": 2072, - "numWorkers": 1, - "txMessages": [ - "RIC_SUB_REQ", "A1_POLICY_RESP", "A1_POLICY_QUERY", "RIC_HEALTH_CHECK_RESP" - ], - "rxMessages": [ - "RIC_SUB_RESP", - "A1_POLICY_REQ", "RIC_HEALTH_CHECK_REQ" - ], - "policies": [1] - } - } + "rxMessages": [ + "RIC_SUB_RESP", + "A1_POLICY_REQ", "RIC_HEALTH_CHECK_REQ" + ], + "policies": [1] + }, + "controls": { + "fileStrorage": false + }, + "db" : { + "waitForSdl": false + } +} diff --git a/init/schema.json b/init/schema.json new file mode 100644 index 0000000..01c8445 --- /dev/null +++ b/init/schema.json @@ -0,0 +1,11 @@ +{ +"$schema": "http://json-schema.org/draft-07/schema#", +"$id": "#/controls", +"type": "object", +"title": "Controls Section Schema", +"required": [ +], +"properties": { +} +} + -- 2.16.6