Difference between revisions of "ONE/Functional Tests Guide"
Florin.coras (Talk | contribs) m (→Build VPP lite for the first time) |
Florin.coras (Talk | contribs) |
||
Line 31: | Line 31: | ||
Steps to install and configure ODL, assuming the SR1 tar archive is downloaded: | Steps to install and configure ODL, assuming the SR1 tar archive is downloaded: | ||
− | Install and | + | Install and configure ODL |
<pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | <pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | ||
wget https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.3-Beryllium-SR3/distribution-karaf-0.4.3-Beryllium-SR3.tar.gz | wget https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.3-Beryllium-SR3/distribution-karaf-0.4.3-Beryllium-SR3.tar.gz | ||
tar xzf distribution-karaf-0.4.3-Beryllium-SR3.tar.gz | tar xzf distribution-karaf-0.4.3-Beryllium-SR3.tar.gz | ||
− | |||
</pre> | </pre> | ||
+ | |||
+ | Edit custom properties and change elp policy to "replace" | ||
+ | |||
+ | ./distribution-karaf-0.4.3-Beryllium-SR3/etc/custom.properties | ||
+ | |||
+ | Run ODL | ||
+ | |||
+ | ./distribution-karaf-0.4.3-Beryllium-SR3/bin/karaf | ||
To install LispFlowMapping Map-Server/Resolver, in the karaf console type: | To install LispFlowMapping Map-Server/Resolver, in the karaf console type: | ||
Line 42: | Line 49: | ||
feature:install odl-lispflowmapping-msmr | feature:install odl-lispflowmapping-msmr | ||
</pre> | </pre> | ||
+ | |||
+ | = Run the ONE functional tests = | ||
+ | |||
+ | Clone the one repo in the VM: | ||
+ | |||
+ | cd ~ | ||
+ | git clone https://gerrit.fd.io/r/one | ||
+ | |||
+ | Go to tests folder | ||
+ | |||
+ | cd one/tests/data_plane/vpp_lite_topo/ | ||
+ | |||
+ | Run all tests | ||
+ | |||
+ | sudo ./run.sh | ||
+ | |||
+ | Run one test | ||
+ | |||
+ | sudo ./tests/test_*.sh | ||
+ | |||
+ | Run tests and wait fo |
Revision as of 22:59, 29 August 2016
Contents
Overview
This shows how to use VPP lite to run the LISP functional tests on an Ubuntu host using namespaces and af_packet
interfaces. The LispFlowMapping Map-Server/Resolver in OpenDaylight Beryllium is used as overlay control plane.
Build VPP lite for the first time
git clone https://gerrit.fd.io/r/vpp cd vpp/build-root/vagrant vagrant up
Wait for the VM to be provisioned and once it completes, you can access the VM with:
vagrant ssh
To build VPP lite, in the VM do:
cd /vpp export PLATFORM=vpp_lite make build
For more details on how to build VPP see the pulling, building, running, hacking and pushing VPP code section.
Setup Vagrant VM
Install bridge-utils and ethtool if needed:
sudo apt-get install bridge-utils ethtool
Optional, install wireshark.
ODL Map-Server/Resolver
Steps to install and configure ODL, assuming the SR1 tar archive is downloaded:
Install and configure ODL
wget https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.3-Beryllium-SR3/distribution-karaf-0.4.3-Beryllium-SR3.tar.gz tar xzf distribution-karaf-0.4.3-Beryllium-SR3.tar.gz
Edit custom properties and change elp policy to "replace"
./distribution-karaf-0.4.3-Beryllium-SR3/etc/custom.properties
Run ODL
./distribution-karaf-0.4.3-Beryllium-SR3/bin/karaf
To install LispFlowMapping Map-Server/Resolver, in the karaf console type:
feature:install odl-lispflowmapping-msmr
Run the ONE functional tests
Clone the one repo in the VM:
cd ~ git clone https://gerrit.fd.io/r/one
Go to tests folder
cd one/tests/data_plane/vpp_lite_topo/
Run all tests
sudo ./run.sh
Run one test
sudo ./tests/test_*.sh
Run tests and wait fo