]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_vty.c
ospfd: fix counting of "ip ospf area" commands
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 29 Mar 2021 11:47:43 +0000 (14:47 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 30 Mar 2021 08:51:21 +0000 (11:51 +0300)
commitcbf32f74ef26de9c4b4eaa128b25d35d2c55b809
tree3784884b4e809eebb8b7df8cc0e911d75c858bfc
parent45af60f0bbeadae78ff8f97ea638d3592e7605c9
ospfd: fix counting of "ip ospf area" commands

Instead of trying to maintain if_ospf_cli_count, let's directly count
the number of configured interfaces when it is needed. Current approach
sometimes leads to an incorrect counter.

Fixes #8321.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_interface.c
ospfd/ospf_interface.h
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h