mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +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;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vty_out (vty, "mpls-te has not been turned on%s", VTY_NEWLINE);
|
||||||
|
return CMD_WARNING;
|
||||||
|
}
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user