diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-04 20:54:11 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-04 20:54:11 +0200 |
commit | 89db4e6cb9363527666f98f96548f5bd262c9434 (patch) | |
tree | 604d3a4d8714b50b74b9f2dd1d56f6a770038d40 /src/completion | |
parent | 6330708f7ad50e56b16e1c7bc671eaddcd758bdb (diff) | |
download | vyos-1x-89db4e6cb9363527666f98f96548f5bd262c9434.tar.gz vyos-1x-89db4e6cb9363527666f98f96548f5bd262c9434.zip |
bgp: T1711: fix completion helpers after as number cli change
Diffstat (limited to 'src/completion')
-rwxr-xr-x | src/completion/list_bgp_neighbors.sh | 3 | ||||
-rwxr-xr-x | src/completion/list_bgp_peer_groups.sh | 3 |
2 files changed, 2 insertions, 4 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[@]} diff --git a/src/completion/list_bgp_peer_groups.sh b/src/completion/list_bgp_peer_groups.sh index 4503d608f..1684271f8 100755 --- a/src/completion/list_bgp_peer_groups.sh +++ b/src/completion/list_bgp_peer_groups.sh @@ -16,8 +16,7 @@ # Return BGP peer-groups from CLI declare -a vals -eval "bgp_as=$(cli-shell-api listNodes protocols bgp)" -eval "vals=($(cli-shell-api listNodes protocols bgp $bgp_as peer-group))" +eval "vals=($(cli-shell-api listNodes protocols bgp peer-group))" echo -n ${vals[@]} exit 0 |