]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vrf.c
zebra: don't register same hook multiple times
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 4 Nov 2021 23:04:02 +0000 (02:04 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 4 Nov 2021 23:04:02 +0000 (02:04 +0300)
commit903c6fa24ecb284e5313d217f15901b904c7b801
tree0602675ecd674ff6e4a2ed714cde9427315dbd37
parent0051effcb151b803b4a8caa5d2f958485574dd24
zebra: don't register same hook multiple times

Before 42d4b30e, table_manager_enable was called only once and the hook
was also registered once. After the change, the hook is registered per
each VRF that is created in the system. This is wrong.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
zebra/table_manager.c
zebra/zebra_vrf.c