From 4d932aced6931d756e07dbce6ab7cf04799ba5f4 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Mon, 27 Apr 2020 12:32:43 -0400 Subject: Code rewrite and Python3 support The code has been rewritten in multiple classes and files for better readability and maintainability. You should now also use Python3 to run the scripts. Some of the variables in the config files have moved to other sections. The pushgateway parameter moved to the [varia] section of the rapid environment file. Change-Id: Ic61a1bc3baa39447d42b21dfcc0f16c28fcdfa6e Signed-off-by: Luc Provoost --- VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh') diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh b/VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh new file mode 100755 index 00000000..ac6ccaa1 --- /dev/null +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/devbind.sh @@ -0,0 +1,9 @@ +link="$(sudo ip -o link | grep MACADDRESS |cut -d":" -f 2)" +if [ -n "$link" ]; +then + echo Need to bind + sudo ~/dpdk/usertools/dpdk-devbind.py --force --bind igb_uio $(sudo ~/dpdk/usertools/dpdk-devbind.py --status |grep $link | cut -d" " -f 1) +else + echo Assuming port is already bound to DPDK +fi +exit 0 -- cgit 1.2.3-korg