From: Rafael Zalamena Date: Sat, 2 Feb 2019 12:00:09 +0000 (-0200) Subject: bfdd: don't allow VRF for single hop session X-Git-Tag: 7.1_pulled~230^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=46c8ef96a3b12b643f7ed6249de36888b881af5f;p=mirror%2Ffrr.git bfdd: don't allow VRF for single hop session Single hop sessions already allow you to select the interface, which should be enough to determine the VRF we are running in. Signed-off-by: Rafael Zalamena --- diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c index 8d99ccc693..ed1c434c8e 100644 --- a/bfdd/bfdd_vty.c +++ b/bfdd/bfdd_vty.c @@ -131,6 +131,10 @@ DEFUN_NOSH( vty_out(vty, "%% VRF is not mixable with interface\n"); return CMD_WARNING_CONFIG_FAILED; } + if (vrfname && !mhop) { + vty_out(vty, "%% VRF only applies with multihop.\n"); + return CMD_WARNING_CONFIG_FAILED; + } strtosa(peer, &psa); if (local) {