Skip to content

Commit 8a65a3e

Browse files
author
root
committed
Adding support for IPoIb interfaces
The patch allow to ifup/ifdown IpoIB interfaces from network-scripts The required config is the following DEVICE=ib0.8005 # ib0 the it IB interface TYPE=Infiniband # the type is Infiniband PKEY=yes # indicator that it's IPoIB interface PKEY_ID=5 # the pkey number
1 parent a6a54d0 commit 8a65a3e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

network-scripts/ifdown-Infiniband

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
cd /etc/sysconfig/network-scripts
4+
. ./network-functions
5+
CONFIG=${1}
6+
source_config
7+
8+
if is_true "${PKEY}" && [ "${TYPE}" = "Infiniband" ] ; then
9+
# IPoIB support
10+
if [ -d /sys/devices/virtual/net/${DEVICE} ]; then
11+
ip link del "${DEVICE}"
12+
fi
13+
fi
14+
exit 0

0 commit comments

Comments
 (0)