START usr.sbin/bgpd/integrationtests 2024-11-17T05:58:00Z ==== network_statement ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/network_statement.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo add routes add routes + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.network_statement.rdomain1.conf + route -T 12 add 10.12.58.0/24 10.12.57.1 add net 10.12.58.0/24: gateway 10.12.57.1 + ifconfig pair12 alias 10.12.59.1/24 + route -T 12 add -label PAIR2RTABLE 10.12.60.0/24 10.12.57.1 add net 10.12.60.0/24: gateway 10.12.57.1 + route -T 12 add -priority 55 10.12.61.0/24 10.12.57.1 add net 10.12.61.0/24: gateway 10.12.57.1 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.network_statement.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + wait_until route -T 11 exec bgpctl sh rib 10.12.58.0/24 | grep -q 10.12.58.0/24 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep -q 10.12.58.0/24 + echo test 1 test 1 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep 10.12.58.0/24 *> N-? 10.12.58.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.59.0/24 + grep 10.12.59.0/24 *> N-? 10.12.59.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.60.0/24 + grep 10.12.60.0/24 *> N-? 10.12.60.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.61.0/24 + grep 10.12.61.0/24 *> N-? 10.12.61.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.62.0/24 + grep 10.12.62.0/24 *> N-? 10.12.62.0/24 10.12.57.2 100 0 4200000002 i + echo delete routes delete routes + route -T 12 delete 10.12.58.0/24 10.12.57.1 delete net 10.12.58.0/24: gateway 10.12.57.1 + ifconfig pair12 -alias 10.12.59.1 + route -T 12 delete -label PAIR2RTABLE 10.12.60.0/24 10.12.57.1 delete net 10.12.60.0/24: gateway 10.12.57.1 + route -T 12 delete -priority 55 10.12.61.0/24 10.12.57.1 delete net 10.12.61.0/24: gateway 10.12.57.1 + wait_until route -T 11 exec bgpctl sh rib 10.12.58.0/24 | ! grep -q 10.12.58.0/24 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep -q 10.12.58.0/24 + echo test 2 test 2 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep 10.12.58.0/24 + route -T 11 exec bgpctl sh rib 10.12.59.0/24 + grep 10.12.59.0/24 + route -T 11 exec bgpctl sh rib 10.12.60.0/24 + grep 10.12.60.0/24 + route -T 11 exec bgpctl sh rib 10.12.61.0/24 + grep 10.12.61.0/24 + echo add routes add routes + route -T 12 add 10.12.58.0/24 10.12.57.1 add net 10.12.58.0/24: gateway 10.12.57.1 + ifconfig pair12 alias 10.12.59.1/24 + route -T 12 add -label PAIR2RTABLE 10.12.60.0/24 10.12.57.1 add net 10.12.60.0/24: gateway 10.12.57.1 + route -T 12 add -priority 55 10.12.61.0/24 10.12.57.1 add net 10.12.61.0/24: gateway 10.12.57.1 + wait_until route -T 11 exec bgpctl sh rib 10.12.58.0/24 | grep -q 10.12.58.0/24 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep -q 10.12.58.0/24 + echo test 3 test 3 + route -T 11 exec bgpctl sh rib 10.12.58.0/24 + grep 10.12.58.0/24 *> N-? 10.12.58.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.59.0/24 + grep 10.12.59.0/24 *> N-? 10.12.59.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.60.0/24 + grep 10.12.60.0/24 *> N-? 10.12.60.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib 10.12.61.0/24 + grep 10.12.61.0/24 *> N-? 10.12.61.0/24 10.12.57.2 100 0 4200000002 i + exit 0 + error_notify 0 cleanup SUCCESS ==== md5 ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/md5.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.md5.rdomain1.conf + sleep 1 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.md5.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test1 test1 + route -T 11 exec bgpctl sh sum + awk { if ($1 ~ /^RDOMAIN2/) { f=1; print $7; if ($7 == "0") { print "ok"; exit 0; } else { print "no session"; exit 1; } }} END { if (f != 1) { print "bad bgpctl output"; exit 2; }} 0 ok + echo test2 test2 + route -T 12 exec bgpctl sh sum + awk { if ($1 ~ /^RDOMAIN1/) { f=1; print $7; if ($7 == "0") { print "ok"; exit 0; } else { print "no session"; exit 1; } }} END { if (f != 1) { print "bad bgpctl output"; exit 2; }} 0 ok + echo resetting sessions resetting sessions + route -T 11 exec bgpctl neigh RDOMAIN2 clear request processed + sleep 10 + echo test3 test3 + route -T 11 exec bgpctl sh sum + awk { if ($1 ~ /^RDOMAIN2/) { f=1; print $7; if ($7 == "0") { print "ok"; exit 0; } else { print "no session"; exit 1; } }} END { if (f != 1) { print "bad bgpctl output"; exit 2; }} 0 ok + echo test4 test4 + route -T 12 exec bgpctl sh sum + awk { if ($1 ~ /^RDOMAIN1/) { f=1; print $7; if ($7 == "0") { print "ok"; exit 0; } else { print "no session"; exit 1; } }} END { if (f != 1) { print "bad bgpctl output"; exit 2; }} 0 ok + exit 0 + error_notify 0 cleanup SUCCESS ==== ovs ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/ovs.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo add routes add routes + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ovs.rdomain1.conf + route -T 12 add 10.12.58.0/24 10.12.57.1 add net 10.12.58.0/24: gateway 10.12.57.1 + ifconfig pair12 alias 10.12.59.1/24 + route -T 12 add -label PAIR2RTABLE 10.12.60.0/24 10.12.57.1 add net 10.12.60.0/24: gateway 10.12.57.1 + route -T 12 add -priority 55 10.12.61.0/24 10.12.57.1 add net 10.12.61.0/24: gateway 10.12.57.1 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ovs.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test 1 test 1 + route -T 11 exec bgpctl sh rib ovs valid + grep 10.12.62.0/24 *> V-? 10.12.62.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib ovs invalid + grep 10.12.63.0/24 *> !-? 10.12.63.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib ovs not-found + grep 10.12.64.0/24 *> N-? 10.12.64.0/24 10.12.57.2 100 0 4200000002 i + echo reload config reload config + route -T 11 exec bgpctl reload reload request sent. request processed + sleep 2 + echo test 2 test 2 + route -T 11 exec bgpctl sh rib ovs valid + grep 10.12.62.0/24 *> V-? 10.12.62.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib ovs invalid + grep 10.12.63.0/24 *> !-? 10.12.63.0/24 10.12.57.2 100 0 4200000002 i + route -T 11 exec bgpctl sh rib ovs not-found + grep 10.12.64.0/24 *> N-? 10.12.64.0/24 10.12.57.2 100 0 4200000002 i + exit 0 + error_notify 0 cleanup SUCCESS ==== capa ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/capa.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.254/24 up + ifconfig pair12 rdomain 12 10.12.57.1/24 up + ifconfig pair12 alias 10.12.57.2/32 up + ifconfig pair12 alias 10.12.57.3/32 up + ifconfig pair12 alias 10.12.57.4/32 up + ifconfig pair12 alias 10.12.57.5/32 up + ifconfig pair12 alias 10.12.57.6/32 up + ifconfig pair12 alias 10.12.57.7/32 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo test1: no capability test1: no capability + test_bgpd Last error sent: error in OPEN message, unsupported capability no + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.master.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DCAPA=as-4byte no -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DCAPA=enhanced refresh no -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DCAPA=refresh no -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DCAPA=restart no -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DCAPA=inet none -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=6 -DCAPA=add-path send no -DSOCK="/var/run/bgpd.sock.c6" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=7 -DCAPA=add-path recv no -DSOCK="/var/run/bgpd.sock.c7" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER2 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER3 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER4 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER5 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER6 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + route -T 11 exec bgpctl show nei PEER7 + grep Last error sent: error in OPEN message, unsupported capability Last error sent: error in OPEN message, unsupported capability + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test2: ok capability test2: ok capability + test_bgpd BGP state = Established, up yes + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.master.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DCAPA=as-4byte yes -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DCAPA=enhanced refresh yes -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DCAPA=refresh yes -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DCAPA=restart yes -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DCAPA=inet vpn -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=6 -DCAPA=add-path send best max 3 -DSOCK="/var/run/bgpd.sock.c6" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=7 -DCAPA=add-path recv yes -DSOCK="/var/run/bgpd.sock.c7" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER2 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER3 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER4 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER5 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER6 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER7 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test3: enforce capability test3: enforce capability + test_bgpd BGP state = Established, up enforce + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.master.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DCAPA=as-4byte enforce -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DCAPA=enhanced refresh enforce -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DCAPA=refresh enforce -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DCAPA=restart enforce -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DCAPA=inet vpn enforce -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=6 -DCAPA=add-path send best max 3 enforce -DSOCK="/var/run/bgpd.sock.c6" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + route -T 12 exec /usr/sbin/bgpd -DNUM=7 -DCAPA=add-path recv enforce -DSOCK="/var/run/bgpd.sock.c7" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.capa.client.conf + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER2 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER3 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER4 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER5 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER6 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER7 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + error_notify 0 cleanup SUCCESS ==== policy ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/policy.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.254/24 up + ifconfig pair12 rdomain 12 10.12.57.1/24 up + ifconfig pair12 alias 10.12.57.2/32 up + ifconfig pair12 alias 10.12.57.3/32 up + ifconfig pair12 alias 10.12.57.4/32 up + ifconfig pair12 alias 10.12.57.5/32 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo test1: no policy test1: no policy + test_bgpd Last error sent: error in OPEN message, role mismatch none none none none none + e=Last error sent: error in OPEN message, role mismatch + shift + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.master.conf + i=1 + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DPOLICY=none -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=2 + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DPOLICY=none -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=3 + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DPOLICY=none -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=4 + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DPOLICY=none -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=5 + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DPOLICY=none -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=6 + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER2 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER3 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER4 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER5 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test2: wrong policy test2: wrong policy + test_bgpd Last error sent: error in OPEN message, role mismatch rs provider customer rs rs-client + e=Last error sent: error in OPEN message, role mismatch + shift + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.master.conf + i=1 + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DPOLICY=rs -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=2 + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DPOLICY=provider -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=3 + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DPOLICY=customer -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=4 + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DPOLICY=rs -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=5 + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DPOLICY=rs-client -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=6 + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER2 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER3 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER4 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + route -T 11 exec bgpctl show nei PEER5 + grep Last error sent: error in OPEN message, role mismatch Last error sent: error in OPEN message, role mismatch + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test3: correct policy test3: correct policy + test_bgpd BGP state = Established, up peer rs-client rs customer provider + e=BGP state = Established, up + shift + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.master.conf + i=1 + route -T 12 exec /usr/sbin/bgpd -DNUM=1 -DPOLICY=peer -DSOCK="/var/run/bgpd.sock.c1" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=2 + route -T 12 exec /usr/sbin/bgpd -DNUM=2 -DPOLICY=rs-client -DSOCK="/var/run/bgpd.sock.c2" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=3 + route -T 12 exec /usr/sbin/bgpd -DNUM=3 -DPOLICY=rs -DSOCK="/var/run/bgpd.sock.c3" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=4 + route -T 12 exec /usr/sbin/bgpd -DNUM=4 -DPOLICY=customer -DSOCK="/var/run/bgpd.sock.c4" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=5 + route -T 12 exec /usr/sbin/bgpd -DNUM=5 -DPOLICY=provider -DSOCK="/var/run/bgpd.sock.c5" -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.op.client.conf + i=6 + sleep 1 + route -T 11 exec bgpctl nei group TEST up request processed + sleep 1 + route -T 11 exec bgpctl show nei PEER1 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER2 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER3 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER4 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + route -T 11 exec bgpctl show nei PEER5 + grep BGP state = Established, up BGP state = Established, up for 00:00:01 + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + error_notify 0 cleanup SUCCESS ==== pftable ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/pftable.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/29 up + ifconfig pair12 rdomain 12 10.12.57.2/29 up + ifconfig pair12 alias 10.12.57.3/32 + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + pfctl -q -t bgpd_integ_test -T add 1.1.1.1 + pfctl -q -t bgpd_integ_test -T del 1.1.1.1 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.pftable.rdomain1.conf + sleep 2 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.pftable.rdomain2_1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.pftable.rdomain2_2.conf + sleep 3 + echo Check default prefixes Check default prefixes + route -T 11 exec bgpctl show Neighbor AS MsgRcvd MsgSent OutQ Up/Down State/PrfRcvd RDOMAIN2_1 4200000002 4 3 0 00:00:00 3 RDOMAIN2_2 4200000003 4 3 0 00:00:00 3 + echo List pf table List pf table + pfctl -t bgpd_integ_test -T show 10.12.62.0/24 10.12.63.0/24 10.12.64.0/24 + pfctl -t bgpd_integ_test -T test 10.12.62.1 1/1 addresses match. + pfctl -t bgpd_integ_test -T test 10.12.63.1 1/1 addresses match. + pfctl -t bgpd_integ_test -T test 10.12.64.1 1/1 addresses match. + echo Add prefix Add prefix + route -T 12 exec bgpctl network add 10.12.69.0/24 request sent. + sleep 1 + pfctl -t bgpd_integ_test -T test 10.12.69.1 1/1 addresses match. + route -T 12 exec bgpctl -s /var/run/bgpd.sock.12_2 network add 10.12.69.0/24 request sent. + sleep 1 + pfctl -t bgpd_integ_test -T test 10.12.69.1 1/1 addresses match. + echo Remove prefix Remove prefix + route -T 12 exec bgpctl network del 10.12.69.0/24 request sent. + sleep 1 + pfctl -t bgpd_integ_test -T test 10.12.69.1 1/1 addresses match. + route -T 12 exec bgpctl -s /var/run/bgpd.sock.12_2 network del 10.12.69.0/24 request sent. + sleep 1 + pfctl -t bgpd_integ_test -T test 10.12.69.1 0/1 addresses match. + exit 0 + error_notify 0 cleanup SUCCESS ==== mrt ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/mrt.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 check if rdomains are busy + echo setup setup + ifconfig mpe11 rdomain 11 mplslabel 42 + ifconfig lo11 inet 127.0.0.1/8 + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.mrt.conf + sleep 2 + pkill -USR1 -T 11 -u 0 bgpd + sleep 2 + echo test table-v2 test table-v2 + bgpctl show mrt detail file mrt-table-v2.mrt + grep -v Last update: + tee mrt-table-v2.out BGP routing table entry for 192.0.2.0/24 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 1.2.3.4 (via 1.2.3.4) Neighbor 0.0.0.0 (42.0.0.1) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 198.51.100.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 203.0.113.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:1::/48 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 2001:db8:42::1 (via 2001:db8:42::1) Neighbor 0.0.0.0 (42.0.0.1) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:2::/48 Nexthop :: (via ::) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 2001:db8:3::/48 Nexthop :: (via ::) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external BGP routing table entry for rd 4200000001:1 192.0.2.0/24 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (42.0.0.1) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 198.51.100.0/24 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 rt 4200000001:42 Large Communities: 4200000001:2:42 4200000001:42:1 BGP routing table entry for rd 4200000001:1 203.0.113.0/24 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 2001:db8:1::/48 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor 0.0.0.0 (42.0.0.1) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 2001:db8:2::/48 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 rt 4200000001:42 Large Communities: 4200000001:2:42 4200000001:42:1 BGP routing table entry for rd 4200000001:1 2001:db8:3::/48 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor 0.0.0.0 (42.0.0.1) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/mrt-table-v2.ok mrt-table-v2.out + echo test table-mp test table-mp + bgpctl show mrt detail file mrt-table-mp.mrt + grep -v Last update: + tee mrt-table-mp.out BGP routing table entry for 192.0.2.0/24 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 1.2.3.4 (via 1.2.3.4) Neighbor 0.0.0.0 (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 198.51.100.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 203.0.113.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:1::/48 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 2001:db8:42::1 (via 2001:db8:42::1) Neighbor :: (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:2::/48 Nexthop :: (via ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 2001:db8:3::/48 Nexthop :: (via ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external BGP routing table entry for rd 4200000001:1 192.0.2.0/24 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 198.51.100.0/24 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 rt 4200000001:42 Large Communities: 4200000001:2:42 4200000001:42:1 BGP routing table entry for rd 4200000001:1 203.0.113.0/24 Nexthop rd 0:0 0.0.0.0 (via rd 0:0 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 2001:db8:1::/48 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor :: (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 BGP routing table entry for rd 4200000001:1 2001:db8:2::/48 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 rt 4200000001:42 Large Communities: 4200000001:2:42 4200000001:42:1 BGP routing table entry for rd 4200000001:1 2001:db8:3::/48 Nexthop rd 0:0 :: (via rd 0:0 ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Ext. Communities: rt 4200000001:42 + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/mrt-table-mp.ok mrt-table-mp.out + echo test table test table + bgpctl show mrt detail file mrt-table.mrt + grep -v Last update: + tee mrt-table.out BGP routing table entry for 192.0.2.0/24 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 1.2.3.4 (via 1.2.3.4) Neighbor 0.0.0.0 (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 198.51.100.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 203.0.113.0/24 Nexthop 0.0.0.0 (via 0.0.0.0) Neighbor 0.0.0.0 (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:1::/48 4200000001 4200000001 4200000001 4200000001 4200000001 Nexthop 2001:db8:42::1 (via 2001:db8:42::1) Neighbor :: (0.0.0.0) Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external BGP routing table entry for 2001:db8:2::/48 Nexthop :: (via ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external Communities: 42:1 GRACEFUL_SHUTDOWN Ext. Communities: ovs invalid rt 127.0.0.1:15 Large Communities: 4200000001:2:4200000001 4200000001:42:1 BGP routing table entry for 2001:db8:3::/48 Nexthop :: (via ::) Neighbor :: (0.0.0.0) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/mrt-table.ok mrt-table.out + exit 0 + error_notify 0 SUCCESS ==== maxprefix ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/maxprefix.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo test1: run bgpds test1: run bgpds + sed -e s/#MAX-PREFIX#/max-prefix 2/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefix.rdomain2.conf + > ./bgpd.maxprefix.rdomain2.conf + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefix.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f ./bgpd.maxprefix.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test1: add two networks test1: add two networks + route -T 11 exec bgpctl network add 10.12.58.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.59.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + awk /^ Prefixes/ { if ($2 == "2") { print "ok"; ok=1; exit 0; } } END { if (ok != 1) { print "bad bgpctl output"; exit 2; } } ok + echo test1: add another network test1: add another network + route -T 11 exec bgpctl network add 10.12.60.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + grep ^ Last error received: Cease, received max-prefix exceeded Last error received: Cease, received max-prefix exceeded + echo test1: cleanup test1: cleanup + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test2: run bgpds test2: run bgpds + sed -e s/#MAX-PREFIX#/max-prefix 10/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefix.rdomain2.conf + > ./bgpd.maxprefix.rdomain2.conf + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefix.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f ./bgpd.maxprefix.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test2: add three networks test2: add three networks + route -T 11 exec bgpctl network add 10.12.58.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.59.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.60.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + awk /^ Prefixes/ { if ($2 == "3") { print "ok"; ok=1; exit 0; } } END { if (ok != 1) { print "bad bgpctl output"; exit 2; } } ok + echo test2: reload config test2: reload config + sed -e s/#MAX-PREFIX#/max-prefix 2/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefix.rdomain2.conf + > ./bgpd.maxprefix.rdomain2.conf + route -T 12 exec bgpctl reload reload request sent. request processed + sleep 1 + route -T 11 exec bgpctl show nei + grep ^ Last error received: Cease, received max-prefix exceeded Last error received: Cease, received max-prefix exceeded + error_notify 0 cleanup SUCCESS ==== maxprefixout ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/maxprefixout.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo test1: run bgpds test1: run bgpds + sed -e s/#MAX-PREFIX#/max-prefix 2 out/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefixout.rdomain1.conf + > ./bgpd.maxprefixout.rdomain1.conf + route -T 11 exec /usr/sbin/bgpd -v -f ./bgpd.maxprefixout.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefixout.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test1: add two networks test1: add two networks + route -T 11 exec bgpctl network add 10.12.58.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.59.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + awk /^ Prefixes/ { if ($2 == "2") { print "ok"; ok=1; exit 0; } } END { if (ok != 1) { print "bad bgpctl output"; exit 2; } } ok + echo test1: add another network test1: add another network + route -T 11 exec bgpctl network add 10.12.60.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + grep ^ Last error sent: Cease, sent max-prefix exceeded Last error sent: Cease, sent max-prefix exceeded + echo test1: cleanup test1: cleanup + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + echo test2: run bgpds test2: run bgpds + sed -e s/#MAX-PREFIX#/max-prefix 20 out/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefixout.rdomain1.conf + > ./bgpd.maxprefixout.rdomain1.conf + route -T 11 exec /usr/sbin/bgpd -v -f ./bgpd.maxprefixout.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefixout.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + echo test2: add three networks test2: add three networks + route -T 11 exec bgpctl network add 10.12.58.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.59.0/24 request sent. + route -T 11 exec bgpctl network add 10.12.60.0/24 request sent. + sleep 1 + route -T 11 exec bgpctl show nei + awk /^ Prefixes/ { if ($2 == "3") { print "ok"; ok=1; exit 0; } } END { if (ok != 1) { print "bad bgpctl output"; exit 2; } } ok + echo test2: reload config test2: reload config + sed -e s/#MAX-PREFIX#/max-prefix 2 out/ /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxprefixout.rdomain1.conf + > ./bgpd.maxprefixout.rdomain1.conf + route -T 11 exec bgpctl reload reload request sent. request processed + sleep 1 + route -T 11 exec bgpctl show nei + grep ^ Last error sent: Cease, sent max-prefix exceeded Last error sent: Cease, sent max-prefix exceeded + error_notify 0 cleanup SUCCESS ==== maxcomm ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/maxcomm.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/30 up + ifconfig pair12 rdomain 12 10.12.57.2/30 up + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxcomm.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxcomm.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + sleep 1 + route -T 11 exec bgpctl sh rib + tee maxcomm.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin *> N-? 10.12.0.0/24 10.12.57.2 100 0 4200000002 i *> N-? 10.12.1.0/24 10.12.57.2 100 1 4200000002 i *> N-? 10.12.2.0/24 10.12.57.2 100 1 4200000002 i *> N-? 10.12.3.0/24 10.12.57.2 100 3 4200000002 i *> N-? 10.12.4.0/24 10.12.57.2 100 3 4200000002 i *> N-? 10.13.0.0/24 10.12.57.2 100 0 4200000002 i *> N-? 10.13.1.0/24 10.12.57.2 100 10 4200000002 i *> N-? 10.13.2.0/24 10.12.57.2 100 10 4200000002 i *> N-? 10.13.3.0/24 10.12.57.2 100 30 4200000002 i *> N-? 10.13.4.0/24 10.12.57.2 100 30 4200000002 i *> N-? 10.14.0.0/24 10.12.57.2 100 0 4200000002 i *> N-? 10.14.1.0/24 10.12.57.2 100 100 4200000002 i *> N-? 10.14.2.0/24 10.12.57.2 100 100 4200000002 i *> N-? 10.14.3.0/24 10.12.57.2 100 300 4200000002 i *> N-? 10.14.4.0/24 10.12.57.2 100 300 4200000002 i *> N-? 10.15.0.0/24 10.12.57.2 100 0 4200000002 i *> N-? 10.15.1.0/24 10.12.57.2 100 111 4200000002 i *> N-? 10.15.2.0/24 10.12.57.2 100 1111 4200000002 i *> N-? 10.15.3.0/24 10.12.57.2 100 1333 4200000002 i + sleep .2 + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/maxcomm.ok maxcomm.out + echo OK OK + exit 0 + error_notify 0 cleanup SUCCESS ==== maxattr ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/maxattr.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/29 up + ifconfig pair12 rdomain 12 10.12.57.2/29 up + ifconfig pair11 inet6 2001:db8:57::1/64 + ifconfig pair12 inet6 2001:db8:57::2/64 + ifconfig pair12 alias 10.12.57.3/32 + ifconfig pair12 inet6 2001:db8:57::3/128 + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxattr.rdomain1.conf + sleep 2 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxattr.rdomain2_1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.maxattr.rdomain2_2.conf + sleep 1 + echo inject initial prefixes inject initial prefixes + route -T 12 exec bgpctl network add 10.12.60.0/24 request sent. + route -T 12 exec bgpctl network add 10.12.61.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 10.12.62.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 10.12.63.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 10.12.64.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 10.12.65.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 10.12.66.0/24 community 0:1 request sent. + route -T 12 exec bgpctl network add 2001:db8:60::/48 request sent. + route -T 12 exec bgpctl network add 2001:db8:61::/48 community 0:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:62::/48 community 0:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:63::/48 community 0:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:64::/48 community 0:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:65::/48 community 0:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:66::/48 community 0:2 request sent. + sleep 4 + echo test1: check propagation test1: check propagation + route -T 11 exec bgpctl show rib out + tee maxattr.test1.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin * N-? 10.12.60.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.61.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.62.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.63.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.64.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.65.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.66.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 2001:db8:60::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:61::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:62::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:63::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:64::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:65::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:66::/48 2001:db8:57::2 100 0 4200000001 4200000002 i + route -T 12 exec bgpctl -s /var/run/bgpd.sock.12_2 show rib + tee -a maxattr.test1.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin *> N-? 10.12.60.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.61.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.62.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.63.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.64.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.65.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.66.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 2001:db8:60::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:61::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:62::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:63::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:64::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:65::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:66::/48 2001:db8:57::2 100 0 4200000001 4200000002 i + echo update prefixes update prefixes + route -T 12 exec bgpctl network add 10.12.62.0/24 community 0:1 community 42:1 request sent. + route -T 12 exec bgpctl network add 10.12.63.0/24 community 0:1 community 42:2 request sent. + route -T 12 exec bgpctl network add 10.12.64.0/24 community 0:1 community 42:3 request sent. + route -T 12 exec bgpctl network add 10.12.65.0/24 community 0:1 community 42:4 request sent. + route -T 12 exec bgpctl network add 10.12.66.0/24 community 0:1 community 42:5 request sent. + route -T 12 exec bgpctl network add 2001:db8:62::/48 community 0:2 community 42:1 request sent. + route -T 12 exec bgpctl network add 2001:db8:63::/48 community 0:2 community 42:2 request sent. + route -T 12 exec bgpctl network add 2001:db8:64::/48 community 0:2 community 42:3 request sent. + route -T 12 exec bgpctl network add 2001:db8:65::/48 community 0:2 community 42:4 request sent. + route -T 12 exec bgpctl network add 2001:db8:66::/48 community 0:2 community 42:5 request sent. + sleep 2 + echo test2: check propagation test2: check propagation + route -T 11 exec bgpctl show rib out + tee maxattr.test2.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin * N-? 10.12.60.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.61.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.62.0/24 10.12.57.2 100 0 4200000001 4200000001 4200000002 i * N-? 10.12.63.0/24 10.12.57.2 100 0 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000002 i * N-? 10.12.64.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.65.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 10.12.66.0/24 10.12.57.2 100 0 4200000001 4200000002 i * N-? 2001:db8:60::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:61::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:62::/48 2001:db8:57::2 100 0 4200000001 4200000001 4200000002 i * N-? 2001:db8:63::/48 2001:db8:57::2 100 0 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000001 4200000002 i * N-? 2001:db8:64::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:65::/48 2001:db8:57::2 100 0 4200000001 4200000002 i * N-? 2001:db8:66::/48 2001:db8:57::2 100 0 4200000001 4200000002 i + route -T 12 exec bgpctl -s /var/run/bgpd.sock.12_2 show rib + tee -a maxattr.test2.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin *> N-? 10.12.60.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.61.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 10.12.66.0/24 10.12.57.2 100 0 4200000001 4200000002 i *> N-? 2001:db8:60::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:61::/48 2001:db8:57::2 100 0 4200000001 4200000002 i *> N-? 2001:db8:66::/48 2001:db8:57::2 100 0 4200000001 4200000002 i + echo check results check results + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/maxattr.test1.ok maxattr.test1.out + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/maxattr.test2.ok maxattr.test2.out + echo OK OK + exit 0 + error_notify 0 cleanup SUCCESS ==== l3vpn ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/l3vpn.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 13 14 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 10.12.57.1/29 mpls up + ifconfig pair12 rdomain 12 10.12.57.2/29 mpls up + ifconfig pair11 inet6 2001:db8:57::1/64 + ifconfig pair12 inet6 2001:db8:57::2/64 + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + ifconfig mpe13 rdomain 13 mplslabel 42 192.168.237.242/32 + ifconfig mpe14 rdomain 14 mplslabel 44 192.168.237.244/32 + ifconfig mpe13 inet6 2001:db8:242::242/64 + ifconfig mpe14 inet6 2001:db8:244::244/64 + ifconfig lo13 inet 127.0.0.1/8 + ifconfig lo14 inet 127.0.0.1/8 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.l3vpn.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.l3vpn.rdomain2.conf + sleep 1 + route -T 11 exec bgpctl nei RDOMAIN2 up request processed + route -T 11 exec bgpctl nei RDOMAIN2v6 up request processed + sleep 1 + echo Check initial networks Check initial networks + route -T 11 exec bgpctl show Neighbor AS MsgRcvd MsgSent OutQ Up/Down State/PrfRcvd RDOMAIN2 4200000002 5 5 0 00:00:01 1 RDOMAIN2v6 4200000002 5 5 0 00:00:01 1 + route -T 11 exec bgpctl show rib flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin AI*> N-? rd 4200000001:13 192.168.42.0/24 rd 0:0 0.0.0.0 100 0 i *> N-? rd 4200000002:14 192.168.44.0/24 10.12.57.2 100 0 4200000002 i AI*> N-? rd 4200000001:13 2001:db8:42:42::/64 rd 0:0 :: 100 0 i *> N-? rd 4200000002:14 2001:db8:42:44::/64 2001:db8:57::2 100 0 4200000002 i + route -T 11 exec bgpctl show fib table 13 flags: B = BGP, C = Connected, S = Static N = BGP Nexthop reachable via this route r = reject route, b = blackhole route flags prio destination gateway C 1 127.0.0.1/32 link#520 B 48 192.168.44.0/24 10.12.57.2 mpls 44 C 1 192.168.237.242/32 link#519 C 1 ::1/128 link#520 B 48 2001:db8:42:44::/64 2001:db8:57::2 mpls 44 C 4 2001:db8:242::/64 link#519 C 1 2001:db8:242::242/128 link#519 C 4 fe80::%mpe13/64 link#519 C 1 fe80::1%lo13/128 link#520 C 1 fe80::ec4:7aff:fe6a:1834%mpe13/128 link#519 C 4 ff01::%lo13/32 link#520 C 4 ff02::%lo13/32 link#520 + route -T 13 show Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface localhost localhost UHl 0 0 32768 1 lo13 192.168.44/24 10.12.57.2 T 0 0 - 48 mpe13 192.168.237.242 192.168.237.242 UHl 0 0 - 1 mpe13 Internet6: Destination Gateway Flags Refs Use Mtu Prio Iface localhost localhost UHl 0 0 32768 1 lo13 2001:db8:42:44::/64 2001:db8:57::2 T 0 0 - 48 mpe13 2001:db8:242::/64 2001:db8:242::242 Cn 0 0 - 4 mpe13 2001:db8:242::242 2001:db8:242::242 UHl 0 0 - 1 mpe13 fe80::%mpe13/64 fe80::ec4:7aff:fe6a:1834%mpe13 n 0 0 - 4 mpe13 fe80::ec4:7aff:fe6a:1834%mpe13 fe80::ec4:7aff:fe6a:1834%mpe13 UHl 0 0 - 1 mpe13 fe80::1%lo13 fe80::1%lo13 UHl 0 0 32768 1 lo13 ff01::%lo13/32 fe80::1%lo13 Um 0 1 32768 4 lo13 ff02::%lo13/32 fe80::1%lo13 Um 0 1 32768 4 lo13 + route -T 13 get 192.168.44/24 + > /dev/null + route -T 14 get 192.168.42/24 + > /dev/null + route -T 13 get -inet6 2001:db8:42:44::/64 + > /dev/null + route -T 14 get -inet6 2001:db8:42:42::/64 + > /dev/null + echo Add new network Add new network + route -T 12 exec bgpctl network add 192.168.45.0/24 rd 4200000002:14 request sent. + route -T 12 exec bgpctl network add 2001:db8:42:45::/64 rd 4200000002:14 request sent. + sleep 1 + route -T 13 get 192.168.45/24 + > /dev/null + route -T 13 get -inet6 2001:db8:42:45::/64 + > /dev/null + echo Remove new network Remove new network + route -T 12 exec bgpctl network del 192.168.45.0/24 rd 4200000002:14 request sent. + route -T 12 exec bgpctl network del 2001:db8:42:45::/64 rd 4200000002:14 request sent. + sleep 1 + route -T 11 exec bgpctl show rib flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin AI*> N-? rd 4200000001:13 192.168.42.0/24 rd 0:0 0.0.0.0 100 0 i *> N-? rd 4200000002:14 192.168.44.0/24 10.12.57.2 100 0 4200000002 i AI*> N-? rd 4200000001:13 2001:db8:42:42::/64 rd 0:0 :: 100 0 i *> N-? rd 4200000002:14 2001:db8:42:44::/64 2001:db8:57::2 100 0 4200000002 i + route -T 13 get 192.168.45/24 + > /dev/null + route -T 13 get -inet6 2001:db8:42:45::/64 + > /dev/null + exit 0 + error_notify 0 + echo cleanup cleanup + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + ifconfig pair11 destroy + ifconfig pair12 destroy + ifconfig mpe13 destroy + ifconfig mpe14 destroy + route -qn -T 11 flush + route -qn -T 12 flush + route -qn -T 13 flush + route -qn -T 14 flush + ifconfig lo11 destroy + ifconfig lo12 destroy + ifconfig lo13 destroy + ifconfig lo14 destroy + [ 0 -ne 0 ] + echo SUCCESS SUCCESS ==== ixp ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/ixp.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 192.0.2.2/24 up + ifconfig pair12 rdomain 12 192.0.2.11/24 up + ifconfig pair12 alias 192.0.2.21/32 + ifconfig pair12 alias 192.0.2.31/32 + ifconfig pair12 alias 192.0.2.41/32 + ifconfig pair11 patch pair12 + ifconfig lo11 inet 127.0.0.1/8 + ifconfig lo12 inet 127.0.0.1/8 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ixp.rdomain1.conf + sleep 2 + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ixp.rdomain2_1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ixp.rdomain2_2.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ixp.rdomain2_3.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.ixp.rdomain2_4.conf + wait_until route -T 11 exec bgpctl show rib detail | ! cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - + route -T 11 exec bgpctl show rib detail + cmp /dev/null - cmp: EOF on /dev/null + route -T 11 exec bgpctl show rib detail + grep -v Last update: + tee ixp.rdomain1.out BGP routing table entry for 2.0.3.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs valid, avs unknown, external, valid, best Ext. Communities: ovs valid BGP routing table entry for 2.0.4.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs invalid, avs unknown, external, valid, best Communities: 65520:0 65520:14 65524:2 Ext. Communities: ovs invalid rt 65524:2 BGP routing table entry for 2.0.5.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Ext. Communities: ovs not-found BGP routing table entry for 2.0.6.0/24 2 2 2 2 2 2 2 2 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:1 65524:2 Ext. Communities: ovs not-found rt 65524:2 BGP routing table entry for 2.0.7.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:3 65524:2 Ext. Communities: ovs not-found rt 65524:2 BGP routing table entry for 2.0.9.0/24 2 Nexthop 192.0.2.77 (via 192.0.2.77) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:5 65524:2 Ext. Communities: ovs not-found rt 65524:2 BGP routing table entry for 2.0.11.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 BLACKHOLE Ext. Communities: ovs not-found Large Communities: 999:65530:4 BGP routing table entry for 2.0.12.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 65534:0 Ext. Communities: ovs not-found Large Communities: 999:65530:4 BGP routing table entry for 2.0.13.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 Ext. Communities: ovs not-found Large Communities: 999:65530:4 65534:0:0 BGP routing table entry for 2.0.14.0/25 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:13 65524:2 Ext. Communities: ovs not-found rt 65524:2 BGP routing table entry for 2.0.15.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Ext. Communities: ovs not-found BGP routing table entry for 3.0.3.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65507:999 Ext. Communities: ovs not-found BGP routing table entry for 3.0.4.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Ext. Communities: ovs not-found Large Communities: 999:65508:999 BGP routing table entry for 3.0.5.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Ext. Communities: ovs not-found Large Communities: 999:0:999 BGP routing table entry for 3.0.6.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 0:1 Ext. Communities: ovs not-found BGP routing table entry for 3.0.7.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 0:999 Ext. Communities: ovs not-found Large Communities: 999:65501:1 BGP routing table entry for 3.0.8.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65521:1 Ext. Communities: ovs not-found BGP routing table entry for 3.0.9.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Ext. Communities: ovs not-found Large Communities: 999:65522:1 BGP routing table entry for 3.0.10.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65523:1 Ext. Communities: ovs not-found BGP routing table entry for 3.0.11.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor AS3_1 client (192.0.2.31) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65521:65521 65522:65522 65523:65523 Ext. Communities: ovs not-found BGP routing table entry for 22.0.10.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:12 65524:2 Ext. Communities: ovs not-found rt 65524:2 BGP routing table entry for 192.168.8.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor AS2_1 client (192.0.2.21) Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65520:0 65520:2 65524:2 Ext. Communities: ovs not-found rt 65524:2 + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/ixp.rdomain1.ok ixp.rdomain1.out + echo OK OK + wait_until route -T 12 exec bgpctl show rib detail | ! cmp /dev/null - + route -T 12 exec bgpctl show rib detail + cmp /dev/null - cmp: EOF on /dev/null + route -T 12 exec bgpctl show rib detail + grep -v Last update: + tee ixp.rdomain2.out BGP routing table entry for 2.0.3.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 2.0.5.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 2.0.11.0/24 2 Nexthop 192.0.2.66 (via 192.0.2.66) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 BLACKHOLE NO_EXPORT Large Communities: 999:65530:4 BGP routing table entry for 2.0.12.0/24 2 Nexthop 192.0.2.66 (via 192.0.2.66) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 BLACKHOLE NO_EXPORT Large Communities: 999:65530:4 BGP routing table entry for 2.0.13.0/24 2 Nexthop 192.0.2.66 (via 192.0.2.66) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: 65530:4 BLACKHOLE NO_EXPORT Large Communities: 999:65530:4 BGP routing table entry for 2.0.15.0/24 2 Nexthop 192.0.2.21 (via 192.0.2.21) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 3.0.3.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: NO_EXPORT BGP routing table entry for 3.0.4.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best Communities: NO_ADVERTISE BGP routing table entry for 3.0.7.0/24 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 3.0.8.0/24 3 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 3.0.9.0/24 3 3 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 3.0.10.0/24 3 3 3 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best BGP routing table entry for 3.0.11.0/24 3 3 Nexthop 192.0.2.31 (via 192.0.2.31) Neighbor 192.0.2.2 (192.0.2.2) Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/ixp.rdomain2.ok ixp.rdomain2.out + echo OK OK + exit 0 + error_notify 0 cleanup SUCCESS ==== lladdr ==== ksh /usr/src/regress/usr.sbin/bgpd/integrationtests/lladdr.sh /usr/sbin/bgpd /usr/src/regress/usr.sbin/bgpd/integrationtests 11 12 pair11 pair12 check if rdomains are busy check if interfaces are busy + echo setup setup + ifconfig pair11 rdomain 11 up + ifconfig pair12 rdomain 12 up + ifconfig pair11 inet6 fe80::c0fe:1/64 + ifconfig pair12 inet6 fe80::c0fe:2/64 + ifconfig pair11 patch pair12 + ifconfig gif11 rdomain 11 tunneldomain 11 + ifconfig gif12 rdomain 12 tunneldomain 12 + ifconfig gif11 tunnel fe80::c0fe:1%pair11 fe80::c0fe:2%pair11 + ifconfig gif12 tunnel fe80::c0fe:2%pair12 fe80::c0fe:1%pair12 + ifconfig gif11 inet6 fe80::beef:1/128 fe80::beef:2 + ifconfig gif12 inet6 fe80::beef:2/128 fe80::beef:1 + echo run bgpds run bgpds + route -T 11 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.lladdr.rdomain1.conf + route -T 12 exec /usr/sbin/bgpd -v -f /usr/src/regress/usr.sbin/bgpd/integrationtests/bgpd.lladdr.rdomain2.conf + sleep 1 + route -T12 exec bgpctl nei RDOMAIN1 up request processed + route -T12 exec bgpctl nei RDOMAIN1_2 up request processed + sleep 2 + route -T11 exec bgpctl show rib + tee lladdr.rdomain1.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin AI*> N-? 2001:db8:1::/48 :: 100 0 i *> N-? 2001:db8:2::/48 fe80::c0fe:2%pair11 100 0 4200000002 i AI*> N-? 2001:db8:11::/48 :: 100 0 i *> N-? 2001:db8:12::/48 fe80::beef:2%gif11 100 0 4200000002 i + route -T11 exec bgpctl show fib + grep -v link# + tee -a lladdr.rdomain1.out flags: B = BGP, C = Connected, S = Static N = BGP Nexthop reachable via this route r = reject route, b = blackhole route flags prio destination gateway B 48 2001:db8:2::/48 fe80::c0fe:2%pair11 B 48 2001:db8:12::/48 fe80::beef:2%gif11 + route -T11 get 2001:db8:2::/48 + grep -v if address + tee -a lladdr.rdomain1.out route to: 2001:db8:2:: destination: 2001:db8:2:: mask: ffff:ffff:ffff:: gateway: fe80::c0fe:2%pair11 interface: pair11 priority: 48 (bgp) flags: use mtu expire 0 0 0 + route -T11 get 2001:db8:12::/48 + grep -v if address + tee -a lladdr.rdomain1.out route to: 2001:db8:12:: destination: 2001:db8:12:: mask: ffff:ffff:ffff:: gateway: fe80::beef:2%gif11 interface: gif11 priority: 48 (bgp) flags: use mtu expire 0 0 0 + route -T12 exec bgpctl show rib + tee lladdr.rdomain2.out flags: * = Valid, > = Selected, I = via IBGP, A = Announced, S = Stale, E = Error, F = Filtered origin validation state: N = not-found, V = valid, ! = invalid aspa validation state: ? = unknown, V = valid, ! = invalid origin: i = IGP, e = EGP, ? = Incomplete flags vs destination gateway lpref med aspath origin *> N-? 2001:db8:1::/48 fe80::c0fe:1%pair12 100 0 4200000001 i AI*> N-? 2001:db8:2::/48 :: 100 0 i *> N-? 2001:db8:11::/48 fe80::beef:1%gif12 100 0 4200000001 i AI*> N-? 2001:db8:12::/48 :: 100 0 i + route -T12 exec bgpctl show fib + grep -v link# + tee -a lladdr.rdomain2.out flags: B = BGP, C = Connected, S = Static N = BGP Nexthop reachable via this route r = reject route, b = blackhole route flags prio destination gateway B 48 2001:db8:1::/48 fe80::c0fe:1%pair12 B 48 2001:db8:11::/48 fe80::beef:1%gif12 + route -T12 get 2001:db8:1::/48 + grep -v if address + tee -a lladdr.rdomain2.out route to: 2001:db8:1:: destination: 2001:db8:1:: mask: ffff:ffff:ffff:: gateway: fe80::c0fe:1%pair12 interface: pair12 priority: 48 (bgp) flags: use mtu expire 0 0 0 + route -T12 get 2001:db8:11::/48 + grep -v if address + tee -a lladdr.rdomain2.out route to: 2001:db8:11:: destination: 2001:db8:11:: mask: ffff:ffff:ffff:: gateway: fe80::beef:1%gif12 interface: gif12 priority: 48 (bgp) flags: use mtu expire 0 0 0 + sleep .2 + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/lladdr.rdomain1.ok lladdr.rdomain1.out + diff -u /usr/src/regress/usr.sbin/bgpd/integrationtests/lladdr.rdomain2.ok lladdr.rdomain2.out + echo OK OK + exit 0 + error_notify 0 + echo cleanup cleanup + pkill -T 11 bgpd + pkill -T 12 bgpd + sleep 1 + ifconfig gif11 destroy + ifconfig gif12 destroy + ifconfig pair11 destroy + ifconfig pair12 destroy + route -qn -T 11 flush + true + route -qn -T 12 flush + true + ifconfig lo11 destroy + ifconfig lo12 destroy + [ 0 -ne 0 ] + echo SUCCESS SUCCESS ==== as0 ==== # install exabgp from ports for additional tests SKIPPED ==== med ==== # install exabgp from ports for additional tests SKIPPED ==== eval_all ==== # install exabgp from ports for additional tests SKIPPED ==== attr ==== # install exabgp from ports for additional tests SKIPPED SKIP usr.sbin/bgpd/integrationtests Test skipped itself