]> git.puffer.fish Git - mirror/frr.git/commitdiff
*: Add some documentation about how to handle new daemons 1244/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 5 Oct 2017 12:54:03 +0000 (08:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 5 Oct 2017 12:54:03 +0000 (08:54 -0400)
Add some breadcrumbs for when we add a new routing daemon
so things `just work`.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
tools/frr
zebra/rt_netlink.h

index 8d67917be71d05cb0da22f8ccda227950e4bbd2a..78190aadb06bea071a7dde088f603a2559a6c1fc 100755 (executable)
--- a/tools/frr
+++ b/tools/frr
@@ -544,6 +544,12 @@ case "$1" in
 
         if [ -z "$dmn" -o "$dmn" = "zebra" ]; then
           echo "Removing all routes made by FRR."
+         # Specific values for each proto can be found
+         # in /etc/iproute2/rt_protos as well as FRR
+         # specific ones in /etc/iproute2/rt_protos.d
+         # Additionally if a new protocol is added
+         # we need to add it here as well as
+         # in rt_netlink.h( follow the directions! )
           ip route flush proto 186
           ip route flush proto 188
           ip route flush proto 4
index e607dda6f9c007657160c2685ea859ea6f2114da..980ff915cc6e892cf354258f82b7151324cb4edf 100644 (file)
 
 #define NL_DEFAULT_ROUTE_METRIC 20
 
-/* Additional protocol strings to push into routes */
+/*
+ * Additional protocol strings to push into routes
+ * If we add anything new here please make sure
+ * to update:
+ * zebra2proto                 Function
+ * proto2zebra                 Function
+ * is_selfroute                Function
+ * tools/frr                   To flush the route upon exit
+ *
+ * Finally update this file to allow iproute2 to
+ * know about this new route.
+ * tools/etc/iproute2/rt_protos.d
+ */
 #define RTPROT_BGP         186
 #define RTPROT_ISIS        187
 #define RTPROT_OSPF        188
 #define RTPROT_RIP         189
 #define RTPROT_RIPNG       190
 #if !defined(RTPROT_BABEL)
-#define RTPROT_BABEL              42
+#define RTPROT_BABEL        42
 #endif
 #define RTPROT_NHRP        191
 #define RTPROT_EIGRP       192