ShellCheck - shell script analysis tool version: 0.11.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net Redirect to /tmp/tmp.wVQPbb9Nd2 and /tmp/tmp.in3A7vWf4Q Tree base: 28233d130a6b ("net: bridge: mcast: always update mdb_n_entries for vlan contexts") Now at: 5b623d2b9509 ("selftests: forwarding: bridge_mdb_max: add tests for mdb_n_entries warning") ====== Checking before the patch ====== Checking tools/testing/selftests/net/forwarding/bridge_mdb_max.sh - 78065bf01e7a3a3d7f5c9f696cd51ff3e2329fb34600d66c28331c1ab155aca6 In bridge_mdb_max.sh line 39: simple_if_init $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" In bridge_mdb_max.sh line 40: vlan_create $h1 10 v$h1 192.0.2.1/28 2001:db8:1::1/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h1" 10 v"$h1" 192.0.2.1/28 2001:db8:1::1/64 In bridge_mdb_max.sh line 41: vlan_create $h1 20 v$h1 198.51.100.1/24 2001:db8:2::1/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h1" 20 v"$h1" 198.51.100.1/24 2001:db8:2::1/64 In bridge_mdb_max.sh line 44: h1_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 46: vlan_destroy $h1 20 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h1" 20 In bridge_mdb_max.sh line 47: vlan_destroy $h1 10 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h1" 10 In bridge_mdb_max.sh line 48: simple_if_fini $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" In bridge_mdb_max.sh line 53: simple_if_init $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" In bridge_mdb_max.sh line 54: vlan_create $h2 10 v$h2 192.0.2.2/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h2" 10 v"$h2" 192.0.2.2/28 In bridge_mdb_max.sh line 55: vlan_create $h2 20 v$h2 198.51.100.2/24 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h2" 20 v"$h2" 198.51.100.2/24 In bridge_mdb_max.sh line 58: h2_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 60: vlan_destroy $h2 20 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h2" 20 In bridge_mdb_max.sh line 61: vlan_destroy $h2 10 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h2" 10 In bridge_mdb_max.sh line 62: simple_if_fini $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" In bridge_mdb_max.sh line 65: switch_create_8021d() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 74: ip link set dev $swp1 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" master br0 In bridge_mdb_max.sh line 75: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In bridge_mdb_max.sh line 76: bridge link set dev $swp1 fastleave on ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$swp1" fastleave on In bridge_mdb_max.sh line 78: ip link set dev $swp2 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" master br0 In bridge_mdb_max.sh line 79: ip link set dev $swp2 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" up In bridge_mdb_max.sh line 82: switch_create_8021q() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 89: mcast_snooping 1 $br_flags \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mcast_snooping 1 "$br_flags" \ In bridge_mdb_max.sh line 95: ip link set dev $swp1 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" master br0 In bridge_mdb_max.sh line 96: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In bridge_mdb_max.sh line 97: bridge link set dev $swp1 fastleave on ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$swp1" fastleave on In bridge_mdb_max.sh line 98: bridge vlan add vid 10 dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 10 dev "$swp1" In bridge_mdb_max.sh line 99: bridge vlan add vid 20 dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 20 dev "$swp1" In bridge_mdb_max.sh line 101: ip link set dev $swp2 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" master br0 In bridge_mdb_max.sh line 102: ip link set dev $swp2 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" up In bridge_mdb_max.sh line 103: bridge vlan add vid 10 dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 10 dev "$swp2" In bridge_mdb_max.sh line 104: bridge vlan add vid 20 dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 20 dev "$swp2" In bridge_mdb_max.sh line 107: switch_create_8021qvs() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 116: switch_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 118: ip link set dev $swp2 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" down In bridge_mdb_max.sh line 119: ip link set dev $swp2 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" nomaster In bridge_mdb_max.sh line 121: ip link set dev $swp1 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" down In bridge_mdb_max.sh line 122: ip link set dev $swp1 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" nomaster In bridge_mdb_max.sh line 143: cleanup() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 155: cfg_src_list() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 158: local IPstr=$(echo ${IPs[@]} | tr '[:space:]' , | sed 's/,$//') ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 160: echo ${IPstr:+source_list }${IPstr} ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo ${IPstr:+source_list }"${IPstr}" In bridge_mdb_max.sh line 163: cfg_group_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 171: local source_list=$(cfg_src_list ${IPs[@]}) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 175: local br_locus=$(echo "$locus" | sed 's/^dev /port /') ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2001 (style): See if you can use ${variable//search/replace} instead. In bridge_mdb_max.sh line 177: bridge mdb $op dev br0 $br_locus grp $GRP $state \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge mdb "$op" dev br0 "$br_locus" grp "$GRP" "$state" \ In bridge_mdb_max.sh line 178: filter_mode include $source_list ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: filter_mode include "$source_list" In bridge_mdb_max.sh line 181: cfg4_entries_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 190: local IPs=$(seq -f 192.0.2.%g 1 $((n - 1))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 191: cfg_group_op "$op" "$locus" "$GRP" "$state" ${IPs[@]} ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 194: cfg4_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 199: cfg4_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 204: cfg6_entries_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 213: local IPs=$(printf "2001:db8:1::%x\n" $(seq 1 $((n - 1)))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 214: cfg_group_op "$op" "$locus" "$GRP" "$state" ${IPs[@]} ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 217: cfg6_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 222: cfg6_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 227: locus_dev_peer() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 231: local vid_kw=$1; shift ^----^ SC2034 (warning): vid_kw appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 237: locus_dev() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 239: local dev_kw=$1; shift ^----^ SC2034 (warning): dev_kw appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 242: echo $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$dev" In bridge_mdb_max.sh line 245: ctl4_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 252: local IPs=$(seq -f 192.0.2.%g 1 $((n - 1))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 253: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 255: local dmac=01:00:5e:01:01:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=01:00:5e:01:01:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 256: $MZ $peer -a own -b $dmac -c 1 -A 192.0.2.1 -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$peer" -a own -b "$dmac" -c 1 -A 192.0.2.1 -B "$GRP" \ In bridge_mdb_max.sh line 257: -t ip proto=2,p=$(igmpv3_is_in_get $GRP $IPs) -q ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2128 (warning): Expanding an array without an index only gives the first element. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -t ip proto=2,p=$(igmpv3_is_in_get "$GRP" "$IPs") -q In bridge_mdb_max.sh line 260: local nn=$(bridge mdb show dev br0 | grep $GRP | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$GRP" | wc -l) In bridge_mdb_max.sh line 267: ctl4_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 274: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 277: $MZ $peer -a own -b $dmac -c 1 -A 192.0.2.1 -B 224.0.0.2 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$peer" -a own -b "$dmac" -c 1 -A 192.0.2.1 -B 224.0.0.2 \ In bridge_mdb_max.sh line 278: -t ip proto=2,p=$(igmpv2_leave_get $GRP) -q ^----------------------^ SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -t ip proto=2,p=$(igmpv2_leave_get "$GRP") -q In bridge_mdb_max.sh line 280: ! bridge mdb show dev br0 | grep -q $GRP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ! bridge mdb show dev br0 | grep -q "$GRP" In bridge_mdb_max.sh line 283: ctl6_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 290: local IPs=$(printf "2001:db8:1::%x\n" $(seq 1 $((n - 1)))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 291: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 294: local dmac=33:33:00:00:00:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=33:33:00:00:00:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 295: local p=$(mldv2_is_in_get $SIP $GRP $IPs) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2128 (warning): Expanding an array without an index only gives the first element. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local p=$(mldv2_is_in_get "$SIP" "$GRP" "$IPs") In bridge_mdb_max.sh line 296: $MZ -6 $peer -a own -b $dmac -c 1 -A $SIP -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ -6 "$peer" -a own -b "$dmac" -c 1 -A "$SIP" -B "$GRP" \ In bridge_mdb_max.sh line 300: local nn=$(bridge mdb show dev br0 | grep $GRP | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$GRP" | wc -l) In bridge_mdb_max.sh line 307: ctl6_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 314: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 317: local dmac=33:33:00:00:00:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=33:33:00:00:00:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 318: local p=$(mldv1_done_get $SIP $GRP) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local p=$(mldv1_done_get "$SIP" "$GRP") In bridge_mdb_max.sh line 319: $MZ -6 $peer -a own -b $dmac -c 1 -A $SIP -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ -6 "$peer" -a own -b "$dmac" -c 1 -A "$SIP" -B "$GRP" \ In bridge_mdb_max.sh line 322: ! bridge mdb show dev br0 | grep -q $GRP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ! bridge mdb show dev br0 | grep -q "$GRP" In bridge_mdb_max.sh line 325: bridge_maxgroups_errmsg_check_cfg() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 328: local needle=$1; shift ^----^ SC2034 (warning): needle appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 334: bridge_maxgroups_errmsg_check_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 339: bridge_maxgroups_errmsg_check_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 344: bridge_maxgroups_errmsg_check_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 349: bridge_maxgroups_errmsg_check_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 354: bridge_port_ngroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 358: bridge -j -d link show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d link show "$locus" | In bridge_mdb_max.sh line 362: bridge_port_maxgroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 366: bridge -j -d link show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d link show "$locus" | In bridge_mdb_max.sh line 370: bridge_port_maxgroups_set() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 375: bridge link set dev $(locus_dev $locus) mcast_max_groups $max ^-----------------^ SC2046 (warning): Quote this to prevent word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev $(locus_dev "$locus") mcast_max_groups "$max" In bridge_mdb_max.sh line 378: bridge_port_vlan_ngroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 382: bridge -j -d vlan show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d vlan show "$locus" | In bridge_mdb_max.sh line 386: bridge_port_vlan_maxgroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 390: bridge -j -d vlan show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d vlan show "$locus" | In bridge_mdb_max.sh line 394: bridge_port_vlan_maxgroups_set() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 399: bridge vlan set $locus mcast_max_groups $max ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan set "$locus" mcast_max_groups "$max" In bridge_mdb_max.sh line 402: test_ngroups_reporting() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 410: local n0=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n0=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 411: ${CFG}_entries_add "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 In bridge_mdb_max.sh line 413: local n1=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n1=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 418: ${CFG}_entries_del "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 In bridge_mdb_max.sh line 420: local n2=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n2=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 428: test_8021d_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 433: test_8021d_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 438: test_8021d_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 443: test_8021d_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 448: test_8021q_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 453: test_8021q_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 458: test_8021q_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 463: test_8021q_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 468: test_8021qvs_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 473: test_8021qvs_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 478: test_8021qvs_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 483: test_8021qvs_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 488: test_ngroups_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 497: local n10=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 498: local n20=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 499: ${CFG}_entries_add "$locus1" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus1" temp 5 111 In bridge_mdb_max.sh line 501: local n11=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 502: local n21=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 510: ${CFG}_entries_add "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus2" temp 5 112 In bridge_mdb_max.sh line 512: local n12=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 513: local n22=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 521: ${CFG}_entries_del "$locus1" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 5 111 In bridge_mdb_max.sh line 523: ${CFG}_entries_del "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus2" temp 5 112 In bridge_mdb_max.sh line 525: local n13=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 526: local n23=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 537: test_8021qvs_ngroups_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 542: test_8021qvs_ngroups_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 547: test_8021qvs_ngroups_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 552: test_8021qvs_ngroups_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 557: test_maxgroups_zero() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 566: max=$(bridge_${context}_maxgroups_get "$locus") ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 570: bridge_${context}_maxgroups_set "$locus" 100 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 100 In bridge_mdb_max.sh line 572: max=$(bridge_${context}_maxgroups_get "$locus") ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 576: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 580: ${CFG}_entries_add "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 In bridge_mdb_max.sh line 582: ${CFG}_entries_del "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 In bridge_mdb_max.sh line 588: test_8021d_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 593: test_8021d_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 598: test_8021d_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 603: test_8021d_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 608: test_8021q_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 613: test_8021q_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 618: test_8021q_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 623: test_8021q_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 628: test_8021qvs_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 633: test_8021qvs_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 638: test_8021qvs_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 643: test_8021qvs_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 648: test_maxgroups_zero_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 728: test_8021qvs_maxgroups_zero_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 733: test_8021qvs_maxgroups_zero_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 738: test_8021qvs_maxgroups_zero_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 743: test_8021qvs_maxgroups_zero_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 748: test_maxgroups_too_low() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 756: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 759: ${CFG}_entries_add "$locus" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 111 In bridge_mdb_max.sh line 762: bridge_${context}_maxgroups_set "$locus" $((n+2)) ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" $((n+2)) In bridge_mdb_max.sh line 765: msg=$(${CFG}_entries_add "$locus" temp 2 112 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus" temp 2 112 2>&1) In bridge_mdb_max.sh line 769: ${CFG}_entries_del "$locus" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 111 In bridge_mdb_max.sh line 772: ${CFG}_entries_add "$locus" temp 2 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 2 112 In bridge_mdb_max.sh line 775: ${CFG}_entries_del "$locus" temp 2 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 2 112 In bridge_mdb_max.sh line 778: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 784: test_8021d_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 789: test_8021d_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 794: test_8021d_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 799: test_8021d_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 804: test_8021q_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 809: test_8021q_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 814: test_8021q_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 819: test_8021q_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 824: test_8021qvs_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 829: test_8021qvs_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 834: test_8021qvs_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 839: test_8021qvs_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 844: test_maxgroups_too_many_entries() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 852: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 856: bridge_${context}_maxgroups_set "$locus" $((n+1)) ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" $((n+1)) In bridge_mdb_max.sh line 860: msg=$(${CFG}_entries_add "$locus" temp 5 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus" temp 5 2>&1) In bridge_mdb_max.sh line 862: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 868: ${CFG}_entries_del "$locus" temp 17 2>&1 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 17 2>&1 In bridge_mdb_max.sh line 871: local n2=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n2=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 875: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 881: test_8021d_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 886: test_8021d_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 891: test_8021d_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 896: test_8021d_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 901: test_8021q_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 906: test_8021q_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 911: test_8021q_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 916: test_8021q_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 921: test_8021qvs_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 926: test_8021qvs_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 931: test_8021qvs_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 936: test_8021qvs_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 941: test_maxgroups_too_many_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 950: local n1=$(bridge_port_vlan_ngroups_get "$locus1") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 951: local n2=$(bridge_port_vlan_ngroups_get "$locus2") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 965: ${CFG}_entries_add "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus2" temp 5 112 In bridge_mdb_max.sh line 979: msg=$(${CFG}_entries_add "$locus1" temp $n2 111 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus1" temp "$n2" 111 2>&1) In bridge_mdb_max.sh line 981: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 986: msg=$(${CFG}_entries_add "$locus1" temp 5 111 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus1" temp 5 111 2>&1) In bridge_mdb_max.sh line 988: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 993: ${CFG}_entries_del "$locus1" temp 5 111 2>/dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 5 111 2>/dev/null In bridge_mdb_max.sh line 995: ${CFG}_entries_add "$locus1" temp 2 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus1" temp 2 111 In bridge_mdb_max.sh line 998: ${CFG}_entries_del "$locus1" temp 2 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 2 111 In bridge_mdb_max.sh line 1001: ${CFG}_entries_del "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus2" temp 5 112 In bridge_mdb_max.sh line 1013: test_8021qvs_maxgroups_too_many_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1018: test_8021qvs_maxgroups_too_many_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1023: test_8021qvs_maxgroups_too_many_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1028: test_8021qvs_maxgroups_too_many_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1033: test_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1040: local max=$(bridge_port_vlan_maxgroups_get "$locus") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 1041: local n=$(bridge_port_vlan_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 1052: test_8021q_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1057: test_8021qvs_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1062: test_toggle_vlan_snooping() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1072: ${CFG}_entries_add "$locus" $mode 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" "$mode" 5 In bridge_mdb_max.sh line 1075: bridge_${context}_maxgroups_set "$locus" 100 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 100 In bridge_mdb_max.sh line 1082: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 1083: local nn=$(bridge mdb show dev br0 | grep $swp1 | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$swp1" | wc -l) In bridge_mdb_max.sh line 1087: local max=$(bridge_${context}_maxgroups_get "$locus") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 1091: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 1097: test_toggle_vlan_snooping_temp() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1102: test_toggle_vlan_snooping_permanent() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1109: test_8021d_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1114: test_8021d_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1119: test_8021d_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1124: test_8021d_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1129: test_8021q_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1134: test_8021q_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1139: test_8021q_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1144: test_8021q_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1149: test_8021qvs_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1155: test_8021qvs_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1161: test_8021qvs_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1167: test_8021qvs_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1175: test_8021d_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1182: test_8021d_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1189: test_8021d_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1196: test_8021d_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1203: test_8021q_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1210: test_8021q_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1217: test_8021q_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1224: test_8021q_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1231: test_8021qvs_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1240: test_8021qvs_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1249: test_8021qvs_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1258: test_8021qvs_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1269: test_8021qvs_toggle_vlan_snooping() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1277: test_8021d() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1296: test_8021q() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1316: test_8021qvs() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1347: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2034 -- dev_kw appears unused. Verify use... https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... ====== Checking the tree with the patch ====== Checking tools/testing/selftests/net/forwarding/bridge_mdb_max.sh - 78065bf01e7a3a3d7f5c9f696cd51ff3e2329fb34600d66c28331c1ab155aca6 In bridge_mdb_max.sh line 40: simple_if_init $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h1" In bridge_mdb_max.sh line 41: vlan_create $h1 10 v$h1 192.0.2.1/28 2001:db8:1::1/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h1" 10 v"$h1" 192.0.2.1/28 2001:db8:1::1/64 In bridge_mdb_max.sh line 42: vlan_create $h1 20 v$h1 198.51.100.1/24 2001:db8:2::1/64 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h1" 20 v"$h1" 198.51.100.1/24 2001:db8:2::1/64 In bridge_mdb_max.sh line 45: h1_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 47: vlan_destroy $h1 20 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h1" 20 In bridge_mdb_max.sh line 48: vlan_destroy $h1 10 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h1" 10 In bridge_mdb_max.sh line 49: simple_if_fini $h1 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h1" In bridge_mdb_max.sh line 54: simple_if_init $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_init "$h2" In bridge_mdb_max.sh line 55: vlan_create $h2 10 v$h2 192.0.2.2/28 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h2" 10 v"$h2" 192.0.2.2/28 In bridge_mdb_max.sh line 56: vlan_create $h2 20 v$h2 198.51.100.2/24 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_create "$h2" 20 v"$h2" 198.51.100.2/24 In bridge_mdb_max.sh line 59: h2_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 61: vlan_destroy $h2 20 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h2" 20 In bridge_mdb_max.sh line 62: vlan_destroy $h2 10 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: vlan_destroy "$h2" 10 In bridge_mdb_max.sh line 63: simple_if_fini $h2 ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: simple_if_fini "$h2" In bridge_mdb_max.sh line 66: switch_create_8021d() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 75: ip link set dev $swp1 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" master br0 In bridge_mdb_max.sh line 76: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In bridge_mdb_max.sh line 77: bridge link set dev $swp1 fastleave on ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$swp1" fastleave on In bridge_mdb_max.sh line 79: ip link set dev $swp2 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" master br0 In bridge_mdb_max.sh line 80: ip link set dev $swp2 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" up In bridge_mdb_max.sh line 83: switch_create_8021q() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 88: mcast_snooping 1 $br_flags \ ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: mcast_snooping 1 "$br_flags" \ In bridge_mdb_max.sh line 94: ip link set dev $swp1 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" master br0 In bridge_mdb_max.sh line 95: ip link set dev $swp1 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" up In bridge_mdb_max.sh line 96: bridge link set dev $swp1 fastleave on ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev "$swp1" fastleave on In bridge_mdb_max.sh line 97: bridge vlan add vid 10 dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 10 dev "$swp1" In bridge_mdb_max.sh line 98: bridge vlan add vid 20 dev $swp1 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 20 dev "$swp1" In bridge_mdb_max.sh line 100: ip link set dev $swp2 master br0 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" master br0 In bridge_mdb_max.sh line 101: ip link set dev $swp2 up ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" up In bridge_mdb_max.sh line 102: bridge vlan add vid 10 dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 10 dev "$swp2" In bridge_mdb_max.sh line 103: bridge vlan add vid 20 dev $swp2 ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan add vid 20 dev "$swp2" In bridge_mdb_max.sh line 106: switch_create_8021qvs() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 116: switch_destroy() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 118: ip link set dev $swp2 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" down In bridge_mdb_max.sh line 119: ip link set dev $swp2 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp2" nomaster In bridge_mdb_max.sh line 121: ip link set dev $swp1 down ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" down In bridge_mdb_max.sh line 122: ip link set dev $swp1 nomaster ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ip link set dev "$swp1" nomaster In bridge_mdb_max.sh line 143: cleanup() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 155: cfg_src_list() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 158: local IPstr=$(echo ${IPs[@]} | tr '[:space:]' , | sed 's/,$//') ^---^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 160: echo ${IPstr:+source_list }${IPstr} ^------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo ${IPstr:+source_list }"${IPstr}" In bridge_mdb_max.sh line 163: cfg_group_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 171: local source_list=$(cfg_src_list ${IPs[@]}) ^---------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 175: local br_locus=$(echo "$locus" | sed 's/^dev /port /') ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-- SC2001 (style): See if you can use ${variable//search/replace} instead. In bridge_mdb_max.sh line 177: bridge mdb $op dev br0 $br_locus grp $GRP $state \ ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-------^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge mdb "$op" dev br0 "$br_locus" grp "$GRP" "$state" \ In bridge_mdb_max.sh line 178: filter_mode include $source_list ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: filter_mode include "$source_list" In bridge_mdb_max.sh line 181: cfg4_entries_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 190: local IPs=$(seq -f 192.0.2.%g 1 $((n - 1))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 191: cfg_group_op "$op" "$locus" "$GRP" "$state" ${IPs[@]} ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 194: cfg4_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 199: cfg4_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 204: cfg6_entries_op() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 213: local IPs=$(printf "2001:db8:1::%x\n" $(seq 1 $((n - 1)))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 214: cfg_group_op "$op" "$locus" "$GRP" "$state" ${IPs[@]} ^-------^ SC2068 (error): Double quote array expansions to avoid re-splitting elements. In bridge_mdb_max.sh line 217: cfg6_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 222: cfg6_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 227: locus_dev_peer() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 231: local vid_kw=$1; shift ^----^ SC2034 (warning): vid_kw appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 237: locus_dev() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 239: local dev_kw=$1; shift ^----^ SC2034 (warning): dev_kw appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 242: echo $dev ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: echo "$dev" In bridge_mdb_max.sh line 245: ctl4_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 252: local IPs=$(seq -f 192.0.2.%g 1 $((n - 1))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 253: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 255: local dmac=01:00:5e:01:01:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=01:00:5e:01:01:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 256: $MZ $peer -a own -b $dmac -c 1 -A 192.0.2.1 -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$peer" -a own -b "$dmac" -c 1 -A 192.0.2.1 -B "$GRP" \ In bridge_mdb_max.sh line 257: -t ip proto=2,p=$(igmpv3_is_in_get $GRP $IPs) -q ^---------------------------^ SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2128 (warning): Expanding an array without an index only gives the first element. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -t ip proto=2,p=$(igmpv3_is_in_get "$GRP" "$IPs") -q In bridge_mdb_max.sh line 260: local nn=$(bridge mdb show dev br0 | grep $GRP | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$GRP" | wc -l) In bridge_mdb_max.sh line 267: ctl4_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 274: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 277: $MZ $peer -a own -b $dmac -c 1 -A 192.0.2.1 -B 224.0.0.2 \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ "$peer" -a own -b "$dmac" -c 1 -A 192.0.2.1 -B 224.0.0.2 \ In bridge_mdb_max.sh line 278: -t ip proto=2,p=$(igmpv2_leave_get $GRP) -q ^----------------------^ SC2046 (warning): Quote this to prevent word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: -t ip proto=2,p=$(igmpv2_leave_get "$GRP") -q In bridge_mdb_max.sh line 280: ! bridge mdb show dev br0 | grep -q $GRP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ! bridge mdb show dev br0 | grep -q "$GRP" In bridge_mdb_max.sh line 283: ctl6_entries_add() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 290: local IPs=$(printf "2001:db8:1::%x\n" $(seq 1 $((n - 1)))) ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^-^ SC2178 (warning): Variable was used as an array but is now assigned a string. In bridge_mdb_max.sh line 291: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 294: local dmac=33:33:00:00:00:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=33:33:00:00:00:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 295: local p=$(mldv2_is_in_get $SIP $GRP $IPs) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2128 (warning): Expanding an array without an index only gives the first element. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local p=$(mldv2_is_in_get "$SIP" "$GRP" "$IPs") In bridge_mdb_max.sh line 296: $MZ -6 $peer -a own -b $dmac -c 1 -A $SIP -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ -6 "$peer" -a own -b "$dmac" -c 1 -A "$SIP" -B "$GRP" \ In bridge_mdb_max.sh line 300: local nn=$(bridge mdb show dev br0 | grep $GRP | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^-------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$GRP" | wc -l) In bridge_mdb_max.sh line 307: ctl6_entries_del() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 314: local peer=$(locus_dev_peer $locus) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local peer=$(locus_dev_peer "$locus") In bridge_mdb_max.sh line 317: local dmac=33:33:00:00:00:$(printf "%02x" $grp) ^--^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local dmac=33:33:00:00:00:$(printf "%02x" "$grp") In bridge_mdb_max.sh line 318: local p=$(mldv1_done_get $SIP $GRP) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local p=$(mldv1_done_get "$SIP" "$GRP") In bridge_mdb_max.sh line 319: $MZ -6 $peer -a own -b $dmac -c 1 -A $SIP -B $GRP \ ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: $MZ -6 "$peer" -a own -b "$dmac" -c 1 -A "$SIP" -B "$GRP" \ In bridge_mdb_max.sh line 322: ! bridge mdb show dev br0 | grep -q $GRP ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: ! bridge mdb show dev br0 | grep -q "$GRP" In bridge_mdb_max.sh line 325: bridge_maxgroups_errmsg_check_cfg() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 328: local needle=$1; shift ^----^ SC2034 (warning): needle appears unused. Verify use (or export if used externally). In bridge_mdb_max.sh line 334: bridge_maxgroups_errmsg_check_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 339: bridge_maxgroups_errmsg_check_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 344: bridge_maxgroups_errmsg_check_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 349: bridge_maxgroups_errmsg_check_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 354: bridge_port_ngroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 358: bridge -j -d link show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d link show "$locus" | In bridge_mdb_max.sh line 362: bridge_port_maxgroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 366: bridge -j -d link show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d link show "$locus" | In bridge_mdb_max.sh line 370: bridge_port_maxgroups_set() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 375: bridge link set dev $(locus_dev $locus) mcast_max_groups $max ^-----------------^ SC2046 (warning): Quote this to prevent word splitting. ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge link set dev $(locus_dev "$locus") mcast_max_groups "$max" In bridge_mdb_max.sh line 378: bridge_port_vlan_ngroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 382: bridge -j -d vlan show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d vlan show "$locus" | In bridge_mdb_max.sh line 386: bridge_port_vlan_maxgroups_get() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 390: bridge -j -d vlan show $locus | ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge -j -d vlan show "$locus" | In bridge_mdb_max.sh line 394: bridge_port_vlan_maxgroups_set() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 399: bridge vlan set $locus mcast_max_groups $max ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^--^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge vlan set "$locus" mcast_max_groups "$max" In bridge_mdb_max.sh line 402: test_ngroups_reporting() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 410: local n0=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n0=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 411: ${CFG}_entries_add "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 In bridge_mdb_max.sh line 413: local n1=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n1=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 418: ${CFG}_entries_del "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 In bridge_mdb_max.sh line 420: local n2=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n2=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 428: test_8021d_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 433: test_8021d_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 438: test_8021d_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 443: test_8021d_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 448: test_8021q_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 453: test_8021q_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 458: test_8021q_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 463: test_8021q_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 468: test_8021qvs_ngroups_reporting_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 473: test_8021qvs_ngroups_reporting_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 478: test_8021qvs_ngroups_reporting_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 483: test_8021qvs_ngroups_reporting_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 488: test_ngroups_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 497: local n10=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 498: local n20=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 499: ${CFG}_entries_add "$locus1" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus1" temp 5 111 In bridge_mdb_max.sh line 501: local n11=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 502: local n21=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 510: ${CFG}_entries_add "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus2" temp 5 112 In bridge_mdb_max.sh line 512: local n12=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 513: local n22=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 521: ${CFG}_entries_del "$locus1" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 5 111 In bridge_mdb_max.sh line 523: ${CFG}_entries_del "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus2" temp 5 112 In bridge_mdb_max.sh line 525: local n13=$(bridge_port_vlan_ngroups_get "$locus1") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 526: local n23=$(bridge_port_vlan_ngroups_get "$locus2") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 537: test_8021qvs_ngroups_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 542: test_8021qvs_ngroups_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 547: test_8021qvs_ngroups_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 552: test_8021qvs_ngroups_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 557: test_maxgroups_zero() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 566: max=$(bridge_${context}_maxgroups_get "$locus") ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 570: bridge_${context}_maxgroups_set "$locus" 100 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 100 In bridge_mdb_max.sh line 572: max=$(bridge_${context}_maxgroups_get "$locus") ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 576: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 580: ${CFG}_entries_add "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 In bridge_mdb_max.sh line 582: ${CFG}_entries_del "$locus" temp 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 In bridge_mdb_max.sh line 588: test_8021d_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 593: test_8021d_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 598: test_8021d_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 603: test_8021d_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 608: test_8021q_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 613: test_8021q_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 618: test_8021q_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 623: test_8021q_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 628: test_8021qvs_maxgroups_zero_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 633: test_8021qvs_maxgroups_zero_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 638: test_8021qvs_maxgroups_zero_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 643: test_8021qvs_maxgroups_zero_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 648: test_maxgroups_zero_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 728: test_8021qvs_maxgroups_zero_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 733: test_8021qvs_maxgroups_zero_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 738: test_8021qvs_maxgroups_zero_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 743: test_8021qvs_maxgroups_zero_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 748: test_maxgroups_too_low() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 756: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 759: ${CFG}_entries_add "$locus" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 5 111 In bridge_mdb_max.sh line 762: bridge_${context}_maxgroups_set "$locus" $((n+2)) ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" $((n+2)) In bridge_mdb_max.sh line 765: msg=$(${CFG}_entries_add "$locus" temp 2 112 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus" temp 2 112 2>&1) In bridge_mdb_max.sh line 769: ${CFG}_entries_del "$locus" temp 5 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 5 111 In bridge_mdb_max.sh line 772: ${CFG}_entries_add "$locus" temp 2 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" temp 2 112 In bridge_mdb_max.sh line 775: ${CFG}_entries_del "$locus" temp 2 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 2 112 In bridge_mdb_max.sh line 778: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 784: test_8021d_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 789: test_8021d_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 794: test_8021d_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 799: test_8021d_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 804: test_8021q_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 809: test_8021q_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 814: test_8021q_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 819: test_8021q_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 824: test_8021qvs_maxgroups_too_low_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 829: test_8021qvs_maxgroups_too_low_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 834: test_8021qvs_maxgroups_too_low_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 839: test_8021qvs_maxgroups_too_low_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 844: test_maxgroups_too_many_entries() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 852: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 856: bridge_${context}_maxgroups_set "$locus" $((n+1)) ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" $((n+1)) In bridge_mdb_max.sh line 860: msg=$(${CFG}_entries_add "$locus" temp 5 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus" temp 5 2>&1) In bridge_mdb_max.sh line 862: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 868: ${CFG}_entries_del "$locus" temp 17 2>&1 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus" temp 17 2>&1 In bridge_mdb_max.sh line 871: local n2=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n2=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 875: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 881: test_8021d_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 886: test_8021d_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 891: test_8021d_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 896: test_8021d_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 901: test_8021q_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 906: test_8021q_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 911: test_8021q_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 916: test_8021q_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 921: test_8021qvs_maxgroups_too_many_entries_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 926: test_8021qvs_maxgroups_too_many_entries_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 931: test_8021qvs_maxgroups_too_many_entries_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 936: test_8021qvs_maxgroups_too_many_entries_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 941: test_maxgroups_too_many_cross_vlan() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 950: local n1=$(bridge_port_vlan_ngroups_get "$locus1") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 951: local n2=$(bridge_port_vlan_ngroups_get "$locus2") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 965: ${CFG}_entries_add "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus2" temp 5 112 In bridge_mdb_max.sh line 979: msg=$(${CFG}_entries_add "$locus1" temp $n2 111 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^-^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus1" temp "$n2" 111 2>&1) In bridge_mdb_max.sh line 981: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 986: msg=$(${CFG}_entries_add "$locus1" temp 5 111 2>&1) ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: msg=$("${CFG}"_entries_add "$locus1" temp 5 111 2>&1) In bridge_mdb_max.sh line 988: bridge_maxgroups_errmsg_check_${CFG} "$msg" ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_maxgroups_errmsg_check_"${CFG}" "$msg" In bridge_mdb_max.sh line 993: ${CFG}_entries_del "$locus1" temp 5 111 2>/dev/null ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 5 111 2>/dev/null In bridge_mdb_max.sh line 995: ${CFG}_entries_add "$locus1" temp 2 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus1" temp 2 111 In bridge_mdb_max.sh line 998: ${CFG}_entries_del "$locus1" temp 2 111 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus1" temp 2 111 In bridge_mdb_max.sh line 1001: ${CFG}_entries_del "$locus2" temp 5 112 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_del "$locus2" temp 5 112 In bridge_mdb_max.sh line 1013: test_8021qvs_maxgroups_too_many_cross_vlan_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1018: test_8021qvs_maxgroups_too_many_cross_vlan_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1023: test_8021qvs_maxgroups_too_many_cross_vlan_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1028: test_8021qvs_maxgroups_too_many_cross_vlan_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1033: test_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1040: local max=$(bridge_port_vlan_maxgroups_get "$locus") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 1041: local n=$(bridge_port_vlan_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. In bridge_mdb_max.sh line 1052: test_8021q_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1057: test_8021qvs_vlan_attributes() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1062: test_toggle_vlan_snooping() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1072: ${CFG}_entries_add "$locus" $mode 5 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: "${CFG}"_entries_add "$locus" "$mode" 5 In bridge_mdb_max.sh line 1075: bridge_${context}_maxgroups_set "$locus" 100 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 100 In bridge_mdb_max.sh line 1082: local n=$(bridge_${context}_ngroups_get "$locus") ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local n=$(bridge_"${context}"_ngroups_get "$locus") In bridge_mdb_max.sh line 1083: local nn=$(bridge mdb show dev br0 | grep $swp1 | wc -l) ^-- SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2126 (style): Consider using 'grep -c' instead of 'grep|wc -l'. ^---^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local nn=$(bridge mdb show dev br0 | grep "$swp1" | wc -l) In bridge_mdb_max.sh line 1087: local max=$(bridge_${context}_maxgroups_get "$locus") ^-^ SC2155 (warning): Declare and assign separately to avoid masking return values. ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: local max=$(bridge_"${context}"_maxgroups_get "$locus") In bridge_mdb_max.sh line 1091: bridge_${context}_maxgroups_set "$locus" 0 ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: bridge_"${context}"_maxgroups_set "$locus" 0 In bridge_mdb_max.sh line 1097: test_toggle_vlan_snooping_temp() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1102: test_toggle_vlan_snooping_permanent() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1109: test_8021d_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1114: test_8021d_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1119: test_8021d_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1124: test_8021d_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1129: test_8021q_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1134: test_8021q_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1139: test_8021q_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1144: test_8021q_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1149: test_8021qvs_ngroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1155: test_8021qvs_ngroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1161: test_8021qvs_ngroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1167: test_8021qvs_ngroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1175: test_8021d_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1182: test_8021d_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1189: test_8021d_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1196: test_8021d_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1203: test_8021q_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1210: test_8021q_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1217: test_8021q_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1224: test_8021q_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1231: test_8021qvs_maxgroups_cfg4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1240: test_8021qvs_maxgroups_ctl4() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1249: test_8021qvs_maxgroups_cfg6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1258: test_8021qvs_maxgroups_ctl6() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1269: test_8021qvs_toggle_vlan_snooping() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1275: mdb_count_check_warn() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1283: test_mdb_count_mcast_vlan_snooping_flush() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1303: test_mdb_count_mcast_snooping_flush() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1323: test_mdb_count_vlan_state_flush() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1347: test_8021d() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1366: test_8021q() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1387: test_8021qvs() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1408: test_mdb_count_warning() ^-- SC2329 (info): This function is never invoked. Check usage (or ignored if invoked indirectly). In bridge_mdb_max.sh line 1433: exit $EXIT_STATUS ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting. Did you mean: exit "$EXIT_STATUS" For more information: https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ... https://www.shellcheck.net/wiki/SC2034 -- dev_kw appears unused. Verify use... https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...