]> git.proxmox.com Git - mirror_frr.git/commitdiff
pathd: 'no mpls-te on' command was not working
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 15 Sep 2022 15:18:42 +0000 (17:18 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 20 Sep 2022 12:10:42 +0000 (14:10 +0200)
Fix the 'no mpls-te on' command.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
pathd/path_ted.c

index 270c664dafb4ad86b3d2ab72d29dd08d79057df9..7afa1468a13c12e6a2f0e5bdfe3adb2187a113de 100644 (file)
@@ -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;
        }