5 SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
7 echo "SCRIPTS_DIR is :$SCRIPTS_DIR"
11 if [ -z "${DEV_NAME}" ]
13 echo "Please specify a device name!"
18 PCI_ADDRESS=$(lshw -class network -businfo | awk -F '@| ' '/pci.*'$DEV_NAME'/ {printf $2}')
19 if [ -z "${PCI_ADDRESS}" ]
21 echo "PCI_ADDRESS is NULL, maybe $DEV_NAME is wrong!"
27 cp -f ${SCRIPTS_DIR}/contiv-vswitch.conf /etc/vpp/contiv-vswitch.conf
28 cat <<EOF >> /etc/vpp/contiv-vswitch.conf
34 # make sure that the selected interface is shut down, otherwise VPP would not grab it
35 ifconfig $DEV_NAME down