diff options
author | Brian Rak <brianrak@gameservers.com> | 2017-07-25 21:48:02 +0200 |
---|---|---|
committer | Brian Rak <brianrak@gameservers.com> | 2017-07-25 21:51:30 +0200 |
commit | 651db60ff4f77dda2044cce3638ffbef44021ca0 (patch) | |
tree | 139d642a271234d307a1eb5ca641b83aa69b173c /redhat | |
parent | Merge pull request #848 from opensourcerouting/rb-tree-fix (diff) | |
download | frr-651db60ff4f77dda2044cce3638ffbef44021ca0.tar.xz frr-651db60ff4f77dda2044cce3638ffbef44021ca0.zip |
redhat: Make the init script flush routes for all associated protocols on stop
Diffstat (limited to 'redhat')
-rwxr-xr-x | redhat/frr.init | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redhat/frr.init b/redhat/frr.init index cf01e4c6e..a62647b25 100755 --- a/redhat/frr.init +++ b/redhat/frr.init @@ -515,6 +515,18 @@ case "$1" in if [ -z "$dmn" -o "$dmn" = "zebra" ]; then echo "Removing all routes made by zebra." ip route flush proto zebra + # At least in CentOS/RHEL 6, iproute2 doesn't know + # about the new protocol names, so we have to flush them + # by number (it also doesn't support rt_protos.d + ip route flush proto 186 + ip route flush proto 187 + ip route flush proto 188 + ip route flush proto 189 + ip route flush proto 190 + ip route flush proto 191 + ip route flush proto 192 + ip route flush proto 193 + ip route flush proto 194 else [ -n "$dmn" ] && eval "${dmn/-/_}=0" start_watchfrr |