1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. SPDX-License-Identifier: CC-BY-4.0
3 .. Copyright (C) 2020 Nordix
8 This document provides a quickstart for developers of the Non-RT RIC Control Panel.
10 The Non-RT RIC Control Panel is an interface that allows human users to create, edit and delete policy instances, for
11 each existing policy type. The policy types and their definitions are retrieved from each Near-RT RIC. It is also
12 possible to change the configuration of available RICs, provided that Consul is not used.
14 Additionally, producers and jobs for the Enrichment Information coordinator service can be viewed.
16 See the README.md file in the nonrtric-controlpanel repo for information about how to use it.
18 Start the Control Panel for development
19 ---------------------------------------
21 To run the Control Panel locally for development, follow the steps below.
24 First, fetch the latest code from `gerrit <https://gerrit.o-ran-sc.org/r/admin/repos/portal/nonrtric-controlpanel>`_ and
25 go in to the frontend folder in the repo:
28 +----------------------------------------------------+
29 | cd nonrtric-controlpanel/webapp-frontend |
30 +----------------------------------------------------+
32 The Control Panel can be started with mock data to make it easy to develop the GUI without the need to start all services.
33 Run the following command to start with mock data:
35 +------------------------------+
36 | npm run start:mock |
37 +------------------------------+
39 Open the URL: `localhost:4200`_ in a browser to access the Control Panel with mock information.
41 .. _localhost:4200: http://localhost:4200
43 To start the frontend to get real information from Non-RT RIC services the following services need to be started first:
45 - ControlPanel API Gateway
46 - Policy Management Service,
49 By pulling the `nonrtric <https://gerrit.o-ran-sc.org/r/admin/repos/nonrtric>`__ repo and using the script
50 "PM_EI_DEMO.sh" in the folder "test/autotest", the above services will be started and populated with data. It requires
51 Docker to run. To run this script with a local version of the Control Panel, a docker image of the Control Panel must
52 first be created. To do this, run the following command:
54 +-------------------------------------------------------------------+
55 | docker build -t o-ran-sc/nonrtric-controlpanel:2.2.0-SNAPSHOT . |
56 +-------------------------------------------------------------------+
58 Then run the following command to start the script with the local image:
60 +-------------------------------------------------------------------------------------------------------------------+
61 | sudo ./PM_EI_DEMO.sh remote-remove docker --env-file ../common/test_env-oran-d-release.sh --use-local-image CP |
62 +-------------------------------------------------------------------------------------------------------------------+
64 When the above servers are started and populated with data, run the following command:
66 +---------------------+
68 +---------------------+
70 Open the URL: `localhost:8080`_ in a browser to access the Control Panel with real information.
72 .. _localhost:8080: http://localhost:8080
74 From the main page, click on the "Policy Control" card or use the menu on the left hand side of the page. From here, it
75 is possible to create or list instances for each existing policy type.
77 When the instances are listed, it is possible to edit or delete each instance from the expanded view.
79 .. image:: ./images/non-RT_RIC_controlpanel_Policy.PNG
81 It is also possible to manage the configuration of available RICs, provided that Consul is not used, from the Control Panel.
82 From the menu on the left hand side, select "Policy -> RIC Config".
84 .. image:: ./images/non-RT_RIC_controlpanel_ric_config.PNG
87 From the main page, click on the "Enrichment information coordinator" card or use the menu on the left hand side of the page.
88 From here it is possible to view producers and jobs from the EI service,
90 .. image:: ./images/non-RT_RIC_controlpanel_EI.PNG
95 In order to make a complete end-to-end call, follow the instructions given in this `guide`_.
97 .. _guide: https://wiki.o-ran-sc.org/pages/viewpage.action?pageId=34963461