Lines Matching refs:grp
139 local grp=$1; shift
147 bridge mdb add dev br0 port br0 grp $grp $state vid 10
148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null
151 bridge mdb replace dev br0 port br0 grp $grp $state vid 10 &> /dev/null
154 bridge mdb del dev br0 port br0 grp $grp $state vid 10
155 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null
159 bridge mdb add dev br0 port br0 grp $grp $invalid_state vid 10 \
163 bridge mdb add dev br0 port br0 grp $grp src $src $state vid 10 \
167 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
171 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
175 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
289 local grp=$1; shift
300 bridge mdb add dev br0 port $swp1 grp $grp vid 10
301 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
303 bridge mdb del dev br0 port $swp1 grp $grp vid 10
306 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
308 bridge -d mdb get dev br0 grp $grp vid 10 &> /dev/null
310 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
312 bridge mdb del dev br0 port $swp1 grp $grp vid 10
313 bridge -d mdb get dev br0 grp $grp vid 10 &> /dev/null
315 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
321 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
324 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "permanent"
326 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | \
330 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
332 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
335 bridge mdb del dev br0 port $swp1 grp $grp vid 10
339 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
342 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
344 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
347 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
349 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
352 bridge mdb del dev br0 port $swp1 grp $grp vid 10
356 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
359 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
361 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
364 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
366 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
369 bridge mdb del dev br0 port $swp1 grp $grp vid 10
372 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
375 bridge -d -s mdb get dev br0 grp $grp src $src1 vid 10 | grep -q " 0.00"
378 bridge mdb del dev br0 port $swp1 grp $grp vid 10
384 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
387 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "include"
389 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
392 bridge mdb del dev br0 port $swp1 grp $grp vid 10
396 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
399 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
401 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
404 bridge mdb del dev br0 port $swp1 grp $grp vid 10
410 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
413 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "zebra"
415 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "zebra"
418 bridge mdb del dev br0 port $swp1 grp $grp vid 10
423 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
426 bridge mdb replace dev br0 port $swp1 grp $grp permanent vid 10 \
428 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "permanent"
430 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "permanent"
433 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
435 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
437 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
440 bridge mdb del dev br0 port $swp1 grp $grp vid 10
443 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
446 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
448 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "include"
450 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
453 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
455 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
457 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
460 bridge mdb del dev br0 port $swp1 grp $grp vid 10
463 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
466 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
468 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
470 bridge -d mdb get dev br0 grp $grp src $src2 vid 10 &> /dev/null
472 bridge -d mdb get dev br0 grp $grp src $src3 vid 10 &> /dev/null
475 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
477 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
479 bridge -d mdb get dev br0 grp $grp src $src2 vid 10 &> /dev/null
481 bridge -d mdb get dev br0 grp $grp src $src3 vid 10 &> /dev/null
484 bridge mdb del dev br0 port $swp1 grp $grp vid 10
487 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
490 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
492 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "bgp"
494 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "bgp"
497 bridge mdb del dev br0 port $swp1 grp $grp vid 10
504 bridge mdb add dev br0 port $swp2 grp $grp vid 10 \
506 bridge mdb add dev br0 port $swp1 grp $grp vid 10
507 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep "$swp1" | \
510 bridge mdb del dev br0 port $swp1 grp $grp vid 10
511 bridge mdb del dev br0 port $swp2 grp $grp src $src1 vid 10
515 bridge mdb add dev br0 port $swp1 grp $invalid_grp vid 10 &> /dev/null
518 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
522 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
523 source_list $grp &> /dev/null
526 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
530 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
532 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
535 bridge mdb del dev br0 port $swp1 grp $grp vid 10
537 bridge mdb add dev br0 port $swp1 grp $grp src $src2 vid 10
538 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
541 bridge mdb del dev br0 port $swp1 grp $grp src $src2 vid 10
544 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
546 num_srcs=$(bridge -d mdb show dev br0 vid 10 | grep "$grp" | \
550 bridge mdb del dev br0 port $swp1 grp $grp vid 10
552 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
565 cfg_test_port_common "IPv4 (*, G)" "grp 239.1.1.1"
566 cfg_test_port_common "IPv6 (*, G)" "grp ff0e::1"
574 local grp=$1; shift
576 local grp_key="grp $grp src $src"
610 bridge mdb add dev br0 port $swp1 grp $grp src $grp vid 10 &> /dev/null
639 bridge mdb add dev br0 port $swp2 grp $grp vid 10
645 bridge mdb del dev br0 port $swp2 grp $grp vid 10
655 cfg_test_port_common "IPv4 (S, G)" "grp 239.1.1.1 src 192.0.2.1"
656 cfg_test_port_common "IPv6 (S, G)" "grp ff0e::1 src 2001:db8:1::1"
669 local grp="01:02:03:04:05:06"
673 bridge meb add dev br0 port $swp grp 00:01:02:03:04:05 \
677 bridge mdb add dev br0 port $swp grp $grp src 00:01:02:03:04:05 \
681 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
685 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
697 cfg_test_port_common "L2 (*, G)" "grp 01:02:03:04:05:06"
747 local grp
766 for grp in $($fn $max_grps); do
768 port br-test${i}-du${j} grp $grp \
815 local grp=$1; shift
833 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp src_ip $src \
839 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
845 bridge mdb add dev br0 port $swp2 grp $grp temp vid 10
846 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
851 bridge mdb add dev br0 port br0 grp $grp temp vid 10
852 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
858 bridge mdb del dev br0 port br0 grp $grp vid 10
859 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
863 bridge mdb del dev br0 port $swp2 grp $grp vid 10
893 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
899 bridge mdb add dev br0 port br0 grp $dmac permanent vid 10
906 bridge mdb del dev br0 port br0 grp $dmac permanent vid 10
911 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
932 local grp=$1; shift
961 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
964 vlan_ethtype $eth_type vlan_id 10 dst_ip $grp \
967 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
971 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
975 bridge mdb add dev br0 port $swp2 grp $grp vid 10 \
978 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
982 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
986 bridge mdb replace dev br0 port $swp2 grp $grp vid 10 \
989 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
993 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
997 bridge mdb del dev br0 port $swp2 grp $grp vid 10
999 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
1003 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
1036 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
1041 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
1095 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 permanent vid 10 \
1102 bridge mdb get dev br0 grp 239.1.1.1 src 192.0.2.2 vid 10 &> /dev/null
1108 bridge mdb replace dev br0 port $swp1 grp 239.1.1.1 temp vid 10 \
1115 bridge -d mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q 192.0.2.2
1118 bridge mdb get dev br0 grp 239.1.1.1 src 192.0.2.2 vid 10 &> /dev/null
1121 bridge mdb del dev br0 port $swp1 grp 239.1.1.1 vid 10
1132 bridge mdb add dev br0 port $swp1 grp ff0e::1 permanent vid 10 \
1140 bridge mdb get dev br0 grp ff0e::1 src 2001:db8:1::2 vid 10 &> /dev/null
1146 bridge mdb replace dev br0 port $swp1 grp ff0e::1 temp vid 10 \
1153 bridge -d mdb get dev br0 grp ff0e::1 vid 10 | grep -q 2001:db8:1::2
1156 bridge mdb get dev br0 grp ff0e::1 src 2001:db8:1::2 vid 10 &> /dev/null
1159 bridge mdb del dev br0 port $swp1 grp ff0e::1 vid 10