...
1. Clone and Checkout Ran-Sim Controller(use Dublin branch)
git clone https://github.com/onap-oof-pci-poc/ran-sim.git
cd ran-sim/ransim/
...
Maximum number of machines available(use default value present in the file).
e) GridSize: (Applicable only for HONEYCOMB representation)
The number of cells that can be accommodated along one side of the cluster for an auto-generated layout.
...
g) sdnrServerIp:
SDNR server IP address (change the value Neglect(Refer point 5 to update SDNR details).
h) sdnrServerPort:
SDNR server port number (change the value Neglect(Refer point 5 to update SDNR details).
i) sdnrServerUserid:
SDNR server user ID (change the valueNegelct (Refer point 5 to update SDNR details).
j) sdnrServerPassword:
SDNR server password (change the valueNegelct (Refer point 5 to update SDNR details).
k) maxPciValueAllowed:
maximum value of the physical cell Id. (Default is 503).
l)dumpFileName
Location of the dumpfile to load the topology.
The dump file is loaded from '<YOURFOLDER>/ransim/docker/config5. To form the cluster from dump file (random simulation) update the cell details in 'SIM_Ran_config.json'. A sample file is also included.
File directory:
...
dump file - 'sample.json' contains deatils of 1000 cells.
For the controller to access the dump file from the the above location use the path - /tmp/ransim-install/config/sample.json
5. The SDNR details can be updated in the file '<YOURFOLDER>/ransim/docker/docker-compose.yml'.
environment:
- SDNR_IP={SDNR IP address}
- SDNR_PORT={SDNR port number}
- SDNR_USER={SDNR user ID}
- SDNR_PASSWORD={SDNR user password}
6. Run the following command in the terminal
mvn clean install
7. Add an entry into /etc/hosts file for ransimsvr from wherever you are accessing the Ransim Web UI
<IP where ransim controller is running> ransimsvr
8. After successful build navigate to '<YOURFOLDER>/ransim/docker' directory.
98. Run the following three commands in the terminal:
...
'docker build -t onap/ransim-demo ransim-docker'
'docker-compose up'
...
Once the ransim and mariadb containers are started, you can see logs similar to below image:
109. Access the GUI using the following url in the web browser:
‘http://<yourIP>:8081/ransimui/index.html’
html
1011. Access the swagger ui using the following url:
‘http://<yourIP>:8081/ransim/api/swagger-ui.html’
html
1112. Try the following url in Websocket client extension in the web browser to verify the connectivity:
...
'mysql --user=root --password=secret --host=127.0.0.1 --port=43306 3306 ransim_db'
2. Type 'show tables;' to check the and access the tables.
...
This repository has the code we developed.
1. Clone(use Dublin branch) and checkout the latest:
git clone https://github.com/onap-oof-pci-poc/ran-sim.git https://github.com/onap-oof-pci-poc/ran-sim.git
git checkout masterDublin
cd hcsim-content/
...