==== carp_1 ==== doas -n ksh /home/src/regress/sys/netinet/carp/carp_1.sh -R "33 34" -I "11 12" -v + ifconfig pair11 rdomain 33 192.168.0.2/24 + ifconfig pair12 rdomain 34 192.168.0.3/24 patch pair11 + ifconfig carp11 rdomain 33 192.168.0.1/24 vhid 251 carpdev pair11 -group carp group regressf810a + ifconfig carp12 rdomain 34 192.168.0.1/24 vhid 251 carpdev pair12 -group carp group regressf810b advskew 100 + wait_until ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp12 | grep -q 'status: backup' + ifconfig -g regressf810a carpdemote + wait_until ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp12 | grep -q 'status: master' + cleanup + exit 0 ==== carp_2 ==== doas -n ksh /home/src/regress/sys/netinet/carp/carp_2.sh -R "33 34" -I "11 12" -v + ifconfig pair11 rdomain 33 192.168.0.2/24 + ifconfig pair12 rdomain 34 192.168.0.3/24 patch pair11 + ifconfig pair11 + sed -n /^.*lladdr \(.*\)/s//\1/p + lladdr1=fe:e1:ba:d4:e2:6b + ifconfig pair12 + sed -n /^.*lladdr \(.*\)/s//\1/p + lladdr2=fe:e1:ba:d5:29:58 + ifconfig carp11 rdomain 33 lladdr fe:e1:ba:d4:e2:6b 192.168.0.1/24 vhid 251 carpdev pair11 -group carp group regressf2cda + ifconfig carp12 rdomain 34 lladdr fe:e1:ba:d5:29:58 192.168.0.1/24 vhid 251 carpdev pair12 -group carp group regressf2cdb advskew 100 + wait_until ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp12 | grep -q 'status: backup' + ifconfig -g regressf2cda carpdemote + wait_until ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp12 | grep -q 'status: master' + cleanup + exit 0 ==== carp_3 ==== doas -n ksh /home/src/regress/sys/netinet/carp/carp_3.sh -R "33 34" -I "11 12" -v + ifconfig pair11 rdomain 33 192.168.0.2/24 + ifconfig pair12 rdomain 34 192.168.0.3/24 patch pair11 + ifconfig carp11 rdomain 33 192.168.0.1/24 vhid 251 carpdev pair11 -group carp group regressa2b9a carppeer 192.168.0.3 + ifconfig carp12 rdomain 34 192.168.0.1/24 vhid 251 carpdev pair12 -group carp group regressa2b9b advskew 100 carppeer 192.168.0.2 + wait_until ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp12 | grep -q 'status: backup' + ifconfig -g regressa2b9a carpdemote + wait_until ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp12 | grep -q 'status: master' + cleanup + exit 0 ==== carp_4 ==== doas -n ksh /home/src/regress/sys/netinet/carp/carp_4.sh -R "33 34" -I "11 12" -v + ifconfig pair11 rdomain 33 192.168.0.2/24 + ifconfig pair12 rdomain 34 192.168.0.3/24 patch pair11 + ifconfig pair11 + sed -n /^.*lladdr \(.*\)/s//\1/p + lladdr1=fe:e1:ba:d8:79:4c + ifconfig pair12 + sed -n /^.*lladdr \(.*\)/s//\1/p + lladdr2=fe:e1:ba:d9:a2:22 + ifconfig carp11 rdomain 33 lladdr fe:e1:ba:d8:79:4c 192.168.0.1/24 vhid 251 carpdev pair11 -group carp group regress14f39a carppeer 192.168.0.3 + ifconfig carp12 rdomain 34 lladdr fe:e1:ba:d9:a2:22 192.168.0.1/24 vhid 251 carpdev pair12 -group carp group regress14f39b advskew 100 carppeer 192.168.0.2 + wait_until ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp11 | grep -q 'status: master' + test sh -c ifconfig carp12 | grep -q 'status: backup' + ifconfig -g regress14f39a carpdemote + wait_until ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp11 | grep -q 'status: backup' + test sh -c ifconfig carp12 | grep -q 'status: master' + cleanup + exit 0