]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Add a better breadcrumb for interface based peers 3191/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 16 Oct 2018 21:26:21 +0000 (17:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 16 Oct 2018 21:44:12 +0000 (17:44 -0400)
If you are using bgp unnumbered( or interface based peers )
when we detect an error give the user a bit more of a clue
what they may have done wrong.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c

index 5af9f7e24c69b812393ede7724846749f3fcd586..c5d29939510d8047bf80d81e0c25f106fbdf4fab 100644 (file)
@@ -2740,7 +2740,8 @@ static int peer_remote_as_vty(struct vty *vty, const char *peer_str,
                        ret = peer_group_remote_as(bgp, peer_str, &as, as_type);
                        if (ret < 0) {
                                vty_out(vty,
-                                       "%% Create the peer-group or interface first\n");
+                                       "%% Create the peer-group or interface first or specify \"interface\" keyword\n");
+                               vty_out(vty, "%% if using an unnumbered interface neighbor\n");
                                return CMD_WARNING_CONFIG_FAILED;
                        }
                        return CMD_SUCCESS;