From 210dbc16c297a44a3e3b795bae26726b7dd1c46f Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 17 Feb 2019 18:46:28 +0100 Subject: [PATCH] BGP: implement Adj-RIB-In The patch implements optional internal import table to a channel and hooks it to BGP so it can be used as Adj-RIB-In. When enabled, all received (pre-filtered) routes are stored there and import filters can be re-evaluated without explicit route refresh. An import table can be examined using e.g. 'show route import table bgp1.ipv4'. --- doc/bird.sgml | 10 +++ lib/event.h | 9 +++ nest/config.Y | 10 +++ nest/proto.c | 59 +++++++++++++++++ nest/protocol.h | 22 ++++++- nest/route.h | 4 ++ nest/rt-table.c | 155 +++++++++++++++++++++++++++++++++++++++++++- proto/bgp/bgp.c | 18 ++++- proto/bgp/bgp.h | 1 + proto/bgp/config.Y | 3 +- proto/bgp/packets.c | 4 +- 11 files changed, 286 insertions(+), 9 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 903456f00..153469120 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2553,6 +2553,16 @@ be used in explicit configuration. for every allowed table type. Default: the same as the main table the channel is connected to (if eligible). +