Commit 781fe631 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

selftests: forwarding: Allow to get netdev interfaces names from commandline

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e4272d2
...@@ -45,6 +45,21 @@ if [[ ! -v NUM_NETIFS ]]; then ...@@ -45,6 +45,21 @@ if [[ ! -v NUM_NETIFS ]]; then
exit 0 exit 0
fi fi
##############################################################################
# Command line options handling
count=0
while [[ $# -gt 0 ]]; do
if [[ "$count" -eq "0" ]]; then
unset NETIFS
declare -A NETIFS
fi
count=$((count + 1))
NETIFS[p$count]="$1"
shift
done
############################################################################## ##############################################################################
# Network interfaces configuration # Network interfaces configuration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment