summaryrefslogtreecommitdiff
path: root/templates/qos-policy
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-07 15:49:18 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-07 15:49:18 -0800
commit36e0076e2b9c2d3fd30b0dc1016634c264b526a4 (patch)
treecafd5341eef5aef8aa29374618dfb7c6f202eae8 /templates/qos-policy
parent5f18bd9d54986c80cd20dfb191f6c3dbad5c63d7 (diff)
downloadvyatta-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
Diffstat (limited to 'templates/qos-policy')
-rw-r--r--templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def14
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