Lines Matching full:vlan
17 ip link add l $h1 $h1.10 up type vlan id 10
29 ip link add l $h2 $h2.10 up type vlan id 10
52 bridge vlan add vid 10-11 dev $swp1 master
53 bridge vlan add vid 10-11 dev $swp2 master
56 check_err $? "Could not enable global vlan multicast snooping"
57 log_test "Vlan multicast snooping enable"
130 local goutput=`bridge -j vlan global show`
132 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
133 check_err $? "Could not find vlan 10's global options"
134 log_test "Vlan global options existence"
138 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_snooping == 1) " &>/dev/null
140 log_test "Vlan mcast_snooping global option default value"
144 bridge vlan global set vid 10 dev br0 mcast_snooping 0
145 check_err $? "Could not disable multicast snooping in vlan 10"
147 log_test "Vlan 10 multicast snooping control"
199 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1
214 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0
223 local goutput=`bridge -j vlan global show`
225 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
226 check_err $? "Could not find vlan 10's global options"
229 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_querier == 0) " &>/dev/null
230 check_err $? "Wrong default mcast_querier global vlan option value"
231 log_test "Vlan mcast_querier global option default value"
234 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1
235 check_err $? "Could not enable querier in vlan 10"
236 log_test "Vlan 10 multicast querier enable"
237 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0
241 check_err $? "No vlan tagged IGMPv2 general query packets sent"
242 log_test "Vlan 10 tagged IGMPv2 general query sent"
246 check_err $? "No vlan tagged MLD general query packets sent"
247 log_test "Vlan 10 tagged MLD general query sent"
253 local goutput=`bridge -j vlan global show`
255 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
256 check_err $? "Could not find vlan 10's global options"
259 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_igmp_version == 2) " &>/dev/null
260 check_err $? "Wrong default mcast_igmp_version global vlan option value"
261 log_test "Vlan mcast_igmp_version global option default value"
265 jq -e ".[].vlans[] | select(.vlan == 10 and .mcast_mld_version == 1) " &>/dev/null
266 check_err $? "Wrong default mcast_mld_version global vlan option value"
267 log_test "Vlan mcast_mld_version global option default value"
270 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_igmp_version 3
271 check_err $? "Could not set mcast_igmp_version in vlan 10"
272 log_test "Vlan 10 mcast_igmp_version option changed to 3"
276 check_err $? "No vlan tagged IGMPv3 general query packets sent"
277 log_test "Vlan 10 tagged IGMPv3 general query sent"
280 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_mld_version 2
281 check_err $? "Could not set mcast_mld_version in vlan 10"
282 log_test "Vlan 10 mcast_mld_version option changed to 2"
286 check_err $? "No vlan tagged MLDv2 general query packets sent"
287 log_test "Vlan 10 tagged MLDv2 general query sent"
289 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_igmp_version 2
290 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_mld_version 1
296 local goutput=`bridge -j vlan global show`
298 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
299 check_err $? "Could not find vlan 10's global options"
302 jq -e ".[].vlans[] | select(.vlan == 10 and \
304 check_err $? "Wrong default mcast_last_member_count global vlan option value"
305 log_test "Vlan mcast_last_member_count global option default value"
309 jq -e ".[].vlans[] | select(.vlan == 10 and \
311 check_err $? "Wrong default mcast_last_member_interval global vlan option value"
312 log_test "Vlan mcast_last_member_interval global option default value"
315 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_last_member_count 3
316 check_err $? "Could not set mcast_last_member_count in vlan 10"
317 log_test "Vlan 10 mcast_last_member_count option changed to 3"
318 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_last_member_count 2
321 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_last_member_interval 200
322 check_err $? "Could not set mcast_last_member_interval in vlan 10"
323 log_test "Vlan 10 mcast_last_member_interval option changed to 200"
324 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_last_member_interval 100
330 local goutput=`bridge -j vlan global show`
332 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
333 check_err $? "Could not find vlan 10's global options"
336 jq -e ".[].vlans[] | select(.vlan == 10 and \
338 check_err $? "Wrong default mcast_startup_query_interval global vlan option value"
339 log_test "Vlan mcast_startup_query_interval global option default value"
343 jq -e ".[].vlans[] | select(.vlan == 10 and \
345 check_err $? "Wrong default mcast_startup_query_count global vlan option value"
346 log_test "Vlan mcast_startup_query_count global option default value"
349 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_interval 100
350 check_err $? "Could not set mcast_startup_query_interval in vlan 10"
353 log_test "Vlan 10 mcast_startup_query_interval option changed to 100"
356 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_count 3
357 check_err $? "Could not set mcast_startup_query_count in vlan 10"
360 log_test "Vlan 10 mcast_startup_query_count option changed to 3"
362 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_interval 3125
363 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_count 2
369 local goutput=`bridge -j vlan global show`
371 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
372 check_err $? "Could not find vlan 10's global options"
375 jq -e ".[].vlans[] | select(.vlan == 10 and \
377 check_err $? "Wrong default mcast_membership_interval global vlan option value"
378 log_test "Vlan mcast_membership_interval global option default value"
381 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_membership_interval 200
382 check_err $? "Could not set mcast_membership_interval in vlan 10"
383 log_test "Vlan 10 mcast_membership_interval option changed to 200"
387 log_test "Vlan 10 mcast_membership_interval mdb entry expire"
389 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_membership_interval 26000
395 local goutput=`bridge -j vlan global show`
397 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
398 check_err $? "Could not find vlan 10's global options"
401 jq -e ".[].vlans[] | select(.vlan == 10 and \
403 check_err $? "Wrong default mcast_querier_interval global vlan option value"
404 log_test "Vlan mcast_querier_interval global option default value"
407 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier_interval 100
408 check_err $? "Could not set mcast_querier_interval in vlan 10"
409 log_test "Vlan 10 mcast_querier_interval option changed to 100"
414 bridge vlan add vid 10 dev br1 self pvid untagged
417 bridge vlan add vid 10 dev $h1 master
418 bridge vlan global set vid 10 dev br1 mcast_snooping 1 mcast_querier 1
424 log_test "Vlan 10 mcast_querier_interval expire after outside query"
426 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier_interval 25500
432 local goutput=`bridge -j vlan global show`
434 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
435 check_err $? "Could not find vlan 10's global options"
438 jq -e ".[].vlans[] | select(.vlan == 10 and \
440 check_err $? "Wrong default mcast_query_interval global vlan option value"
441 log_test "Vlan mcast_query_interval global option default value"
444 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_count 0
445 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_query_interval 200
446 check_err $? "Could not set mcast_query_interval in vlan 10"
450 log_test "Vlan 10 mcast_query_interval option changed to 200"
452 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_startup_query_count 2
453 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_query_interval 12500
459 local goutput=`bridge -j vlan global show`
461 jq -e ".[].vlans[] | select(.vlan == 10)" &>/dev/null
462 check_err $? "Could not find vlan 10's global options"
465 jq -e ".[].vlans[] | select(.vlan == 10 and \
467 check_err $? "Wrong default mcast_query_response_interval global vlan option value"
468 log_test "Vlan mcast_query_response_interval global option default value"
471 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_query_response_interval 200
472 check_err $? "Could not set mcast_query_response_interval in vlan 10"
473 log_test "Vlan 10 mcast_query_response_interval option changed to 200"
475 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_query_response_interval 1000
481 local goutput=`bridge -j -d vlan show`
484 .vlans[].vlan == 10)" &>/dev/null
485 check_err $? "Could not find port vlan 10's options"
489 .vlans[].vlan == 10 and \
492 log_test "Port vlan 10 option mcast_router default value"
495 bridge vlan set vid 10 dev $swp1 mcast_router 2
496 check_err $? "Could not set port vlan 10's mcast_router option"
497 log_test "Port vlan 10 mcast_router option changed to 2"
504 bridge vlan set vid 10 dev $swp2 mcast_router 0
507 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1 \
509 bridge vlan add vid 10 dev br0 self
515 check_err 1 "Wrong number of vlan 10 multicast packets flooded"
518 check_err $swp2_tcstats "Vlan 10 multicast packets flooded to non-router port"
519 log_test "Flood unknown vlan multicast packets to router port only"
523 bridge vlan del vid 10 dev br0 self
524 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_query_response_interval 1000
525 bridge vlan set vid 10 dev $swp2 mcast_router 1
526 bridge vlan set vid 10 dev $swp1 mcast_router 1
535 check_fail $? "Vlan filtering is disabled but multicast vlan snooping is still enabled"
536 log_test "Disable multicast vlan snooping when vlan filtering is disabled"