From cab69e3f3d0e2a10eb2e731bb6294d8d80b87fd7 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 15 Sep 2022 17:18:42 +0200 Subject: [PATCH] pathd: 'no mpls-te on' command was not working Fix the 'no mpls-te on' command. Signed-off-by: Philippe Guibert --- pathd/path_ted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathd/path_ted.c b/pathd/path_ted.c index 270c664daf..7afa1468a1 100644 --- a/pathd/path_ted.c +++ b/pathd/path_ted.c @@ -385,7 +385,7 @@ DEFUN (no_path_ted, "Disable the TE Database functionality\n") /* clang-format on */ { - if (ted_state_g.enabled) { + if (!ted_state_g.enabled) { PATH_TED_DEBUG("%s: PATHD-TED: OFF -> OFF", __func__); return CMD_SUCCESS; }