summaryrefslogtreecommitdiff
path: root/etc
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:18:29 -0700
commit0247864ef578ac05bbac8dc5175e674ce7b82714 (patch)
tree320f3a6ada018706aaf2cc974b14bc1c4ca6b449 /etc
parent935f1ce7ee4d4312d6d831eae31cf8448013ec05 (diff)
downloadvyatta-cfg-0247864ef578ac05bbac8dc5175e674ce7b82714.tar.gz
vyatta-cfg-0247864ef578ac05bbac8dc5175e674ce7b82714.zip
Add range and ipv6range as val_help types
This usage is common in firewall code. (cherry picked from commit 2e676eab9d35e8faf0df8676fc832c3178ff3feb)
Diffstat (limited to 'etc')
-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 741c2c2..b36c3cf 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -845,6 +845,9 @@ get_value_format_string ()
u32:*)
echo -n "<${vtype##u32:}>"
;;
+ range)
+ echo -n "<start>-<end>"
+ ;;
ipv4)
echo -n '<x.x.x.x>'
;;
@@ -860,6 +863,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>'
;;