From 5980c3a2682fcf6fa4139f0ff76d10dec3fe3f3a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 25 Oct 2016 15:02:41 -0400 Subject: [PATCH] ospfd: Dissallow mpls-te commands unless mpls-te has been turned on If ospf mpls-te has not been turned on via a 'mpls-te on' dissallow other mpls-te commands from being silently accepted and ignored. Signed-off-by: Donald Sharp --- ospfd/ospf_te.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index c672500368..60fb7132cc 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -2457,6 +2457,11 @@ set_inter_as_mode (struct vty *vty, const char *mode_name, return CMD_WARNING; } } + else + { + vty_out (vty, "mpls-te has not been turned on%s", VTY_NEWLINE); + return CMD_WARNING; + } return CMD_SUCCESS; } -- 2.39.5