summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-10-11 19:32:08 +0200
committerGitHub <noreply@github.com>2022-10-11 19:32:08 +0200
commitcecab72057abfcb695aa5bcd433db0b25d586a3a (patch)
tree47c378df05fdd0d359613679f796bd6f97a6c2ac
parent72cf07cc8df5623c30bcd61fa830ecbcd275e1cc (diff)
parent7b61f206203668b6632b49f0a1465de349ff0750 (diff)
downloadvyos-1x-cecab72057abfcb695aa5bcd433db0b25d586a3a.tar.gz
vyos-1x-cecab72057abfcb695aa5bcd433db0b25d586a3a.zip
Merge pull request #1580 from aapostoliuk/T4492-sagitta
bgp: T4492: Fixed output list in "show bgp vrf VRF neighbors"
-rw-r--r--op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i b/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i
index d2804e3b3..7dbc4fde5 100644
--- a/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i
+++ b/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i
@@ -153,7 +153,7 @@
<properties>
<help>Show BGP information for specified neighbor</help>
<completionHelp>
- <script>vtysh -c 'show bgp summary' | awk '{print $1'} | grep -e '^[0-9a-f]'</script>
+ <script>vtysh -c "$(IFS=$' '; echo "${COMP_WORDS[@]:0:${#COMP_WORDS[@]}-2} summary")" | awk '/^[0-9a-f]/ {print $1}'</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>