From 678eb9f588b8dde7f9ce4f7049728cfc5d627776 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 24 Oct 2008 08:26:41 -0700 Subject: Add qos-policies for bond devices Per design, add qos-policy support for bonding trunk devices. --- templates/interfaces/bonding/node.tag/qos-policy/node.def | 1 + templates/interfaces/bonding/node.tag/qos-policy/out/node.def | 6 ++++++ .../interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def | 1 + .../bonding/node.tag/vif/node.tag/qos-policy/out/node.def | 9 +++++++++ 4 files changed, 17 insertions(+) create mode 100644 templates/interfaces/bonding/node.tag/qos-policy/node.def create mode 100644 templates/interfaces/bonding/node.tag/qos-policy/out/node.def create mode 100644 templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/node.def create mode 100644 templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def (limited to 'templates') 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 -- cgit v1.2.3