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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-10-25 15:02:41 -04:00
parent 4f4caaa139
commit 5980c3a268

View File

@ -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;
}