Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Warning
Outdated, new version is here: SDN-R on docker-compose

Table of Contents

For module tests and first integration test it is beneficial to create a "stand-alone" instance of ONAP SDN-R. Such version can  run on a single developer system. 

...

Code Block
languagebash
$ sudo -s
$ cat <<EOT >> /etc/docker/daemon.json
{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
  },
  "ipv6": true,
  "fixed-cidr-v6": "2001:db8:1::/64"
}
EOT
$ exit

$ sudo systemctl restart docker

The quick path

Basic installation

  • Tested with Ubuntu 20.04 
  • Further tools:
    • chromium, curl
    • docker 18.09.2
    • xmllint (sudo apt install libxml2-utils)
  • Hava a user with admin rights.
  • Add user to "docker" group.

...

Docker compose configuration

A docker-compose.yaml file contains all the configuration required to run the different docker images, which are used to verify the different functions of ONAP SDN-R. 

The following file is used to configure and run

  • SDN-R Controller (ODL with SDN-R extensions
  • SDN-R data cache (ElasticSearch)
  • VES-Collector and DMaaP
  • O-RAN-SC Simulator as NetConf-Server and VES emitter


Code Block
languagebash
sudo usermod -aG docker $USER
  • Maven configuration for ONAP Nexus (onap should be within settings file) Warning: Previouse configuration is overwritten by command!
Code Block
languagebash
#Warning: Previouse configuration is overwritten by command!
wget git.onap.org/oparent/plain/settings.xml -P $HOME/.m2 
  • Download and clone repository with onap-oof-pci project to $HOME/ccsdk
Code Block
cd $HOME
git clone https://github.com/onap-oof-pci-poc/ccsdk.gitmkdir onap-sdnr-standalone
cd onap-sdn-standalone

TBD

docker network create \
--ipv6 \
--driver=bridge \
--subnet=172.50.0.0/16 \
--subnet=2001:3984:3989::/64 \
--gateway=172.50.0.1 \
--gateway=2001:3984:3989::1 \
oam


Build and run single node SDN-R

...