From a39ee11767413589386ac0c3c8c5d442aa8cf487 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 1 Mar 2008 09:02:54 -0800 Subject: autocompletion for dscp field names Bugfix: 2931 Tab completion for possible dscp field values. --- .../node.tag/class/node.tag/match/node.tag/ip/dscp/node.def | 3 +++ .../traffic-shaper/node.tag/class/node.tag/set-dscp/node.def | 4 ++++ .../qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def | 3 +++ 3 files changed, 10 insertions(+) (limited to 'templates/qos-policy') diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dscp/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dscp/node.def index 2d5395e..7a6e52e 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dscp/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dscp/node.def @@ -4,3 +4,6 @@ syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dscp \"$VAR(@)\"" comp_help: Differentiated Services Condepoint (DSCP) value decimal number (or 0x for hex) or name from /etc/iproute2/rt_dsfield +allowed: awk ' + /^#/ { next } + { printf "%s ", $2 }' decimal number (or 0x for hex) or name from /etc/iproute2/rt_dsfield +allowed: awk ' + /^#/ { next } + { printf "%s ", $2 }' decimal number (or 0x for hex) or name from /etc/iproute2/rt_dsfield +allowed: awk ' + /^#/ { next } + { printf "%s ", $2 }'