diff options
author | 2021-01-13 10:15:08 +0000 | |
---|---|---|
committer | 2021-01-13 10:15:08 +0000 | |
commit | 3b2cd5eea6d83b858276e1fa4234b580cdf1738c (patch) | |
tree | 5ea28c42dd1ef321d8704c57dde1022fe97cda45 | |
parent | Make imsg.h a bit more self-contained by prototyping struct iovec. (diff) | |
download | wireguard-openbsd-3b2cd5eea6d83b858276e1fa4234b580cdf1738c.tar.xz wireguard-openbsd-3b2cd5eea6d83b858276e1fa4234b580cdf1738c.zip |
Extend med test with a withdraw that causes a flip in the order.
-rw-r--r-- | regress/usr.sbin/bgpd/integrationtests/exabgp.med_2.ok | 8 | ||||
-rw-r--r-- | regress/usr.sbin/bgpd/integrationtests/med.sh | 11 |
2 files changed, 18 insertions, 1 deletions
diff --git a/regress/usr.sbin/bgpd/integrationtests/exabgp.med_2.ok b/regress/usr.sbin/bgpd/integrationtests/exabgp.med_2.ok new file mode 100644 index 00000000000..a82d2951729 --- /dev/null +++ b/regress/usr.sbin/bgpd/integrationtests/exabgp.med_2.ok @@ -0,0 +1,8 @@ +flags: * = Valid, > = Selected, I = via IBGP, A = Announced, + S = Stale, E = Error +origin validation state: N = not-found, V = valid, ! = invalid +origin: i = IGP, e = EGP, ? = Incomplete + +flags ovs destination gateway lpref med aspath origin +*> N 10.12.1.0/24 10.12.57.2 100 100 64501 64510 i +* N 10.12.1.0/24 10.12.57.3 100 100 64502 64510 i diff --git a/regress/usr.sbin/bgpd/integrationtests/med.sh b/regress/usr.sbin/bgpd/integrationtests/med.sh index 43993f4921b..a13deeb896b 100644 --- a/regress/usr.sbin/bgpd/integrationtests/med.sh +++ b/regress/usr.sbin/bgpd/integrationtests/med.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: med.sh,v 1.1 2021/01/12 08:59:03 claudio Exp $ +# $OpenBSD: med.sh,v 1.2 2021/01/13 10:15:08 claudio Exp $ set -e @@ -145,6 +145,15 @@ sleep .2 diff -u ${BGPDCONFIGDIR}/exabgp.med.ok med.out echo OK +echo test 4 + +exacmd 'neighbor 10.12.57.1 router-id 10.12.57.4 withdraw route 10.12.1.0/24' + +sleep 5 +route -T ${RDOMAIN1} exec bgpctl sh rib | tee med.out +sleep .2 +diff -u ${BGPDCONFIGDIR}/exabgp.med_2.ok med.out +echo OK exacmd 'shutdown' exit 0 |