From 2ca3a78b6835e4009913cbb8eb67f070bf1595b4 Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Wed, 7 Feb 2018 15:30:55 -0800 Subject: [PATCH] bgpd: enunciate the error message if user tries to configure 'router bgp' We need a better error message. "Multiple BGP processes are configured" doesnt makes sense anymore as with l3vni, we could have multiple auto configured bgp instances. Signed-off-by: Mitesh Kanjariya --- bgpd/bgp_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 4a8eeb9121..6c06d72eb4 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -833,7 +833,7 @@ DEFUN_NOSH (router_bgp, if (listcount(bm->bgp) > 1) { vty_out(vty, - "%% Multiple BGP processes are configured\n"); + "%% Please specify ASN and VRF\n"); return CMD_WARNING_CONFIG_FAILED; } } @@ -909,7 +909,7 @@ DEFUN (no_router_bgp, if (listcount(bm->bgp) > 1) { vty_out(vty, - "%% Multiple BGP processes are configured\n"); + "%% Please specify ASN and VRF\n"); return CMD_WARNING_CONFIG_FAILED; } -- 2.39.5