Difference between revisions of "ONE/Functional Tests Guide"

From fd.io
< ONE
Jump to: navigation, search
m (Build VPP lite)
Line 18: Line 18:
 
  make build
 
  make build
  
More details on vpp-lite and other alternative builds can be found in the [[VPP/Alternative_builds | alternative builds]] section.
+
For more details on how to build VPP see [[VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code | pulling, building, running, hacking and pushing VPP code ]] section.
 +
 
 +
= Setup Vagrant VM  =
  
=== Host ===
 
 
Install bridge-utils and ethtool if needed:
 
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 run 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;">
 +
wget https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.1-Beryllium-SR1/distribution-karaf-0.4.1-Beryllium-SR1.tar.gz
 +
tar xzf distribution-karaf-0.4.1-Beryllium-SR1.tar.gz
 +
cd distribution-karaf-0.4.1-Beryllium-SR1/bin
 +
./karaf
 +
</pre>
 +
 +
To install LispFlowMapping Map-Server/Resolver, in the karaf console type:
 
<pre>
 
<pre>
sudo apt-get install bridge-utils ethtool
+
feature:install odl-lispflowmapping-msmr
 
</pre>
 
</pre>

Revision as of 22:38, 29 August 2016

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 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 run ODL

wget https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.1-Beryllium-SR1/distribution-karaf-0.4.1-Beryllium-SR1.tar.gz
tar xzf distribution-karaf-0.4.1-Beryllium-SR1.tar.gz
cd distribution-karaf-0.4.1-Beryllium-SR1/bin
./karaf

To install LispFlowMapping Map-Server/Resolver, in the karaf console type:

feature:install odl-lispflowmapping-msmr