]> git.proxmox.com Git - mirror_frr.git/commit - isisd/isis_nb_config.c
isisd: fix dangling instances
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 9 May 2021 13:43:29 +0000 (16:43 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 14 May 2021 14:12:38 +0000 (17:12 +0300)
commit5cfffcdd8dc6dfac0f0ffa444dcbcebaa8d7d58f
treeb57b32d9b3d74a15fc5d6714ae2a8cebb0caf0c8
parent46c9042fbc098322c9978fdb440dfa48642ee643
isisd: fix dangling instances

We only need an instance when we have at least one area configured in a
VRF. Currently we have the following issues:
- instance for the default VRF is always created
- instance is not removed after the last area config is removed

This commit fixes both issues.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_main.c
isisd/isis_nb_config.c
isisd/isisd.c
tests/isisd/test_isis_spf.c