...
To set up RAN-sim controller follow the steps provided in this page RAN-Sim setup or use the steps below.
- Clone and Checkout Ran-Sim Controllergit clone "https://gerrit.onap.org/r/integration/simulators/ran-simulator"
Pull the pre-built docker image using the command
Code Block language bash title Docker pull command for ransim controller docker pull docker.io/shsubedi/ransimcontroller:v1
Use the following command to tag the image
Code Block language bash title Docker tag command docker tag shsubedi/ransimcontroller:v1 onap/ransim:1.0.0-SNAPSHOT
- Navigate to '<YOUR_DIRECTORY>/ran-simulator/ransim/docker' directory
- Modify the docker-compose.yml file, update the SDNR_IP and SDNR_PORT
SDNR_IP=sdnc
SDNR_PORT=8282 - Run the 'docker-compose up -d' command from the '<YOUR_DIRECTORY>/ran-simulator/ransim/docker' directory
ransim and mariadb should come up, when this command has ran successfully.
Honeycomb simulator setup
...
Pull the custom honeycomb docker image using the command
Code Block language bash title Docker pull command docker pull docker.io/tragait/gnbsim:v1
- Clone/download https://github.com/onap-oof-pci-poc/ran-sim
- Update ransim and honeycom IP address at ~/ran'<YOUR_DIRECTORY>/ran-sim/hcsim-content/gnbsim/hc/config/gnbsim.json'
Make sure the following are updated to.- "ransimIp": "127.0.0.1"
- "ransimPort": 8081
- "hcIp": "127.0.0.1"
- "hcPort": 2831
- Update the image name in the '<YOUR_DIRECTORY>/ran-sim/hcsim-content/gnbsim/hc/docker-compose.yml' to:
- image: tragait/gnbsim:v1
- image: tragait/gnbsim:v1
Run the below command from ~'<YOUR_DIRECTORY>/ran-sim/hcsim-content/gnbsim/hc' directory
Code Block language bash title Docker compose up command docker-compose up -d
While running the docker-compose up -d command, these servers will be mounted in SDNC
In case these servers are not mounted in SDNC, you can use the following curl command to mount the HC sim.Code Block language bash title HC sim mount command curl -i -X PUT http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/hc -k -H 'Accept: application/xml' -H 'Content-Type: text/xml' --user "admin":"Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" -d '<node xmlns="urn:TBD:params:xml:ns:yang:network-topology"> <node-id>hc</node-id> <host xmlns="urn:opendaylight:netconf-node-topology">127.0.0.1</host> <port xmlns="urn:opendaylight:netconf-node-topology">2831</port> <username xmlns="urn:opendaylight:netconf-node-topology">admin</username> <password xmlns="urn:opendaylight:netconf-node-topology">admin</password> <tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only> <!-- non-mandatory fields with default values, you can safely remove these if you do not wish to override any of these values--> <reconnect-on-changed-schema xmlns="urn:opendaylight:netconf-node-topology">false</reconnect-on-changed-schema> <connection-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">20000</connection-timeout-millis> <max-connection-attempts xmlns="urn:opendaylight:netconf-node-topology">0</max-connection-attempts> <between-attempts-timeout-millis xmlns="urn:opendaylight:netconf-node-topology">2000</between-attempts-timeout-millis> <sleep-factor xmlns="urn:opendaylight:netconf-node-topology">1.5</sleep-factor> <!-- keepalive-delay set to 0 turns off keepalives--> <keepalive-delay xmlns="urn:opendaylight:netconf-node-topology">120</keepalive-delay></node>'
- Check using 'docker container ls' that the honeycomb simulator is up and running.
...