From: Mitesh Kanjariya Date: Wed, 7 Feb 2018 23:30:55 +0000 (-0800) Subject: bgpd: enunciate the error message if user tries to configure 'router bgp' X-Git-Tag: frr-5.0-dev~191^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2ca3a78b6835e4009913cbb8eb67f070bf1595b4;p=mirror%2Ffrr.git 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 --- 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; }