summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/bgp
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2022-10-09 21:00:27 +0300
committeraapostoliuk <a.apostoliuk@vyos.io>2022-10-10 14:09:02 +0300
commit7b61f206203668b6632b49f0a1465de349ff0750 (patch)
treec34eec607f0a19613f47470efb1bf9a3862ac61a /op-mode-definitions/include/bgp
parent50f26c54d095420907a1d31168c162ad3c27ee36 (diff)
downloadvyos-1x-7b61f206203668b6632b49f0a1465de349ff0750.tar.gz
vyos-1x-7b61f206203668b6632b49f0a1465de349ff0750.zip
bgp: T4492: Fixed output list in "show bgp vrf VRF neighbors"
Fixed output list of neighbors in help for "show bgp vrf VRF neighbors"
Diffstat (limited to 'op-mode-definitions/include/bgp')
-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>