summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh
blob: f2e3fe29ad1c90eeb19ec5d8e9758e69a89dcf9d (plain)
1
2
3
4
5
6
7
8
9
link="$(sudo ip -o link | grep MACADDRESS |cut -d":" -f 2)"
if [ -n "$link" ];
then
       echo Need to bind
       sudo /opt/rapid/dpdk/usertools/dpdk-devbind.py --force --bind igb_uio $(sudo /opt/rapid/dpdk/usertools/dpdk-devbind.py --status |grep  $link | cut -d" " -f 1)
else
       echo Assuming port is already bound to DPDK
fi
exit 0