diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2018-05-23 08:09:59 -0400 |
|---|---|---|
| committer | Don Slice <dslice@cumulusnetworks.com> | 2018-05-24 10:51:17 -0400 |
| commit | 88b7d2555c577a9ba947f3043a33cdf6b90776a7 (patch) | |
| tree | 77898c6e263a3dcd12377f5d58bb1a3a6a3617aa | |
| parent | 19300af8f26be3b34041f90944c6fc07ad138fe1 (diff) | |
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 <dslice@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
