From eacbdd4f0b986b9598cf7f5b38dcac01aabbdab3 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 27 Oct 2008 09:39:12 -0700 Subject: Fix QoS on Vif Handle Vif on serial. Can't have update and create tag. --- .../serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def | 5 +++-- .../serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def | 5 +++-- .../serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'templates/interfaces/serial') 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 index f4b7221..2f92a3b 100644 --- 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 @@ -1,9 +1,10 @@ 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: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100 + /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 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 index 905c3b5..67482aa 100644 --- 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 @@ -1,8 +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: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100 + /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 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 index 905c3b5..67482aa 100644 --- 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 @@ -1,8 +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: sudo ip link set dev $VAR(../../../../@).$VAR(../../@) txqueuelen 100 + /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