Skip to content
Snippets Groups Projects
Commit 873996cb authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #9230: Check for IPoIB devices and their settings

parent a9a5acd4
No related branches found
No related tags found
No related merge requests found
......@@ -5392,6 +5392,7 @@ SubSystems/Online_Cobalt/validation/system/mpi/basic-mpi.test eol=lf
SubSystems/Online_Cobalt/validation/system/mpi/custom-openmpi-config.test eol=lf
SubSystems/Online_Cobalt/validation/system/network/10gb-ifaces.test -text
SubSystems/Online_Cobalt/validation/system/network/hosts.test eol=lf
SubSystems/Online_Cobalt/validation/system/network/ipoib.test -text
SubSystems/Online_Cobalt/validation/system/network/resolvconf.test eol=lf
SubSystems/Online_Cobalt/validation/system/network/routes.cbt001 -text
SubSystems/Online_Cobalt/validation/system/network/routes.cbt002 -text
......
#!/bin/bash
for IFACE in ib0 ib1
do
echo Testing interface $IFACE...
# Interface should exist
ip link show $IFACE || exit 1
# Interface should be up
ip link show $IFACE | grep -q "state UP" || exit 1
# Connected mode should be set
[ "`cat /sys/class/net/$IFACE/mode`" == "connected" ] || exit 1
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment