summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-21 10:01:09 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-21 10:01:09 -0700
commitbd6e7215acb683e183e4cf70e21bcb68689c804b (patch)
tree862c73b10b9586e8e42a46d83d09542be1856a08 /etc
parente235853656aebff8a39e11391f27c0b4d36c3e8a (diff)
downloadvyatta-cfg-bd6e7215acb683e183e4cf70e21bcb68689c804b.tar.gz
vyatta-cfg-bd6e7215acb683e183e4cf70e21bcb68689c804b.zip
support ipv4range and ! in val_help
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 470b54d..d14e9eb 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -820,6 +820,10 @@ is_setting_new_leaf ()
get_value_format_string ()
{
local vtype=$1
+ if [[ $vtype = !* ]]; then
+ echo -n '!'
+ vtype="${vtype#!}"
+ fi
case "$vtype" in
_*)
echo -n "${vtype#_}"
@@ -845,6 +849,9 @@ get_value_format_string ()
ipv6net)
echo -n '<h:h:h:h:h:h:h:h/x>'
;;
+ ipv4range)
+ echo -n '<x.x.x.x>-<x.x.x.x>'
+ ;;
bool)
echo -n '<boolean>'
;;