Lines Matching full:flush
5 # Check that flush works as expected with all the supported arguments and verify
172 run_cmd "$BRIDGE fdb flush dev vx10"
173 log_test $? 0 "Flush FDB by dev vx10"
176 log_test $? 0 "Flush FDB by dev vx10 - test vx10 entries"
179 log_test $? 0 "Flush FDB by dev vx10 - test vx20 entries"
194 run_cmd "$BRIDGE fdb flush dev vx10 vni $vni_2"
195 log_test $? 0 "Flush FDB by dev vx10 and vni $vni_2"
207 # {vni=y,src_vni=x}, to verify that when we flush by src_vni=x, entries
228 run_cmd "$BRIDGE fdb flush dev vx10 src_vni $src_vni_2"
229 log_test $? 0 "Flush FDB by dev vx10 and src_vni $src_vni_2"
251 run_cmd "$BRIDGE fdb flush dev vx10 port $port_2"
252 log_test $? 0 "Flush FDB by dev vx10 and port $port_2"
272 run_cmd "$BRIDGE fdb flush dev vx10 dst $dst_ip_2"
273 log_test $? 0 "Flush FDB by dev vx10 and dst $dst_ip_2"
307 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_2"
308 log_test $? 0 "Flush FDB by dev vx10 and nhid $nhid_2"
316 # Flush also entries with $nhid_1, and then verify that flushing by
319 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_1"
320 log_test $? 0 "Flush FDB by dev vx10 and nhid $nhid_1"
325 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid_1"
326 log_test $? 0 "Flush FDB by nhid when there are no entries with nexthop"
348 run_cmd "$BRIDGE fdb flush dev vx10 $flush_by_state"
349 log_test $? 0 "Flush FDB by dev vx10 and state $flush_by_state"
450 run_cmd "$BRIDGE fdb flush dev vx10 $flush_by_flag"
451 log_test $? 0 "Flush FDB by dev vx10 and flag $flush_by_flag"
521 ################### Flush by 2 args - nhid and flag ####################
531 run_cmd "$BRIDGE fdb flush dev vx10 nhid $nhid $flag"
532 log_test $? 0 "Flush FDB by dev vx10 nhid $nhid $flag"
534 # All entries should be flushed as 'state' is not an argument for flush
542 ################ Flush by 3 args - VNI, port and dst_ip ################
550 run_cmd "$BRIDGE fdb flush dev vx10 $flush_args"
551 log_test $? 0 "Flush FDB by dev vx10 $flush_args"
554 # match the filter, the flush should be AND of all the arguments.
591 ## Flush by 3 remote's attributes - destination IP, port and VNI ##
596 run_cmd "$BRIDGE fdb flush dev vx10 $flush_args"
597 log_test $? 0 "Flush FDB by dev vx10 $flush_args"
606 ## Flush by 2 remote's attributes - destination IP and port ##
612 run_cmd "$BRIDGE fdb flush dev vx10 $flush_args"
613 log_test $? 0 "Flush FDB by dev vx10 $flush_args"
622 ## Flush by source VNI, which is not remote's attribute and VNI ##
628 run_cmd "$BRIDGE fdb flush dev vx10 $flush_args"
629 log_test $? 0 "Flush FDB by dev vx10 $flush_args"
638 # Flush by 1 remote's attribute - destination IP ##
644 run_cmd "$BRIDGE fdb flush dev vx10 $flush_args"
645 log_test $? 0 "Flush FDB by dev vx10 $flush_args"
672 run_cmd "$BRIDGE fdb flush dev br0"
673 log_test $? 0 "Flush FDB by dev br0"
677 log_test $? 0 "Flush FDB by dev br0 - test br0 entries"
680 log_test $? 0 "Flush FDB by dev br0 - test br1 entries"
705 run_cmd "$BRIDGE fdb flush dev br0 vlan $vlan_1"
706 log_test $? 0 "Flush FDB by dev br0 and vlan $vlan_1"
730 # but the command should flush the entries in the bridge
731 run_cmd "$BRIDGE fdb flush dev vx10 vlan $vlan_1 master self"
733 "Flush FDB by dev vx10, vlan $vlan_1, master and self"
795 # Check a flag that is added to flush command as part of VXLAN flush support
798 echo "SKIP: iproute2 too old, missing flush command for VXLAN"
803 out=$(bridge fdb flush dev vx10 2>&1 | grep -q "Operation not supported")
805 echo "SKIP: kernel lacks vxlan flush support"