From: Donald Sharp Date: Mon, 25 Sep 2017 23:10:40 +0000 (-0400) Subject: tools: Fix route flush X-Git-Tag: frr-4.0-dev~239^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a6487ff6b5df8db2d695aee08ef5212900da2e8a;p=matthieu%2Ffrr.git tools: Fix route flush 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 --- diff --git a/tools/frr b/tools/frr index 4eb4a5c28c..5fb2b11f99 100755 --- 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"