From 8132689b6e461ad068746741bfec1bd82efbe915 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 12 Feb 2008 16:46:52 -0800 Subject: add templates for dscp setting Add templates for hooks to set-dscp value with dsmark --- .../node.tag/class/node.tag/match/node.tag/ip/dscp/node.def | 2 +- .../traffic-shaper/node.tag/class/node.tag/set-dscp/node.def | 6 ++++++ .../qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 templates/qos-policy/traffic-shaper/node.tag/class/node.tag/set-dscp/node.def create mode 100644 templates/qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def (limited to 'templates') 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 cdd4260..2d5395e 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 @@ -3,4 +3,4 @@ help: Match DSCP (formerly known as TOS) value 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 standard name from /etc/iproute2/rt_dsfield +or name from /etc/iproute2/rt_dsfield diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/set-dscp/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/set-dscp/node.def new file mode 100644 index 0000000..002699f --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/set-dscp/node.def @@ -0,0 +1,6 @@ +type: txt +help: Change the Differentiated Services (DiffServ) field in the IP header +syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dscp \"$VAR(@)\"" +comp_help: New Differentiated Services Condepoint (DSCP) value + decimal number (or 0x for hex) +or name from /etc/iproute2/rt_dsfield diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def new file mode 100644 index 0000000..002699f --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/set-dscp/node.def @@ -0,0 +1,6 @@ +type: txt +help: Change the Differentiated Services (DiffServ) field in the IP header +syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dscp \"$VAR(@)\"" +comp_help: New Differentiated Services Condepoint (DSCP) value + decimal number (or 0x for hex) +or name from /etc/iproute2/rt_dsfield -- cgit v1.2.3