ShellCheck - shell script analysis tool version: 0.10.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.eEfvHeynR5 and /tmp/tmp.HWdEyCHxdD Tree base: 298038a4da18 ("net: remove redundant ASSERT_RTNL() in queue setup functions") Now at: e9bd6429972d ("netdevsim: remove udp_ports_sleep") ====== Checking before the patch ====== Checking tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh - 1b4ef4bc240effb6c34becfc377e88d9b95971304a6258dbbb468720bbf6b196 In udp_tunnel_nic.sh line 18: echo "ERROR:" $@ ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements. In udp_tunnel_nic.sh line 30: [ -e /sys/class/net/$dev ] && ip link del dev $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ -e /sys/class/net/"$dev" ] && ip link del dev "$dev" In udp_tunnel_nic.sh line 42: cleanup_tuns ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 43: cleanup_nsim ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 62: ip $ipfl link add $dev type vxlan \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip $ipfl link add "$dev" type vxlan \ In udp_tunnel_nic.sh line 64: dev $lower \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev "$lower" \ In udp_tunnel_nic.sh line 65: dstport $dstport \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dstport "$dstport" \ In udp_tunnel_nic.sh line 66: $flags ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$flags" In udp_tunnel_nic.sh line 68: ip link set dev $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" up In udp_tunnel_nic.sh line 70: clean_up_devs=("${clean_up_devs[@]}" $dev) ^--^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In udp_tunnel_nic.sh line 88: ip $ipfl link add $dev type geneve \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip $ipfl link add "$dev" type geneve \ In udp_tunnel_nic.sh line 89: remote $remote \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: remote "$remote" \ In udp_tunnel_nic.sh line 90: dstport $dstport \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dstport "$dstport" \ In udp_tunnel_nic.sh line 91: $flags ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$flags" In udp_tunnel_nic.sh line 93: ip link set dev $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" up In udp_tunnel_nic.sh line 95: clean_up_devs=("${clean_up_devs[@]}" $dev) ^--^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In udp_tunnel_nic.sh line 103: ip link del dev $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$dev" In udp_tunnel_nic.sh line 149: read -a have < $path ^--^ SC2162 (info): read without -r will mangle backslashes. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: read -a have < "$path" In udp_tunnel_nic.sh line 157: if [ -n "$HAS_ETHTOOL" -a ${expected[i]} -ne 0 ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -n "$HAS_ETHTOOL" -a "${expected[i]}" -ne 0 ]; then In udp_tunnel_nic.sh line 158: pp_expected=`pre_ethtool ${expected[i]}` ^--------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: pp_expected=$(pre_ethtool "${expected[i]}") In udp_tunnel_nic.sh line 159: ethtool --show-tunnels $NSIM_NETDEV | grep "$pp_expected" >/dev/null ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" | grep "$pp_expected" >/dev/null In udp_tunnel_nic.sh line 160: if [ $? -ne 0 -a $last -ne 0 ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ $? -ne 0 -a "$last" -ne 0 ]; then In udp_tunnel_nic.sh line 163: ethtool --show-tunnels $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" In udp_tunnel_nic.sh line 169: if [ ${expected[i]} != ${have[i]} ]; then ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "${expected[i]}" != "${have[i]}" ]; then In udp_tunnel_nic.sh line 170: if [ $last -ne 0 ]; then ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$last" -ne 0 ]; then In udp_tunnel_nic.sh line 173: echo " expected: `pre ${expected[i]}`" ^------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " expected: $(pre "${expected[i]}")" In udp_tunnel_nic.sh line 174: echo " have: `pre ${have[i]}`" ^--------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " have: $(pre "${have[i]}")" In udp_tunnel_nic.sh line 198: if [ -n "$HAS_ETHTOOL" -a -n "${STATIC_ENTRIES[0]}" ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In udp_tunnel_nic.sh line 201: pp_expected=`pre_ethtool ${STATIC_ENTRIES[i]}` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: pp_expected=$(pre_ethtool "${STATIC_ENTRIES[i]}") In udp_tunnel_nic.sh line 202: cnt=$(ethtool --show-tunnels $NSIM_NETDEV | grep -c "$pp_expected") ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cnt=$(ethtool --show-tunnels "$NSIM_NETDEV" | grep -c "$pp_expected") In udp_tunnel_nic.sh line 203: if [ $cnt -ne 1 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$cnt" -ne 1 ]; then In udp_tunnel_nic.sh line 206: ethtool --show-tunnels $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" In udp_tunnel_nic.sh line 215: local path=$NSIM_DEV_DFS/ports/$port/udp_ports/table$1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 216: read -a have < $path ^--^ SC2162 (info): read without -r will mangle backslashes. ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: read -a have < "$path" In udp_tunnel_nic.sh line 218: tree $NSIM_DEV_DFS/ ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tree "$NSIM_DEV_DFS"/ In udp_tunnel_nic.sh line 220: echo "Port $port table $1:" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 222: for i in "${!have[@]}"; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 223: echo " `pre ${have[i]}`" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " $(pre "${have[i]}")" In udp_tunnel_nic.sh line 229: print_table 0 ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 230: print_table 1 ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 241: [ $netdev == $check ] && break ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ "$netdev" == "$check" ] && break In udp_tunnel_nic.sh line 244: if [ $netdev != $check ]; then ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$netdev" != "$check" ]; then In udp_tunnel_nic.sh line 245: echo $netdev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$netdev" In udp_tunnel_nic.sh line 256: ethtool -h | grep show-tunnels 2>&1 >/dev/null && HAS_ETHTOOL=y ^--^ SC2069 (warning): To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify). In udp_tunnel_nic.sh line 272: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 273: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 281: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 282: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 283: new_vxlan vxlan1 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 292: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 293: new_vxlan vxlanA 4789 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA 4789 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 299: new_vxlan vxlanB 4789 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanB 4789 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 302: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 303: new_vxlan vxlanC 4790 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanC 4790 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 306: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 310: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 317: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 318: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 319: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 355: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 359: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 370: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 383: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 384: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 387: exp0=( `mke 10000 1` `mke 10001 1` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) 0 0 ) In udp_tunnel_nic.sh line 388: new_vxlan vxlan1 10001 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 10001 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 391: exp0=( `mke 10000 1` `mke 10001 1` `mke 10002 1` 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) $(mke 10002 1) 0 ) In udp_tunnel_nic.sh line 392: new_vxlan vxlan2 10002 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan2 10002 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 395: exp0=( `mke 10000 1` `mke 10001 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 396: new_vxlan vxlan3 10003 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan3 10003 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 399: new_vxlan vxlan4 10004 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan4 10004 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 406: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 410: exp1=( `mke 20000 2` `mke 20001 2` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) 0 0 ) In udp_tunnel_nic.sh line 414: exp1=( `mke 20000 2` `mke 20001 2` `mke 20002 2` 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) $(mke 20002 2) 0 ) In udp_tunnel_nic.sh line 418: exp1=( `mke 20000 2` `mke 20001 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 435: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 436: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 442: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 446: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 450: exp1=( `mke 20000 2` `mke 20004 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 454: exp1=( `mke 20000 2` `mke 20004 2` 0 `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) 0 $(mke 20003 2) ) In udp_tunnel_nic.sh line 458: exp1=( `mke 20000 2` `mke 20004 2` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 459: new_vxlan vxlanG0 30001 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG0 30001 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 462: new_vxlan vxlanG1 30002 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG1 30002 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 464: new_vxlan vxlanG2 30002 $NSIM_NETDEV 6 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG2 30002 "$NSIM_NETDEV" 6 "gpe external" In udp_tunnel_nic.sh line 466: exp1=( `mke 20000 2` `mke 30002 4` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 30002 4) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 493: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 494: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 500: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 504: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 508: exp1=( `mke 20000 2` `mke 20004 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 512: exp1=( `mke 20000 2` `mke 20004 2` 0 `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) 0 $(mke 20003 2) ) In udp_tunnel_nic.sh line 516: exp1=( `mke 20000 2` `mke 20004 2` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 517: new_vxlan vxlanG0 30001 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG0 30001 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 520: new_vxlan vxlanG1 30002 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG1 30002 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 522: new_vxlan vxlanG2 30002 $NSIM_NETDEV 6 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG2 30002 "$NSIM_NETDEV" 6 "gpe external" In udp_tunnel_nic.sh line 524: exp1=( `mke 20000 2` `mke 30002 4` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 30002 4) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 550: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 551: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 580: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 581: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 584: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 587: new_vxlan vxlanA1 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA1 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 594: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 595: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 603: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 612: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 613: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 641: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 642: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 648: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 651: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 652: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 662: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 667: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 671: exp1=( 0 `mke 20001 2` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( 0 $(mke 20001 2) 0 0 ) In udp_tunnel_nic.sh line 697: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 698: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 701: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 702: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 705: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 709: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 713: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 714: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 723: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 727: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 730: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 731: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 757: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 758: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 761: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 762: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 765: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 771: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 782: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 783: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 817: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 820: NSIM_NETDEV2=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV2=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 823: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 825: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 826: new_vxlan vxlan1 4789 $NSIM_NETDEV2 ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV2" In udp_tunnel_nic.sh line 839: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 840: new_vxlan vxlanC 4790 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanC 4790 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 843: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 847: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 851: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 854: for i in `seq 2`; do ^-----^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: for i in $(seq 2); do In udp_tunnel_nic.sh line 856: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 862: ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload off ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV2" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 866: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 867: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 868: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 872: ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload on ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV2" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 888: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 892: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 896: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 920: STATIC_ENTRIES=( `mke 4789 1` ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: STATIC_ENTRIES=( $(mke 4789 1) ) In udp_tunnel_nic.sh line 923: old_netdevs=$(ls /sys/class/net) ^---------^ SC2034 (warning): old_netdevs appears unused. Verify use (or export if used externally). In udp_tunnel_nic.sh line 925: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 933: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 934: new_vxlan vxlan1 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 937: exp0=( `mke 4790 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4790 1) 0 0 0 ) In udp_tunnel_nic.sh line 938: new_vxlan vxlan2 4790 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan2 4790 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 943: exp0=( 0 0 0 0 ) ^--^ SC2034 (warning): exp0 appears unused. Verify use (or export if used externally). In udp_tunnel_nic.sh line 944: exp1=( 0 0 0 0 ) ^--^ SC2034 (warning): exp1 appears unused. Verify use (or export if used externally). For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2034 -- exp0 appears unused. Verify use (... https://www.shellcheck.net/wiki/SC2069 -- To redirect stdout+stderr, 2>&1 m... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh - 1b4ef4bc240effb6c34becfc377e88d9b95971304a6258dbbb468720bbf6b196 In udp_tunnel_nic.sh line 18: echo "ERROR:" $@ ^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements. In udp_tunnel_nic.sh line 30: [ -e /sys/class/net/$dev ] && ip link del dev $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ -e /sys/class/net/"$dev" ] && ip link del dev "$dev" In udp_tunnel_nic.sh line 42: cleanup_tuns ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 43: cleanup_nsim ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 62: ip $ipfl link add $dev type vxlan \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip $ipfl link add "$dev" type vxlan \ In udp_tunnel_nic.sh line 64: dev $lower \ ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dev "$lower" \ In udp_tunnel_nic.sh line 65: dstport $dstport \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dstport "$dstport" \ In udp_tunnel_nic.sh line 66: $flags ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$flags" In udp_tunnel_nic.sh line 68: ip link set dev $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" up In udp_tunnel_nic.sh line 70: clean_up_devs=("${clean_up_devs[@]}" $dev) ^--^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In udp_tunnel_nic.sh line 88: ip $ipfl link add $dev type geneve \ ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip $ipfl link add "$dev" type geneve \ In udp_tunnel_nic.sh line 89: remote $remote \ ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: remote "$remote" \ In udp_tunnel_nic.sh line 90: dstport $dstport \ ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: dstport "$dstport" \ In udp_tunnel_nic.sh line 91: $flags ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "$flags" In udp_tunnel_nic.sh line 93: ip link set dev $dev up ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$dev" up In udp_tunnel_nic.sh line 95: clean_up_devs=("${clean_up_devs[@]}" $dev) ^--^ SC2206 (warning): Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. In udp_tunnel_nic.sh line 103: ip link del dev $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link del dev "$dev" In udp_tunnel_nic.sh line 149: read -a have < $path ^--^ SC2162 (info): read without -r will mangle backslashes. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: read -a have < "$path" In udp_tunnel_nic.sh line 157: if [ -n "$HAS_ETHTOOL" -a ${expected[i]} -ne 0 ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ -n "$HAS_ETHTOOL" -a "${expected[i]}" -ne 0 ]; then In udp_tunnel_nic.sh line 158: pp_expected=`pre_ethtool ${expected[i]}` ^--------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: pp_expected=$(pre_ethtool "${expected[i]}") In udp_tunnel_nic.sh line 159: ethtool --show-tunnels $NSIM_NETDEV | grep "$pp_expected" >/dev/null ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" | grep "$pp_expected" >/dev/null In udp_tunnel_nic.sh line 160: if [ $? -ne 0 -a $last -ne 0 ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ $? -ne 0 -a "$last" -ne 0 ]; then In udp_tunnel_nic.sh line 163: ethtool --show-tunnels $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" In udp_tunnel_nic.sh line 169: if [ ${expected[i]} != ${have[i]} ]; then ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "${expected[i]}" != "${have[i]}" ]; then In udp_tunnel_nic.sh line 170: if [ $last -ne 0 ]; then ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$last" -ne 0 ]; then In udp_tunnel_nic.sh line 173: echo " expected: `pre ${expected[i]}`" ^------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " expected: $(pre "${expected[i]}")" In udp_tunnel_nic.sh line 174: echo " have: `pre ${have[i]}`" ^--------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " have: $(pre "${have[i]}")" In udp_tunnel_nic.sh line 198: if [ -n "$HAS_ETHTOOL" -a -n "${STATIC_ENTRIES[0]}" ]; then ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. In udp_tunnel_nic.sh line 201: pp_expected=`pre_ethtool ${STATIC_ENTRIES[i]}` ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: pp_expected=$(pre_ethtool "${STATIC_ENTRIES[i]}") In udp_tunnel_nic.sh line 202: cnt=$(ethtool --show-tunnels $NSIM_NETDEV | grep -c "$pp_expected") ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: cnt=$(ethtool --show-tunnels "$NSIM_NETDEV" | grep -c "$pp_expected") In udp_tunnel_nic.sh line 203: if [ $cnt -ne 1 ]; then ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$cnt" -ne 1 ]; then In udp_tunnel_nic.sh line 206: ethtool --show-tunnels $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool --show-tunnels "$NSIM_NETDEV" In udp_tunnel_nic.sh line 215: local path=$NSIM_DEV_DFS/ports/$port/udp_ports/table$1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 216: read -a have < $path ^--^ SC2162 (info): read without -r will mangle backslashes. ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: read -a have < "$path" In udp_tunnel_nic.sh line 218: tree $NSIM_DEV_DFS/ ^-----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: tree "$NSIM_DEV_DFS"/ In udp_tunnel_nic.sh line 220: echo "Port $port table $1:" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 222: for i in "${!have[@]}"; do ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 223: echo " `pre ${have[i]}`" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo " $(pre "${have[i]}")" In udp_tunnel_nic.sh line 229: print_table 0 ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 230: print_table 1 ^-----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In udp_tunnel_nic.sh line 241: [ $netdev == $check ] && break ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: [ "$netdev" == "$check" ] && break In udp_tunnel_nic.sh line 244: if [ $netdev != $check ]; then ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: if [ "$netdev" != "$check" ]; then In udp_tunnel_nic.sh line 245: echo $netdev ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$netdev" In udp_tunnel_nic.sh line 256: ethtool -h | grep show-tunnels 2>&1 >/dev/null && HAS_ETHTOOL=y ^--^ SC2069 (warning): To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify). In udp_tunnel_nic.sh line 271: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 272: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 280: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 281: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 282: new_vxlan vxlan1 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 291: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 292: new_vxlan vxlanA 4789 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA 4789 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 298: new_vxlan vxlanB 4789 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanB 4789 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 301: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 302: new_vxlan vxlanC 4790 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanC 4790 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 305: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 309: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 316: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 317: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 318: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 353: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 357: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 368: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 381: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 382: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 385: exp0=( `mke 10000 1` `mke 10001 1` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) 0 0 ) In udp_tunnel_nic.sh line 386: new_vxlan vxlan1 10001 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 10001 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 389: exp0=( `mke 10000 1` `mke 10001 1` `mke 10002 1` 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) $(mke 10002 1) 0 ) In udp_tunnel_nic.sh line 390: new_vxlan vxlan2 10002 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan2 10002 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 393: exp0=( `mke 10000 1` `mke 10001 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10001 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 394: new_vxlan vxlan3 10003 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan3 10003 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 397: new_vxlan vxlan4 10004 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan4 10004 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 404: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 408: exp1=( `mke 20000 2` `mke 20001 2` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) 0 0 ) In udp_tunnel_nic.sh line 412: exp1=( `mke 20000 2` `mke 20001 2` `mke 20002 2` 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) $(mke 20002 2) 0 ) In udp_tunnel_nic.sh line 416: exp1=( `mke 20000 2` `mke 20001 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20001 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 432: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 433: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 439: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 443: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 447: exp1=( `mke 20000 2` `mke 20004 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 451: exp1=( `mke 20000 2` `mke 20004 2` 0 `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) 0 $(mke 20003 2) ) In udp_tunnel_nic.sh line 455: exp1=( `mke 20000 2` `mke 20004 2` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 456: new_vxlan vxlanG0 30001 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG0 30001 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 459: new_vxlan vxlanG1 30002 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG1 30002 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 461: new_vxlan vxlanG2 30002 $NSIM_NETDEV 6 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG2 30002 "$NSIM_NETDEV" 6 "gpe external" In udp_tunnel_nic.sh line 463: exp1=( `mke 20000 2` `mke 30002 4` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 30002 4) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 489: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 490: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 496: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 500: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 504: exp1=( `mke 20000 2` `mke 20004 2` `mke 20002 2` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 20002 2) $(mke 20003 2) ) In udp_tunnel_nic.sh line 508: exp1=( `mke 20000 2` `mke 20004 2` 0 `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) 0 $(mke 20003 2) ) In udp_tunnel_nic.sh line 512: exp1=( `mke 20000 2` `mke 20004 2` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 20004 2) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 513: new_vxlan vxlanG0 30001 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG0 30001 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 516: new_vxlan vxlanG1 30002 $NSIM_NETDEV 4 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG1 30002 "$NSIM_NETDEV" 4 "gpe external" In udp_tunnel_nic.sh line 518: new_vxlan vxlanG2 30002 $NSIM_NETDEV 6 "gpe external" ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanG2 30002 "$NSIM_NETDEV" 6 "gpe external" In udp_tunnel_nic.sh line 520: exp1=( `mke 20000 2` `mke 30002 4` `mke 30001 4` `mke 20003 2` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) $(mke 30002 4) $(mke 30001 4) $(mke 20003 2) ) In udp_tunnel_nic.sh line 545: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 546: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 574: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 575: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 578: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 581: new_vxlan vxlanA1 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA1 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 588: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 589: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 597: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 606: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 607: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 634: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 635: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 641: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 644: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 645: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 655: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 660: exp1=( `mke 20000 2` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 20000 2) 0 0 0 ) In udp_tunnel_nic.sh line 664: exp1=( 0 `mke 20001 2` 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( 0 $(mke 20001 2) 0 0 ) In udp_tunnel_nic.sh line 689: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 690: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 693: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 694: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 697: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 701: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 705: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 706: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 715: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 719: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 722: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 723: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 748: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 749: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 752: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 753: new_vxlan vxlanA0 10000 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanA0 10000 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 756: new_vxlan vxlan0 10000 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 10000 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 762: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 773: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 774: exp0=( `mke 10000 1` 0 0 0 ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) 0 0 0 ) In udp_tunnel_nic.sh line 807: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 810: NSIM_NETDEV2=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV2=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 813: exp0=( `mke 4789 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) 0 0 0 ) In udp_tunnel_nic.sh line 815: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 816: new_vxlan vxlan1 4789 $NSIM_NETDEV2 ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV2" In udp_tunnel_nic.sh line 829: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 830: new_vxlan vxlanC 4790 $NSIM_NETDEV 6 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlanC 4790 "$NSIM_NETDEV" 6 In udp_tunnel_nic.sh line 833: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 837: ip link set dev $NSIM_NETDEV down ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" down In udp_tunnel_nic.sh line 841: ip link set dev $NSIM_NETDEV up ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$NSIM_NETDEV" up In udp_tunnel_nic.sh line 844: for i in `seq 2`; do ^-----^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: for i in $(seq 2); do In udp_tunnel_nic.sh line 846: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 852: ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload off ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV2" rx-udp_tunnel-port-offload off In udp_tunnel_nic.sh line 856: exp0=( `mke 4789 1` `mke 4790 1` 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4789 1) $(mke 4790 1) 0 0 ) In udp_tunnel_nic.sh line 857: exp1=( `mke 6081 2` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp1=( $(mke 6081 2) 0 0 0 ) In udp_tunnel_nic.sh line 858: ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 862: ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload on ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ethtool -K "$NSIM_NETDEV2" rx-udp_tunnel-port-offload on In udp_tunnel_nic.sh line 878: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 882: exp0=( `mke 10000 1` `mke 10004 1` `mke 10002 1` `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) $(mke 10002 1) $(mke 10003 1) ) In udp_tunnel_nic.sh line 886: exp0=( `mke 10000 1` `mke 10004 1` 0 `mke 10003 1` ) ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. ^-----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 10000 1) $(mke 10004 1) 0 $(mke 10003 1) ) In udp_tunnel_nic.sh line 910: STATIC_ENTRIES=( `mke 4789 1` ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: STATIC_ENTRIES=( $(mke 4789 1) ) In udp_tunnel_nic.sh line 913: old_netdevs=$(ls /sys/class/net) ^---------^ SC2034 (warning): old_netdevs appears unused. Verify use (or export if used externally). In udp_tunnel_nic.sh line 915: NSIM_NETDEV=`get_netdev_name old_netdevs` ^---------------------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: NSIM_NETDEV=$(get_netdev_name old_netdevs) In udp_tunnel_nic.sh line 923: new_vxlan vxlan0 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan0 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 924: new_vxlan vxlan1 4789 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan1 4789 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 927: exp0=( `mke 4790 1` 0 0 0 ) ^----------^ SC2207 (warning): Prefer mapfile or read -a to split command output (or quote to avoid splitting). ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Did you mean: exp0=( $(mke 4790 1) 0 0 0 ) In udp_tunnel_nic.sh line 928: new_vxlan vxlan2 4790 $NSIM_NETDEV ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: new_vxlan vxlan2 4790 "$NSIM_NETDEV" In udp_tunnel_nic.sh line 933: exp0=( 0 0 0 0 ) ^--^ SC2034 (warning): exp0 appears unused. Verify use (or export if used externally). In udp_tunnel_nic.sh line 934: exp1=( 0 0 0 0 ) ^--^ SC2034 (warning): exp1 appears unused. Verify use (or export if used externally). For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2034 -- exp0 appears unused. Verify use (... https://www.shellcheck.net/wiki/SC2069 -- To redirect stdout+stderr, 2>&1 m...