diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-03-08 17:49:50 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-03-08 17:49:50 -0700 |
commit | b9b2f7ade2fee7b99653b512fe3d573466f68c1c (patch) | |
tree | 4228a90f66a8f8a682ec33cb11c12a0f23fd858b /templates/show/vrrp | |
parent | 28f5a2693e7e5b9aeff0527ce785215293696513 (diff) | |
download | vyatta-op-b9b2f7ade2fee7b99653b512fe3d573466f68c1c.tar.gz vyatta-op-b9b2f7ade2fee7b99653b512fe3d573466f68c1c.zip |
Fix 4183: no auto completion for 'clear vrrp interfaces <> group ?'.
Need to find a better way to pass vars than $COMP_WORDS{}.
Diffstat (limited to 'templates/show/vrrp')
-rw-r--r-- | templates/show/vrrp/interface/node.tag/group/node.tag/node.def | 2 | ||||
-rw-r--r-- | templates/show/vrrp/interface/node.tag/node.def | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/templates/show/vrrp/interface/node.tag/group/node.tag/node.def b/templates/show/vrrp/interface/node.tag/group/node.tag/node.def index cf74912..de7eb12 100644 --- a/templates/show/vrrp/interface/node.tag/group/node.tag/node.def +++ b/templates/show/vrrp/interface/node.tag/group/node.tag/node.def @@ -1,3 +1,3 @@ help: Show VRRP information for specified interface and group -allowed: echo -n '<VRRP_GROUP>' +allowed: /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action=list-vrrp-group --intf "${COMP_WORDS[COMP_CWORD-2]}" run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl "$4" "$6" diff --git a/templates/show/vrrp/interface/node.tag/node.def b/templates/show/vrrp/interface/node.tag/node.def index f403060..1defd31 100644 --- a/templates/show/vrrp/interface/node.tag/node.def +++ b/templates/show/vrrp/interface/node.tag/node.def @@ -1,5 +1,3 @@ help: Show VRRP information for specified interface -allowed: local -a array ; - array=( /sys/class/net/eth* ) ; - echo -n ${array[@]##*/} +allowed: /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action=list-vrrp-intf run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl "$4" |