You are on page 1of 2

### Building the ODL-OFM Container:

apt-get update
apt-get install -y bash-completion software-properties-common python-software-
properties sudo curl ssh git
nano /etc/ssh/sshd_config ###(change PermitRootLogin yes)
service ssh start
ssh-keygen -t rsa -P ""
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer oracle-java8-set-default
xxxxxxxxxx
sudo apt-get -y install openjdk-8-jre

nano ~/.bashrc
export JAVA_HOME="/usr/lib/jvm/java-8-oracle" xxxxxxxxxxxxxxxxxxx
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
. ~/.bashrc

echo $JAVA_HOME ### Verification

wget
https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/d
istribution-karaf/0.3.0-Lithium/distribution-karaf-0.3.0-Lithium.tar.gz

tar zxvf distribution-karaf-0.3.0-Lithium.tar.gz

ifconfig ### To see what IP the DHCP server gave it


passwd ### Set root password of docker container

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -


apt-get install nodejs
git clone https://github.com/CiscoDevNet/OpenDaylight-Openflow-App.git
sed -i 's/localhost/192.168.22.133/g' ./OpenDaylight-Openflow-
App/ofm/src/common/config/env.module.js ### Use the IP we noted earlier, for
"server_ip"
sudo npm install -g grunt-cli

cd distribution-karaf-0.3.0-Lithium
./bin/karaf
feature:install odl-restconf-all odl-openflowplugin-all odl-l2switch-all odl-mdsal-
all odl-yangtools-common

### Once the ODL cli comes back, SSH into the ODL+OFM container from a different
Ubuntu container; and run these:
ssh root@192.168.122.122
cd OpenDaylight-Openflow-App
grunt

### "http://192.168.22.133:9000" will display.


http://192.168.22.133:8181/index.html

### ODL and OFM are now ready

ovs-vsctl set Bridge br0 stp_enable=true


ovs-vsctl set-controller br0 tcp:192.168.22.187:6633
ovs-vsctl set-controller br0 tcp:192.168.22.136:6633
ovs-ofctl show br0
ovs-vsctl show
ovs-ofctl dump-ports br0

You might also like