summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-09-15 17:18:42 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2022-09-20 14:10:42 +0200
commitcab69e3f3d0e2a10eb2e731bb6294d8d80b87fd7 (patch)
tree97fb03741f4b613989f8e66b7f960319e2e0878b
parent0be32df16ed3748f4078ccaa36005915ff3e5c27 (diff)
pathd: 'no mpls-te on' command was not working
Fix the 'no mpls-te on' command. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--pathd/path_ted.c2
1 files changed, 1 insertions, 1 deletions
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;
}