Skip to content

Commit

Permalink
Update README format
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-lopez committed Jul 26, 2017
1 parent 2c78f48 commit e0e7899
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.vpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,37 @@ exactly to a specific commit of VPP. Without applying this patch, the integratio
VPP and OOR will not work.

Download the VPP code:

git clone https://gerrit.fd.io/r/vpp --branch stable/1704
cd vpp
git reset --hard e3b7ad7adebf25af1651a217da8534ada89c369b

Patch the code before compiling:

cp <oor_dir>/VPP/vpp.patch .
git apply vpp.patch

Install dependecies:

sudo make install-dep
sudo apt-get install python-cffi python-ply python-pycparser

Finally, we compile and install VPP:

cd build-root
./bootstrap.sh
make V=0 PLATFORM=vpp TAG=vpp install-deb
sudo dpkg -i *.deb


OOR compilation. Read previously the README.md file

cd <oor_dir>/oor/
make platform=vpp
sudo make install

Add the OOR VPP plugins:

cd <oor_dir>/VPP/oor_ctrl-plugin
autoreconf -fis
./configure && make && sudo make install
Expand All @@ -61,32 +68,39 @@ about VPP or how to configure it, check the wiki page of the project
<https://wiki.fd.io/view/VPP>

To assign an interface to VPP, check it is not up/configured by the Linux Kernel.
If it is then shut it down: For e.g. If you want to use eth1 in vpp then:
If it is then shut it down: For e.g. If you want to use eth1 in vpp then:

sudo ifconfig eth1 down
sudo ip addr flush dev eth1

== Notice that the current version of VPP is only a traffic forwarder. Don't assign
to VPP the management interface of the PC. ==

Start VPP:

sudo service vpp start

List the interfaces assigned to VPP:

vppctl show interface

Configure VPP interfaces:

Assign an address to the interface:

sudo vppctl set int ip address [del] <iface name> <ip address/mask>

Set status of the interface to up:

sudo vppctl set int state <iface name> up|down

Show the interfaces addresses:

vppctl show int addr

If you want to use IID different to 0 (only works with local networks), you will have
to do a previous step before configuring the interface associated with the EIDs:

sudo vppctl set interface ip|ip6 table <iface_name> <iid>

Once you have configured vpp you can start to use OOR.

0 comments on commit e0e7899

Please sign in to comment.