diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2022-10-17 18:40:42 +0200 | 
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2022-10-24 13:48:49 +0200 | 
| commit | ca94e8d3a205dfb7a42a22e16d62eab6e8358027 (patch) | |
| tree | 1355fc4adedfc080ae86079ae1c306421cdc49bc /isisd/isis_te.c | |
| parent | 78d905be544770e6d5902ac93e34d8c296fb34a6 (diff) | |
isisd: fix recreating the LS TED after re-enabling MPLS TE
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>
Diffstat (limited to 'isisd/isis_te.c')
| -rw-r--r-- | isisd/isis_te.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_te.c b/isisd/isis_te.c index c7a179255c..155d1e6fed 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -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)) {  | 
