From 1cab2b4a7cffb7ad604dcbd200267733ef079973 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Sun, 16 Dec 2018 23:44:24 +0100 Subject: [PATCH] BGP: Extend 'next hop keep' and 'next hop self' options Extend 'next hop keep' and 'next hop self' options to have boolean values (enabled / disabled) and also values 'ibgp'/ 'ebgp' to restrict it to routes received from IBGP / EBGP. This allows to have it enabled by default in some cases, matches features of other implementations, and allows to handle some strange cases like EBGP border router with 'next hop self' also doing IBGP route reflecting. Change default of 'next hop keep' to enabled for route servers, and 'ibgp' for route reflectors. Update documentation for these options. --- doc/bird.sgml | 38 ++++++++++++++++++++++++-------------- proto/bgp/bgp.c | 4 ++++ proto/bgp/bgp.h | 19 ++++++++++++------- proto/bgp/config.Y | 13 ++++++++++--- proto/bgp/packets.c | 22 +++++++++++++++++++--- 5 files changed, 69 insertions(+), 27 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 8dc872e7..c76873cd 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2220,9 +2220,9 @@ using the following configuration parameters: the number of hops is 2. Default: enabled for iBGP.