2015-12-08 15:45:58 -07:00
|
|
|
|
|
|
|
# Standard update + upgrade dance
|
|
|
|
yum check-update
|
|
|
|
yum update -y
|
|
|
|
|
2016-03-22 16:10:07 -05:00
|
|
|
# Install dependencies
|
|
|
|
cd /vpp
|
|
|
|
make install-dep
|
|
|
|
|
|
|
|
# Build rpms
|
2016-03-29 08:26:29 -05:00
|
|
|
sudo -H -u vagrant make bootstrap
|
|
|
|
sudo -H -u vagrant make pkg-rpm
|
2016-03-22 16:10:07 -05:00
|
|
|
|
|
|
|
# Install rpms
|
|
|
|
|
|
|
|
(cd build-root/;sudo rpm -Uvh *.rpm)
|
|
|
|
|
|
|
|
# Disable all ethernet interfaces other than the default route
|
|
|
|
# interface so VPP will use those interfaces. The VPP auto-blacklist
|
|
|
|
# algorithm prevents the use of any physical interface contained in the
|
|
|
|
# routing table (i.e. "route --inet --inet6") preventing the theft of
|
|
|
|
# the management ethernet interface by VPP from the kernel.
|
|
|
|
for intf in $(ls /sys/class/net) ; do
|
|
|
|
if [ -d /sys/class/net/$intf/device ] &&
|
|
|
|
[ "$(route --inet --inet6 | grep default | grep $intf)" == "" ] ; then
|
|
|
|
ifconfig $intf down
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install uio-pci-generic
|
2015-12-08 15:45:58 -07:00
|
|
|
modprobe uio_pci_generic
|
|
|
|
|
2016-03-22 16:10:07 -05:00
|
|
|
# Start vpp
|
|
|
|
service vpp start
|
|
|
|
|
|
|
|
# cat README
|
|
|
|
cat /vagrant/README
|