summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-25 08:49:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-25 08:49:54 -0700
commit22fba825c57ed336bca64ff154bbd911bc6754d5 (patch)
treedd8d6de1ec78794604f35a487a16b5650ce5fff2
parent997cede7fab22ff119a03bd2c0bdb08fbed1dec9 (diff)
downloadvyatta-cfg-qos-22fba825c57ed336bca64ff154bbd911bc6754d5.tar.gz
vyatta-cfg-qos-22fba825c57ed336bca64ff154bbd911bc6754d5.zip
Add qos-policy hooks for vif over serial
Bugfix 3475 Need more templates for vif over serial
-rw-r--r--templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def9
-rw-r--r--templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def8
-rw-r--r--templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def8
3 files changed, 25 insertions, 0 deletions
diff --git a/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def b/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def
new file mode 100644
index 0000000..f4b7221
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def
@@ -0,0 +1,9 @@
+type: txt
+help: Set outbound QOS policy
+allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out
+create: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100
+update: /opt/vyatta/sbin/vyatta-qos.pl \
+ --update-interface $VAR(../../../../@).$VAR(../../@) $VAR(.) $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl \
+ --delete-interface $VAR(../../../../@).$VAR(../../@) $VAR(.)
+
diff --git a/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def b/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def
new file mode 100644
index 0000000..905c3b5
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: Set outbound QOS policy
+allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out
+create: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100
+update: /opt/vyatta/sbin/vyatta-qos.pl \
+ --update-interface $VAR(../../../../@).$VAR(../../@) $VAR(.) $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl \
+ --delete-interface $VAR(../../../../@).$VAR(../../@) $VAR(.)
diff --git a/templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def b/templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def
new file mode 100644
index 0000000..905c3b5
--- /dev/null
+++ b/templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: Set outbound QOS policy
+allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out
+create: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100
+update: /opt/vyatta/sbin/vyatta-qos.pl \
+ --update-interface $VAR(../../../../@).$VAR(../../@) $VAR(.) $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl \
+ --delete-interface $VAR(../../../../@).$VAR(../../@) $VAR(.)