summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-02-04 07:26:03 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 17:24:51 +0200
commit75ee619cf72b5f9888c60be468e94df5291c25f1 (patch)
treec67792074c534744752a9d322e8d41d1d9b62318 /tests
parentospfd: Fix initial Opaque LSA DB synchronisation (diff)
downloadfrr-75ee619cf72b5f9888c60be468e94df5291c25f1.tar.xz
frr-75ee619cf72b5f9888c60be468e94df5291c25f1.zip
tests: fix tests for 1a211cb (missing well-known)
Fix tests/aspathtest.c again, this time by including a NEXT_HOP attribute (which is out of correct order with AS_PATH, but that doesn't matter here.) This satisfies bgp_attr_check(), which after 1a211cb refuses updates without nexthop attribute. Fixes: 1a211cb ("one more fix for tightening of check for missing well-known attributes") Cc: Paul Jakma <paul@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 143637198e333f0c822766b38f9d8cfe75c04e21)
Diffstat (limited to 'tests')
-rw-r--r--tests/aspath_test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/aspath_test.c b/tests/aspath_test.c
index 534436246..fde12c41c 100644
--- a/tests/aspath_test.c
+++ b/tests/aspath_test.c
@@ -458,8 +458,11 @@ static struct test_segment {
BGP_ATTR_FLAG_TRANS, \
BGP_ATTR_ORIGIN, \
1, \
- BGP_ORIGIN_EGP
-#define COMMON_ATTR_SIZE 4
+ BGP_ORIGIN_EGP, \
+ BGP_ATTR_FLAG_TRANS, \
+ BGP_ATTR_NEXT_HOP, \
+ 4, 192, 0, 2, 0
+#define COMMON_ATTR_SIZE 11
/* */
static struct aspath_tests {