blob: 43c3d255f418f905852cc415d4832694bf4402c8 [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============
62The Policy Agent provides common functionality useful for R-Apps, for instance:
63 * A repository of available Near-T RICs, their policy types and policy instances.
64 * An A1 connection to he Near-RT RICs.
65
66See the README.md file in the nonrtric/policy-agent repo for info about how to use it.
67
68API Functins
69------------
70See the following document for the Policy Agent API: nonrtric/policy-agent/docs/api.doc.
71
72Near-RT RIC Simulator
73=====================
74A simulator that simulates a Neat-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.
75
76See the README.md file in the nonrtric/near-rt-ric-simulator repo for info about how to use it.
77
78API Functions
79-------------
80See the admnistrative API in: nonrtric/near-rt-ric-simulator/ric-plt/a1/main.py.
81
82Sdnc A1 Controller
83==================
84An ONAP SDNC Controller for the A1 interface.
85
86See the README.md file in the nonrtric/sdnc-a1-controller repo for info about how to use it.
87