diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-05-15 10:40:51 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-05-19 16:33:16 +0900 |
commit | cd4412ae538542ca7dc7f599bc30b7ac2b14fbb2 (patch) | |
tree | 58114125d3e1713116e6e7f5d8917522cf334608 /tools/completion/gobgp-completion.bash | |
parent | 749df65ac97da627e8f35d91ea4e2fe585b88d5d (diff) |
cli: update bash-completion for show commands of policy
Diffstat (limited to 'tools/completion/gobgp-completion.bash')
-rw-r--r-- | tools/completion/gobgp-completion.bash | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/completion/gobgp-completion.bash b/tools/completion/gobgp-completion.bash index e4630690..face1a80 100644 --- a/tools/completion/gobgp-completion.bash +++ b/tools/completion/gobgp-completion.bash @@ -20,7 +20,7 @@ __search_target() { } __gobgp_table_list() { - local targets=("local adj-in adj-out reset softreset softresetin softresetout shutdown enable disable") + local targets=("local adj-in adj-out reset softreset softresetin softresetout shutdown enable disable policy") local target="$(__search_target "$targets")" if [ -z "$target" ]; then case "$cur" in @@ -91,6 +91,15 @@ _gobgp_neighbor() { fi } + +_gobgp_policy_routepolicy(){ + return +} + +_gobgp_policy_neighbor(){ + return +} + _gobgp_policy_prefix_add(){ return } @@ -122,7 +131,7 @@ _gobgp_policy_prefix(){ } _gobgp_policy() { - local targets="prefix" + local targets="prefix neighbor routepolicy" local target="$(__search_target "$targets")" if [ -z "$target" ]; then case "$cur" in |