summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 08:26:41 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 08:26:41 -0700
commit678eb9f588b8dde7f9ce4f7049728cfc5d627776 (patch)
tree270a447a715dbe747a6bfe51fcf02a7b9cfe7f16
parent6b828ffee87a7cf5f4ccd0b6921f1b3655892f01 (diff)
downloadvyatta-cfg-qos-678eb9f588b8dde7f9ce4f7049728cfc5d627776.tar.gz
vyatta-cfg-qos-678eb9f588b8dde7f9ce4f7049728cfc5d627776.zip
Add qos-policies for bond devices
Per design, add qos-policy support for bonding trunk devices.
-rw-r--r--templates/interfaces/bonding/node.tag/qos-policy/node.def1
-rw-r--r--templates/interfaces/bonding/node.tag/qos-policy/out/node.def6
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def1
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def9
4 files changed, 17 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/qos-policy/node.def b/templates/interfaces/bonding/node.tag/qos-policy/node.def
new file mode 100644
index 0000000..28cffea
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/qos-policy/node.def
@@ -0,0 +1 @@
+help: Set Quality of Service (QoS) policy for specified bonding interface
diff --git a/templates/interfaces/bonding/node.tag/qos-policy/out/node.def b/templates/interfaces/bonding/node.tag/qos-policy/out/node.def
new file mode 100644
index 0000000..ec96f0f
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/qos-policy/out/node.def
@@ -0,0 +1,6 @@
+type: txt
+help: Set output QOS policy for specified bonding interface
+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(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface $VAR(../../@) $VAR(.)
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def
new file mode 100644
index 0000000..2c0cf7a
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def
@@ -0,0 +1 @@
+help: Configure qos-policy
diff --git a/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def
new file mode 100644
index 0000000..df0ea43
--- /dev/null
+++ b/templates/interfaces/bonding/node.tag/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(.)
+ sudo ip link set dev $VAR(../../../@).$VAR(../../@) txqueuelen 0