]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix recreating the LS TED after re-enabling MPLS TE
authorLouis Scalbert <louis.scalbert@6wind.com>
Mon, 17 Oct 2022 16:40:42 +0000 (18:40 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Mon, 24 Oct 2022 11:48:49 +0000 (13:48 +0200)
When disabling and re-enabling the "mpls-te on" command, the LS TED
database is deleted but not re-created.

Cleanup the LS TED database instead of deleting it when disabling
"mpls-te".

Fixes: 1fa6385040.. ("isisd: Correct Valgrind errors")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
isisd/isis_te.c

index c7a179255c41aa02194ed11729b9604e1a38a295..155d1e6fed5a1d60923b369211dc5a1d68215b6e 100644 (file)
@@ -138,7 +138,7 @@ void isis_mpls_te_disable(struct isis_area *area)
        area->mta->status = disable;
 
        /* Remove Link State Database */
-       ls_ted_del_all(&area->mta->ted);
+       ls_ted_clean(area->mta->ted);
 
        /* Disable Extended SubTLVs on all circuit */
        for (ALL_LIST_ELEMENTS_RO(area->circuit_list, node, circuit)) {