Initial code for Hw-go xApp
Initial code for xApp.
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I71711d1a5cf97a1b975d50cfe641ce23a66fc4bb
diff --git a/config/config-file.json b/config/config-file.json
new file mode 100644
index 0000000..8caecdb
--- /dev/null
+++ b/config/config-file.json
@@ -0,0 +1,109 @@
+{
+ "name": "example",
+ "version": "0.6.0",
+ "vendor": "Nokia",
+ "moId": "SEP",
+ "containers": [
+ {
+ "name": "example",
+ "image": {
+ "registry": "ranco-dev-tools.eastus.cloudapp.azure.com:10001",
+ "name": "example-xapp",
+ "tag": "0.5.3"
+ },
+ "resources": {
+ "limits": {
+ "cpu": "1",
+ "memory": "50Mi"
+ },
+ "requests": {
+ "cpu": "1",
+ "memory": "100Mi"
+ }
+ }
+ }
+ ],
+ "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": "example",
+ "port": 8080,
+ "description": "http service"
+ },
+ {
+ "name": "rmr-route",
+ "container": "example",
+ "port": 4561,
+ "description": "rmr route port for example"
+ },
+ {
+ "name": "rmr-data",
+ "container": "example",
+ "port": 4560,
+ "maxSize": 65536,
+ "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": [],
+ "description": "rmr data port for example"
+ }
+ ]
+ },
+ "controls": {
+ "logger": {
+ "level": 3
+ },
+ "subscription": {
+ "subscriptionActive": true
+ }
+ },
+ "metrics": {
+ "url": "/ric/v1/metrics",
+ "namespace": "ricxapp"
+ },
+ "faults": { },
+ "measurements": [
+ {
+ "moId": "XAPP-example",
+ "measType": "X2AP_Streaming",
+ "measId": "91001",
+ "measInterval": "60",
+ "metrics": [
+ {
+ "objectName": "UEEventStreamingCounters",
+ "objectInstance": "SgNBAdditionRequest",
+ "name": "ricxapp_ExampleXapp_SgNBAdditionRequest",
+ "type": "counter",
+ "description": "The total number of SG addition request events processed"
+ },
+ {
+ "objectName": "UEEventStreamingCounters",
+ "objectInstance": "SgNBAdditionRequestAcknowledge",
+ "name": "ricxapp_ExampleXapp_SgNBAdditionRequestAcknowledge",
+ "type": "counter",
+ "description": "The total number of SG addition request acknowledge events"
+ }
+ ]
+ }
+ ]
+}