From 5d5393b943c500c63770a06df9036a1558d0f100 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 1 Aug 2019 18:50:56 +0200 Subject: bgpd: use new defaults system (v2) This moves all the DFLT_BGP_* stuff over to the new defaults mechanism. bgp_timers_nondefault() added to get better file-scoping. v2: moved everything into bgp_vty.c so that the core BGP code is independent of the CLI-specific defaults. This should make the future northbound conversion easier. Signed-off-by: David Lamparter --- tests/bgpd/test_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bgpd/test_packet.c') diff --git a/tests/bgpd/test_packet.c b/tests/bgpd/test_packet.c index 7a038fb02..d2c093fbe 100644 --- a/tests/bgpd/test_packet.c +++ b/tests/bgpd/test_packet.c @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) vrf_init(NULL, NULL, NULL, NULL, NULL); bgp_option_set(BGP_OPT_NO_LISTEN); - if (bgp_get(&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT)) + if (bgp_get(&bgp, &asn, NULL, BGP_INSTANCE_TYPE_DEFAULT) < 0) return -1; peer = peer_create_accept(bgp); -- cgit v1.2.3