summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d/20vyatta-cfg
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bash_completion.d/20vyatta-cfg')
-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>'
;;