]> git.proxmox.com Git - mirror_frr.git/commit
babel: fix crashes and improve the redistribute command
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 26 Jul 2017 14:31:54 +0000 (11:31 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 26 Jul 2017 14:51:44 +0000 (11:51 -0300)
commitdd8765cad5ff747be42e2a70e1aadd56ef8f4021
tree7c6db41b9ad6a6b9c1e7ea29f523bf8f6c5130c0
parent493c8ac787162d0a5a3ead3dbfa20b003aeb5823
babel: fix crashes and improve the redistribute command

Fixes the following crashes:
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute pim"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute eigrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute nhrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute table"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute vnc"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute pim"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute eigrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute nhrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute table"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute vnc"

While here, add an option to chose if we want to redistribute IPv4 or
IPv6 routes (e.g. we might want static IPv4 routes only). Also, join the
"no" version of the command in the same DEFUN (Yes We Can).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
babeld/babel_zebra.c
babeld/babeld.c