From 46c8ef96a3b12b643f7ed6249de36888b881af5f Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Sat, 2 Feb 2019 10:00:09 -0200 Subject: [PATCH] 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 --- bfdd/bfdd_vty.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.5