elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. SPDX-License-Identifier: CC-BY-4.0 |
elinuxhenrik | 616ea8d | 2020-04-15 08:26:35 +0200 | [diff] [blame] | 3 | .. Copyright (C) 2020 Nordix |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 4 | |
| 5 | Developer Guide |
| 6 | =============== |
| 7 | |
elinuxhenrik | 22cfc3d | 2020-03-30 08:53:58 +0200 | [diff] [blame] | 8 | This document provides a quickstart for developers of the Non-RT RIC Control Panel. |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 9 | |
elinuxhenrik | 22cfc3d | 2020-03-30 08:53:58 +0200 | [diff] [blame] | 10 | The Non-RT RIC Control Panel is an interface that allows human users to create, edit and delete policy instances, for |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 11 | each existing policy type. The policy types and their definitions are retrieved from each Near-RT RIC. |
| 12 | |
| 13 | See the README.md file in the nonrtric-controlpanel repo for info about how to use it. |
| 14 | |
elinuxhenrik | 22cfc3d | 2020-03-30 08:53:58 +0200 | [diff] [blame] | 15 | Start the Control Panel for development |
| 16 | ======================================= |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 17 | |
elinuxhenrik | 22cfc3d | 2020-03-30 08:53:58 +0200 | [diff] [blame] | 18 | To run the Control Panel locally for development with simulated services, follow these steps: |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 19 | |
| 20 | - Fetch the latest code from `gerrit`_ |
| 21 | |
ecaiyanlinux | 10f9358 | 2021-01-26 12:44:26 +0100 | [diff] [blame] | 22 | .. _gerrit: https://gerrit.o-ran-sc.org/r/admin/repos/portal/nonrtric-controlpanel |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 23 | |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 24 | Start the frontend: |
| 25 | |
| 26 | cd webapp-frontend |
Lathish | 85132f5 | 2021-02-09 10:41:21 +0000 | [diff] [blame] | 27 | |
| 28 | To start the frontend with Mock data: |
| 29 | |
| 30 | npm run start:mock |
| 31 | |
| 32 | To start the UI: |
| 33 | |
| 34 | You need to start the ControlPanel API Gateway, Policy Management Service & EI Service for the UI to list policy & EI information |
| 35 | |
| 36 | ./ng serve --proxy-config proxy.conf.json |
| 37 | |
| 38 | OR |
| 39 | |
| 40 | npm start |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 41 | |
elinuxhenrik | 22cfc3d | 2020-03-30 08:53:58 +0200 | [diff] [blame] | 42 | - Now you can open URL: `localhost:4200`_ in a browser to access the Control Panel. |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 43 | |
elinuxhenrik | 1fd9afe | 2020-12-08 13:31:20 +0100 | [diff] [blame] | 44 | .. _localhost:4200: http://localhost:4200 |
elinuxhenrik | 3c2c02c | 2020-03-27 15:59:32 +0100 | [diff] [blame] | 45 | |
| 46 | From the main page, click on the "Policy Control" card. From here, it is possible to create or list instances for each |
| 47 | existing policy type. |
| 48 | |
| 49 | When the instances are listed, it is possible to edit or delete each instance from the expanded view. |
| 50 | |
| 51 | .. image:: ./images/non-RT_RIC_controlpanel.png |
| 52 | |
| 53 | |
| 54 | End-to-end call |
| 55 | =============== |
| 56 | |
| 57 | In order to make a complete end-to-end call, follow the instructions given in this `guide`_. |
| 58 | |
| 59 | .. _guide: https://wiki.o-ran-sc.org/pages/viewpage.action?pageId=12157166 |