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 <mitesh@cumulusnetworks.com>
This commit is contained in:
Mitesh Kanjariya 2018-02-07 15:30:55 -08:00 committed by mitesh
parent 25f2ca5307
commit 2ca3a78b68

View File

@ -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;
}