2 ==================================================================================
3 Copyright (c) 2020 AT&T Intellectual Property.
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 ==================================================================================
21 This repository contains the source for sending RIC control Msg to RAN/E2 Node based on the GRPC control request received from other xapps
23 This xApp can be onboarded through the xApp Onboarder. The xapp descriptor
24 is under the xapp-descriptor/ directory.
26 Then the xapp can be deployed through the App Manager.
27 Procedure to Onboard the xapp is given in installation guide, in docs folder
29 GRPC communication can be tested using the grpccurl command
32 In the current implementation, timer is started after initiating Control Request to E2Node. So timer expiry errors will be seen in logs w.r.t. Control Resp.
33 As control ACK is not handled this error can be ignored
35 Steps to onboard the xapp
36 1)echo '{ "config-file.json_url": "https://gerrit.o-ran-sc.org/r/gitweb?p=ric-app/rc.git;a=blob_plain;f=xapp-descriptor/config.json;hb=HEAD","controls-schema.json_url": "https://gerrit.o-ran-sc.org/r/gitweb?p=ric-app/rc.git;a=blob_plain;f=xapp-descriptor/schema.json;hb=HEAD" }' > onboard.rc.url
38 2)Onboard the rc xapp using the below command :
39 $curl --location --request POST "http://$(hostname):32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@./onboard.rc.url"
41 After this command: xapp should be created
43 $curl --location --request POST "http://$(hostname):32080/onboard/api/v1/onboard/download" --header 'Content-Type: application/json' --data-binary "@./onboard.rc.url"
49 $curl --location --request POST "http://$(hostname):32080/appmgr/ric/v1/xapps" --header 'Content-Type: application/json' --data-raw '{"xappName": "rc"}'
51 "instances":null,"name":"rc","status":"deployed","version":"1.0"
54 after this step the xapp should be in running state
56 ricxapp ricxapp-rc-5ccdcc9f6f-ktq7w 1/1 Running 0 88m
58 4) restart rtMgr so rmr is ready