diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 15:49:18 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 15:49:18 -0800 |
commit | 36e0076e2b9c2d3fd30b0dc1016634c264b526a4 (patch) | |
tree | cafd5341eef5aef8aa29374618dfb7c6f202eae8 | |
parent | 5f18bd9d54986c80cd20dfb191f6c3dbad5c63d7 (diff) | |
download | vyatta-cfg-qos-36e0076e2b9c2d3fd30b0dc1016634c264b526a4.tar.gz vyatta-cfg-qos-36e0076e2b9c2d3fd30b0dc1016634c264b526a4.zip |
tab completion for protocol values
Add tab completion for values in /etc/protocols and completion help.
Bugfix: 2972
-rw-r--r-- | templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def index 8eb9dbb..2b1b894 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def @@ -1,3 +1,17 @@ type: txt help: Match IP protocol name or number syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --protocol \"$VAR(@)\"" +allowed: awk ' + /^#/ { next } + { printf "%s ", $1 }' </etc/protocols +comp_help: <0-255> IP protocol value or name +Common names: + icmp Internet Control Message Protocol + igmp Internet Group Management + ggp Gateway-Gateway protocol + tcp Transmission Control Protocol + egp Exterior Gateway Protocol + udp User Datagram Protocol + gre General Routing Encapsulation + ospf Open Shortest Path First IGP + sctp Stream Control Transmission Protocol |