blob: 5804f231cebd541c3bf317571c7f85b63953eaec [file] [log] [blame]
elinuxhenrik3c2c02c2020-03-27 15:59:32 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. SPDX-License-Identifier: CC-BY-4.0
elinuxhenrik616ea8d2020-04-15 08:26:35 +02003.. Copyright (C) 2020 Nordix
elinuxhenrik3c2c02c2020-03-27 15:59:32 +01004
5Developer Guide
6===============
7
elinuxhenrik22cfc3d2020-03-30 08:53:58 +02008This document provides a quickstart for developers of the Non-RT RIC Control Panel.
elinuxhenrik3c2c02c2020-03-27 15:59:32 +01009
elinuxhenrik22cfc3d2020-03-30 08:53:58 +020010The Non-RT RIC Control Panel is an interface that allows human users to create, edit and delete policy instances, for
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010011each existing policy type. The policy types and their definitions are retrieved from each Near-RT RIC.
12
ychaconaf912b92021-04-27 14:43:56 +020013Additionally, producers and jobs for the Enrichment Information coordinator service can be viewed and managed.
14
15See the README.md file in the nonrtric-controlpanel repo for information about how to use it.
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010016
elinuxhenrik22cfc3d2020-03-30 08:53:58 +020017Start the Control Panel for development
ychaconaf912b92021-04-27 14:43:56 +020018---------------------------------------
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010019
elinuxhenrik22cfc3d2020-03-30 08:53:58 +020020To run the Control Panel locally for development with simulated services, follow these steps:
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010021
22- Fetch the latest code from `gerrit`_
23
ecaiyanlinux10f93582021-01-26 12:44:26 +010024.. _gerrit: https://gerrit.o-ran-sc.org/r/admin/repos/portal/nonrtric-controlpanel
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010025
ychaconaf912b92021-04-27 14:43:56 +020026- Start the frontend:
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010027
ychaconaf912b92021-04-27 14:43:56 +020028 +------------------------------+
29 | cd webapp-frontend |
30 +------------------------------+
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010031
ychaconaf912b92021-04-27 14:43:56 +020032 - To start the frontend with Mock data:
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010033
ychaconaf912b92021-04-27 14:43:56 +020034 +------------------------------+
35 | npm run start:mock |
36 +------------------------------+
37
38 - To start the UI:
39
40 - You need to start the ControlPanel API Gateway, Policy Management Service & EI Service for the UI to list policy & EI information
41
42 +---------------------------------------------------+
43 | ./ng serve --proxy-config proxy.conf.json |
44 +---------------------------------------------------+
45
46 OR
47
48 +---------------------+
49 | npm start |
50 +---------------------+
51
52 - Now you can open URL: `localhost:4200`_ in a browser to access the Control Panel.
53
54 .. _localhost:4200: http://localhost:4200
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010055
56From the main page, click on the "Policy Control" card. From here, it is possible to create or list instances for each
57existing policy type.
58
59When the instances are listed, it is possible to edit or delete each instance from the expanded view.
60
ychaconaf912b92021-04-27 14:43:56 +020061.. image:: ./images/non-RT_RIC_controlpanel_Policy.PNG
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010062
ychaconaf912b92021-04-27 14:43:56 +020063In order to view producers and jobs from the EI service, from the main page, click on the "Enrichment information coordinator" card or use the menu on the left hand side of the page.
64
65.. image:: ./images/non-RT_RIC_controlpanel_EI.PNG
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010066
67End-to-end call
ychaconaf912b92021-04-27 14:43:56 +020068---------------
elinuxhenrik3c2c02c2020-03-27 15:59:32 +010069
70In order to make a complete end-to-end call, follow the instructions given in this `guide`_.
71
ychaconaf912b92021-04-27 14:43:56 +020072.. _guide: https://wiki.o-ran-sc.org/pages/viewpage.action?pageId=34963461