blob: acfe38cf6b5a981ad6c59923f6fc79ed29746844 [file] [log] [blame]
maximessone6b4d272019-10-31 13:26:13 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4
elinuxhenrik0c442862020-01-31 11:27:50 +01005========
maximessone6b4d272019-10-31 13:26:13 +01006API-Docs
7========
8
9This is the API-docs of Non-RT RIC.
10
11.. contents::
12 :depth: 3
13 :local:
14
elinuxhenrik0c442862020-01-31 11:27:50 +010015The Non-RT RIC consists of four parts, described in the sections below:
16 * The Dashboard
17 * The Policy Agent
18 * The Near-RT RIC simulator
19 * The Sdnc A1 Controller
20
21Dashboard
22=========
maximessone6b4d272019-10-31 13:26:13 +010023
24The Non-RT RIC dashboard is an interface that allows human users to create, edit and delete policy instances, for each existing policy type. The policy types are owned by the Near-RT RIC, Non-RT RIC can just query them, so it's not possible to act on them.
25
elinuxhenrik0c442862020-01-31 11:27:50 +010026See the README.md file in the nonrtric/dashboard repo for info about how to use it.
maximessone6b4d272019-10-31 13:26:13 +010027
28API Functions
29-------------
30
31To run the dashboard locally, you can follow these steps:
32
33- Fetch the latest code from `gerrit`_
34
maximessone10990b2020-01-31 16:04:20 +010035.. _gerrit: https://gerrit.o-ran-sc.org/r/admin/repos/nonrtric
maximessone6b4d272019-10-31 13:26:13 +010036
37- Before compiling, run the following commands::
38
39 git submodule init
40
41 git submodule update
42
43- Start the backend (you might have to build it first)::
44
45 mvn clean install
46
47 mvn -Dorg.oransc.ric.portal.dashboard=mock -Dtest=DashboardTestServer -DfailIfNoTests=false test
48
49
maximesson94978f42019-11-13 11:53:26 +010050- Now you can open URL: `localhost:8080`_ in a browser.
maximessone6b4d272019-10-31 13:26:13 +010051
52.. _localhost:8080: localhost:8080
53
54From the main page, click on the "Policy Control" card. From here, it is possible to create or list instances for each existing policy type.
55
56When the instances are listed, it is possible to edit or delete each instance from the expanded view.
57
elinuxhenrik0c442862020-01-31 11:27:50 +010058.. image:: ./images/non-RT_RIC_dashboard.png
59
60Policy Agent
61============
elinuxhenrikc7a0d732020-02-04 14:49:59 +010062
elinuxhenrik0c442862020-01-31 11:27:50 +010063The Policy Agent provides common functionality useful for R-Apps, for instance:
64 * A repository of available Near-T RICs, their policy types and policy instances.
65 * An A1 connection to he Near-RT RICs.
66
67See the README.md file in the nonrtric/policy-agent repo for info about how to use it.
68
elinuxhenrikc7a0d732020-02-04 14:49:59 +010069API Functions
70-------------
PatrikBuhr1b8d76d2020-01-30 16:10:19 +010071See the following document for the Policy Agent API: nonrtric/policy-agent/docs/api.yaml
elinuxhenrik0c442862020-01-31 11:27:50 +010072
73Near-RT RIC Simulator
74=====================
elinuxhenrikc7a0d732020-02-04 14:49:59 +010075
elinuxhenrik71061052020-02-03 11:11:37 +010076A simulator that simulates a Near-RT RIC, with a termination of the A1 interface. It also provides an administrative API to manage types and instances so it can be programatically set up for use in tests.
elinuxhenrik0c442862020-01-31 11:27:50 +010077
78See the README.md file in the nonrtric/near-rt-ric-simulator repo for info about how to use it.
79
80API Functions
81-------------
elinuxhenrikc7a0d732020-02-04 14:49:59 +010082
elinuxhenrik0c442862020-01-31 11:27:50 +010083See the admnistrative API in: nonrtric/near-rt-ric-simulator/ric-plt/a1/main.py.
84
85Sdnc A1 Controller
86==================
elinuxhenrikc7a0d732020-02-04 14:49:59 +010087
elinuxhenrik0c442862020-01-31 11:27:50 +010088An ONAP SDNC Controller for the A1 interface.
89
90See the README.md file in the nonrtric/sdnc-a1-controller repo for info about how to use it.
91