summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-10-16 23:26:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-16 23:44:12 +0200
commitd762bcc370005b69f8230536e535f77f54a74c88 (patch)
treeb19960766195aa11381a74892f221eb4877d5514 /bgpd/bgp_vty.c
parentMerge pull request #3179 from donaldsharp/vni_cmp (diff)
downloadfrr-d762bcc370005b69f8230536e535f77f54a74c88.tar.xz
frr-d762bcc370005b69f8230536e535f77f54a74c88.zip
bgpd: Add a better breadcrumb for interface based peers
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>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 5af9f7e24..c5d299395 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -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;