summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-06-17 14:11:35 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-10-20 13:28:52 +0200
commit07a459ac25e2b17464ccabf9df6ca07ae6887531 (patch)
treeace05c1ba28a50a47f4426e184ded8d3ec3c5d6a /lib/zebra.h
parentMerge pull request #14614 from opensourcerouting/feature/bgpd_handle_orf_capa... (diff)
downloadfrr-07a459ac25e2b17464ccabf9df6ca07ae6887531.tar.xz
frr-07a459ac25e2b17464ccabf9df6ca07ae6887531.zip
lib: add support for new redistribute table-direct element
Add a new kind of redistributed route that helps to import entries that are not copied in the default routing table. Contrary to the 'redistribute table' feature, the entries are directly obtained from the zebra appropriate routing table. The 'table-direct' naming expresses the direct redistribution of the routes, without having to copy the route entries in the default routing table. The distance value for this route is 14. Such route entries will be prioritary compared to 'table' and 'ebgp' route entries type. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index ecc87f58f..42e6a97ff 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -370,6 +370,7 @@ typedef enum {
#define ZEBRA_IBGP_DISTANCE_DEFAULT 200
#define ZEBRA_EBGP_DISTANCE_DEFAULT 20
#define ZEBRA_TABLE_DISTANCE_DEFAULT 15
+#define ZEBRA_TABLEDIRECT_DISTANCE_DEFAULT 14
#define ZEBRA_EIGRP_DISTANCE_DEFAULT 90
#define ZEBRA_NHRP_DISTANCE_DEFAULT 10
#define ZEBRA_LDP_DISTANCE_DEFAULT 150