]> git.puffer.fish Git - mirror/frr.git/commit
tests: fix tests for 055086f (well-known attr check)
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 30 Oct 2014 05:42:00 +0000 (06:42 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 01:16:32 +0000 (01:16 +0000)
commit0b1e756bbfc06fadbd447cd7b1956ee7782e625b
tree26be2984d0d6950f1961b86d4e483862680e38f5
parent51a360145ac9e1f135b283dcd7c9237be6122d1d
tests: fix tests for 055086f (well-known attr check)

Fix tests/aspathtest.c by including an ORIGIN attribute in the
testcases.  After 055086f "bgpd: well-known attr check only run for
v4/uni, which could cause a crash," we're now checking for it and tests
are failing due to that.

Note that test #11 ("4b AS4_PATH w/o AS_PATH") is no longer accepted as
OK since the function now checks for the existence of an AS_PATH attr.

Fixes: 055086f ("bgpd: well-known attr check only run for v4/uni"...)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit c68f6d9dbb9f910d3ee82e099655fff7c12ef856)
tests/aspath_test.c