]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Fix compatibility with FRR v5.0 2497/head
authorPascal Mathis <mail@pascalmathis.com>
Tue, 19 Jun 2018 16:25:55 +0000 (18:25 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Tue, 19 Jun 2018 16:25:55 +0000 (18:25 +0200)
This commit introduces a small fix to the peer-attributes test suite to
make it compatible with the slightly different API in FRR v5.0 for
bgp_init(), which requires that an explicit instance ID gets passed.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
tests/bgpd/test_peer_attr.c

index 16bd5d96dab51e53d8cdbaffb12c6467d431cf3b..336582e38d6ca06354a072f53f2ff55e943d51f7 100644 (file)
@@ -1388,7 +1388,7 @@ static void bgp_startup(void)
        bgp_master_init(master);
        bgp_option_set(BGP_OPT_NO_LISTEN);
        vrf_init(NULL, NULL, NULL, NULL);
-       bgp_init();
+       bgp_init(0);
        bgp_pthreads_run();
 }