From 88b7d2555c577a9ba947f3043a33cdf6b90776a7 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Wed, 23 May 2018 08:09:59 -0400 Subject: [PATCH] bgpd: improve error message for neighbor not found Problem reported due to tab completion showing all possible peers in every vrf, but when neighbor in wrong vrf entered "no such neighbor" is the error message. Making it slightly more clear with "no such neighbor in the view/vrf" to clue the user that they may have specified the wrong vrf. Signed-off-by: Don Slice --- bgpd/bgp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index f4f4e63264..a81a83edde 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -10655,7 +10655,7 @@ static int bgp_show_neighbor(struct vty *vty, struct bgp *bgp, if (use_json) json_object_boolean_true_add(json, "bgpNoSuchNeighbor"); else - vty_out(vty, "%% No such neighbor\n"); + vty_out(vty, "%% No such neighbor in this view/vrf\n"); } if (use_json) {