]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: Fix route flush
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Sep 2017 23:10:40 +0000 (19:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 5 Oct 2017 12:12:44 +0000 (08:12 -0400)
This commit does two things:

1) Flush by proto number not string
   This is useful because not all systems might have the proto
   values installed, or a version of iproute2 that they might
   be installed with.
2) Flush missing routes that might have been installed( eigrp
   and nhrp )

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

index 4eb4a5c28c7c05fde305f14dcf8e7e3a1d3694ac..5fb2b11f99202082018b8bc20981e6bb8d128a84 100755 (executable)
--- a/tools/frr
+++ b/tools/frr
@@ -544,13 +544,15 @@ case "$1" in
 
         if [ -z "$dmn" -o "$dmn" = "zebra" ]; then
           echo "Removing all routes made by FRR."
-          ip route flush proto bgp
-          ip route flush proto ospf
-          ip route flush proto static
-          ip route flush proto rip
-          ip route flush proto ripng
-          ip route flush proto zebra
-          ip route flush proto isis
+          ip route flush proto 186
+          ip route flush proto 188
+          ip route flush proto 4
+          ip route flush proto 189
+          ip route flush proto 190
+          ip route flush proto 11
+          ip route flush proto 187
+          ip route flush proto 192
+          ip route flush proto 194
 
        else
          [ -n "$dmn" ] && eval "${dmn/-/_}=0"