]> git.puffer.fish Git - mirror/frr.git/commitdiff
RDNBRD: Change default distance of imported table routes to 15
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 22 Mar 2016 19:04:58 +0000 (19:04 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 22 Mar 2016 19:04:58 +0000 (19:04 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-9898

The 'redistribute neighbor' feature is the primary use case for
importing table routes.  We need the redistribute neighbor routes to
have a lower admin distance than eBGP so that the local table routes are
preferred (if the host is dual homed we could also learn about it via eBGP).

lib/zebra.h

index 8cef0bfac2d3afbfe62b75c228fa30719e6acf0c..751e8ce3df7d9b07f6e9ff5a93f5e77b02fa17e4 100644 (file)
@@ -548,7 +548,7 @@ extern const char *zserv_command_string (unsigned int command);
 #define ZEBRA_ISIS_DISTANCE_DEFAULT      115
 #define ZEBRA_IBGP_DISTANCE_DEFAULT      200
 #define ZEBRA_EBGP_DISTANCE_DEFAULT       20
-#define ZEBRA_TABLE_DISTANCE_DEFAULT     150
+#define ZEBRA_TABLE_DISTANCE_DEFAULT      15
 
 /* Flag manipulation macros. */
 #define CHECK_FLAG(V,F)      ((V) & (F))