]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: enunciate the error message if user tries to configure 'router bgp'
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Wed, 7 Feb 2018 23:30:55 +0000 (15:30 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Fri, 9 Feb 2018 07:02:28 +0000 (23:02 -0800)
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>
bgpd/bgp_vty.c

index 4a8eeb9121447b54fafd3cb465224038fed0388c..6c06d72eb48144f88607f873f4a781568f3cc09b 100644 (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;
                }