diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-07-15 19:32:05 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-07-15 19:37:21 +0900 |
commit | f926984386bbdd67846b25004cf68ca276ed84b6 (patch) | |
tree | 259a26a10f9e9d447cef008e33347d161741553a /tools/completion | |
parent | c4064ae433e4232ae0649ac723fdc1c80b953c13 (diff) |
cli: update bash completion
Diffstat (limited to 'tools/completion')
-rw-r--r-- | tools/completion/gobgp-completion.bash | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tools/completion/gobgp-completion.bash b/tools/completion/gobgp-completion.bash index c1c704c1..7b706323 100644 --- a/tools/completion/gobgp-completion.bash +++ b/tools/completion/gobgp-completion.bash @@ -630,6 +630,81 @@ _gobgp_policy_community() must_have_one_noun=() } +_gobgp_policy_extcommunity_add() +{ + last_command="gobgp_policy_extcommunity_add" + commands=() + + flags=() + two_word_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + + must_have_one_flag=() + must_have_one_noun=() +} + +_gobgp_policy_extcommunity_del_all() +{ + last_command="gobgp_policy_extcommunity_del_all" + commands=() + + flags=() + two_word_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + + must_have_one_flag=() + must_have_one_noun=() +} + +_gobgp_policy_extcommunity_del() +{ + last_command="gobgp_policy_extcommunity_del" + commands=() + commands+=("all") + q_type="extcommunity" + __gobgp_q_policy + + flags=() + two_word_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + + must_have_one_flag=() + must_have_one_noun=() +} + +_gobgp_policy_extcommunity() +{ + last_command="gobgp_policy_extcommunity" + commands=() + commands+=("add") + commands+=("del") + q_type="extcommunity" + __gobgp_q_policy + + flags=() + two_word_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--help") + flags+=("-h") + + must_have_one_flag=() + must_have_one_noun=() +} + _gobgp_policy_routepolicy_add_state() { last_command="gobgp_policy_routepolicy_add_stat" @@ -644,10 +719,12 @@ _gobgp_policy_routepolicy_add_state() flags+=("--a-community=") flags+=("--a-med=") + flags+=("--a-asprepend=") flags+=("--a-route=") flags+=("--c-aslen=") flags+=("--c-aspath=") flags+=("--c-community=") + flags+=("--c-extcommunity=") flags+=("--c-neighbor=") flags+=("--c-option=") flags+=("--c-prefix=") @@ -672,10 +749,12 @@ _gobgp_policy_routepolicy_add() flags+=("--a-community=") flags+=("--a-med=") + flags+=("--a-asprepend=") flags+=("--a-route=") flags+=("--c-aslen=") flags+=("--c-aspath=") flags+=("--c-community=") + flags+=("--c-extcommunity=") flags+=("--c-neighbor=") flags+=("--c-option=") flags+=("--c-prefix=") @@ -752,6 +831,7 @@ _gobgp_policy() commands+=("neighbor") commands+=("aspath") commands+=("community") + commands+=("extcommunity") commands+=("routepolicy") flags=() |