summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-28 10:12:11 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-28 10:12:11 -0700
commit2e676eab9d35e8faf0df8676fc832c3178ff3feb (patch)
tree6468dad73283e047ad18eb5c09af61c679bb2d66
parent729c7c04e7fd020ec823cef1d954ed2695ff68b5 (diff)
downloadvyatta-cfg-2e676eab9d35e8faf0df8676fc832c3178ff3feb.tar.gz
vyatta-cfg-2e676eab9d35e8faf0df8676fc832c3178ff3feb.zip
Add range and ipv6range as val_help types
This usage is common in firewall code.
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index cb5e0dc..44e8fb5 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -837,6 +837,9 @@ get_value_format_string ()
u32:*)
echo -n "<${vtype##u32:}>"
;;
+ range)
+ echo -n "<start>-<end>"
+ ;;
ipv4)
echo -n '<x.x.x.x>'
;;
@@ -852,6 +855,9 @@ get_value_format_string ()
ipv4range)
echo -n '<x.x.x.x>-<x.x.x.x>'
;;
+ ipv6range)
+ echo -n '<h:h:h:h:h:h:h:h>-<h:h:h:h:h:h:h:h>'
+ ;;
bool)
echo -n '<boolean>'
;;