summaryrefslogtreecommitdiff
path: root/src/completion/list_bgp_neighbors.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-04 20:54:11 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-04 20:54:11 +0200
commit89db4e6cb9363527666f98f96548f5bd262c9434 (patch)
tree604d3a4d8714b50b74b9f2dd1d56f6a770038d40 /src/completion/list_bgp_neighbors.sh
parent6330708f7ad50e56b16e1c7bc671eaddcd758bdb (diff)
downloadvyos-1x-89db4e6cb9363527666f98f96548f5bd262c9434.tar.gz
vyos-1x-89db4e6cb9363527666f98f96548f5bd262c9434.zip
bgp: T1711: fix completion helpers after as number cli change
Diffstat (limited to 'src/completion/list_bgp_neighbors.sh')
-rwxr-xr-xsrc/completion/list_bgp_neighbors.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/completion/list_bgp_neighbors.sh b/src/completion/list_bgp_neighbors.sh
index 77c626452..f74f102ef 100755
--- a/src/completion/list_bgp_neighbors.sh
+++ b/src/completion/list_bgp_neighbors.sh
@@ -30,8 +30,7 @@ while [[ "$#" -gt 0 ]]; do
done
declare -a vals
-eval "bgp_as=$(cli-shell-api listActiveNodes protocols bgp)"
-eval "vals=($(cli-shell-api listActiveNodes protocols bgp $bgp_as neighbor))"
+eval "vals=($(cli-shell-api listActiveNodes protocols bgp neighbor))"
if [ $ipv4 -eq 1 ] && [ $ipv6 -eq 1 ]; then
echo -n '<x.x.x.x>' '<h:h:h:h:h:h:h:h>' ${vals[@]}