From: Donatas Abraitis Date: Wed, 27 Nov 2019 19:44:46 +0000 (+0200) Subject: bgpd: Autocomplete neighbor for clear bgp X-Git-Tag: frr-7.2.1~15^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8caad8e501cb83582492fa16da05b11bc1b08ec8;p=matthieu%2Ffrr.git bgpd: Autocomplete neighbor for clear bgp Signed-off-by: Donatas Abraitis (cherry picked from commit 453c92f6e2a981d024ec3433e804c02bd70f2a13) --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e96d2405b2..381a0c1776 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -7317,7 +7317,7 @@ static int bgp_clear_prefix(struct vty *vty, const char *view_name, /* one clear bgp command to rule them all */ DEFUN (clear_ip_bgp_all, clear_ip_bgp_all_cmd, - "clear [ip] bgp [ VIEWVRFNAME] [ []] <*|A.B.C.D|X:X::X:X|WORD|(1-4294967295)|external|peer-group PGNAME> []|in [prefix-filter]|out>]", + "clear [ip] bgp [ VIEWVRFNAME] [ []] <*|A.B.C.D$neighbor|X:X::X:X$neighbor|WORD$neighbor|(1-4294967295)|external|peer-group PGNAME> []|in [prefix-filter]|out>]", CLEAR_STR IP_STR BGP_STR @@ -7327,7 +7327,7 @@ DEFUN (clear_ip_bgp_all, BGP_SAFI_WITH_LABEL_HELP_STR "Address Family modifier\n" "Clear all peers\n" - "BGP neighbor address to clear\n" + "BGP IPv4 neighbor to clear\n" "BGP IPv6 neighbor to clear\n" "BGP neighbor on interface to clear\n" "Clear peers with the AS number\n"