mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
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:
parent
4f4caaa139
commit
5980c3a268
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user