diff options
Diffstat (limited to 'build-root')
-rw-r--r-- | build-root/vagrant/bootstrap.ubuntu1404.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build-root/vagrant/bootstrap.ubuntu1404.sh b/build-root/vagrant/bootstrap.ubuntu1404.sh index a8381bb4adc..fc1a3b8d1ef 100644 --- a/build-root/vagrant/bootstrap.ubuntu1404.sh +++ b/build-root/vagrant/bootstrap.ubuntu1404.sh @@ -52,6 +52,18 @@ cd ~vagrant/ sudo -u vagrant mkdir -p git/vpp cp /vagrant/README.moved git/vpp/ +# 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 + cd /vpp/ # Initial vpp build |