mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
cli: update bash-completion for show commands of policy
This commit is contained in:
committed by
FUJITA Tomonori
parent
749df65ac9
commit
cd4412ae53
+4
-4
@@ -76,9 +76,9 @@ enum Resource {
|
||||
LOCAL = 1;
|
||||
ADJ_IN = 2;
|
||||
ADJ_OUT = 3;
|
||||
POLICY_PREFIX = 4;
|
||||
POLICY_NEIGHBOR = 5;
|
||||
POLICY_ROUTEPOLICY = 6;
|
||||
POLICY_PREFIX = 4;
|
||||
POLICY_NEIGHBOR = 5;
|
||||
POLICY_ROUTEPOLICY = 6;
|
||||
}
|
||||
|
||||
enum Operation {
|
||||
@@ -403,4 +403,4 @@ message ApplyPolicy {
|
||||
int64 default_import_policy = 2;
|
||||
repeated PolicyDefinition export_policies = 3;
|
||||
int64 default_export_policy = 4;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user