2 # SPDX-License-Identifier: GPL-2.0
4 # Check FDB default-remote handling across "ip link set".
9 local N=$(bridge fdb sh dev vx | grep 00:00:00:00:00:00 | wc -l)
11 echo -ne "expected two remotes after $what\t"
12 if [[ $N != 2 ]]; then
20 ip link add name vx up type vxlan id 2000 dstport 4789
21 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.20 self permanent
22 bridge fdb ap dev vx 00:00:00:00:00:00 dst 192.0.2.30 self permanent
23 check_remotes "fdb append"
25 ip link set dev vx type vxlan remote 192.0.2.30
26 check_remotes "link set"