From 22fba825c57ed336bca64ff154bbd911bc6754d5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 25 Oct 2008 08:49:54 -0700 Subject: Add qos-policy hooks for vif over serial Bugfix 3475 Need more templates for vif over serial --- .../node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def | 9 +++++++++ .../node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def | 8 ++++++++ .../serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def create mode 100644 templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def create mode 100644 templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def 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(.) -- cgit v1.2.3