From 6ab5a0589ac4f0359679edbd3982c130038dfc1d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 23 Sep 2008 15:50:41 -0700 Subject: Add incoming traffic limiting to Qos This adds support for Qos using incoming policing. It is accepts the syntax and processes commands, but is not fully debugged. Bugfix: 3664 --- .../node.tag/pvc/node.tag/classical-ipoa/qos-policy/out/node.def | 2 +- .../node.tag/pvc/node.tag/pppoa/node.tag/qos-policy/out/node.def | 2 +- .../node.tag/pvc/node.tag/pppoe/node.tag/qos-policy/out/node.def | 2 +- templates/interfaces/ethernet/node.tag/qos-policy/in/node.def | 5 +++++ templates/interfaces/ethernet/node.tag/qos-policy/out/node.def | 4 ++-- .../ethernet/node.tag/vif/node.tag/qos-policy/out/node.def | 2 +- templates/interfaces/ethernet/pppoe/node.tag/qos-policy/out/node.def | 2 +- templates/interfaces/serial/node.tag/qos-policy/in/node.def | 5 +++++ templates/interfaces/serial/node.tag/qos-policy/out/node.def | 2 +- 9 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 templates/interfaces/ethernet/node.tag/qos-policy/in/node.def create mode 100644 templates/interfaces/serial/node.tag/qos-policy/in/node.def (limited to 'templates/interfaces') diff --git a/templates/interfaces/adsl/node.tag/pvc/node.tag/classical-ipoa/qos-policy/out/node.def b/templates/interfaces/adsl/node.tag/pvc/node.tag/classical-ipoa/qos-policy/out/node.def index bf62f9e..b8c64de 100644 --- a/templates/interfaces/adsl/node.tag/pvc/node.tag/classical-ipoa/qos-policy/out/node.def +++ b/templates/interfaces/adsl/node.tag/pvc/node.tag/classical-ipoa/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt help: Set outbound QOS policy for specified ethernet interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out 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/adsl/node.tag/pvc/node.tag/pppoa/node.tag/qos-policy/out/node.def b/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoa/node.tag/qos-policy/out/node.def index dfbb888..54a968a 100644 --- a/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoa/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoa/node.tag/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt help: Set outbound QOS policy for specified ethernet interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface pppoa$VAR(../../@) $VAR(.) $VAR(@) delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface pppoa$VAR(../../@) $VAR(.) diff --git a/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoe/node.tag/qos-policy/out/node.def b/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoe/node.tag/qos-policy/out/node.def index 213d298..b61939d 100644 --- a/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoe/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/adsl/node.tag/pvc/node.tag/pppoe/node.tag/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt help: Set outbound QOS policy for specified ethernet interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface pppoe$VAR(../../@) $VAR(.) $VAR(@) delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface pppoe$VAR(../../@) $VAR(.) diff --git a/templates/interfaces/ethernet/node.tag/qos-policy/in/node.def b/templates/interfaces/ethernet/node.tag/qos-policy/in/node.def new file mode 100644 index 0000000..41f812f --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/qos-policy/in/node.def @@ -0,0 +1,5 @@ +type: txt +help: Set input QOS policy for specified ethernet interface +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy in +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/ethernet/node.tag/qos-policy/out/node.def b/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def index b4246b0..0b3d91a 100644 --- a/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt -help: Set outbound QOS policy for specified ethernet interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +help: Set output QOS policy for specified ethernet interface +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out 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/ethernet/node.tag/vif/node.tag/qos-policy/out/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/qos-policy/out/node.def index ba98afa..60f003a 100644 --- a/templates/interfaces/ethernet/node.tag/vif/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/qos-policy/out/node.def @@ -1,6 +1,6 @@ type: txt help: Set outbound QOS policy -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out create: sudo ip link set dev $VAR(../../../@).$VAR(../../@) txqueuelen 100 /opt/vyatta/sbin/vyatta-qos.pl \ --update-interface $VAR(../../../@).$VAR(../../@) $VAR(.) $VAR(@) diff --git a/templates/interfaces/ethernet/pppoe/node.tag/qos-policy/out/node.def b/templates/interfaces/ethernet/pppoe/node.tag/qos-policy/out/node.def index 213d298..98f001e 100644 --- a/templates/interfaces/ethernet/pppoe/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/ethernet/pppoe/node.tag/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt help: Set outbound QOS policy for specified ethernet interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface pppoe$VAR(../../@) $VAR(.) $VAR(@) delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface pppoe$VAR(../../@) $VAR(.) diff --git a/templates/interfaces/serial/node.tag/qos-policy/in/node.def b/templates/interfaces/serial/node.tag/qos-policy/in/node.def new file mode 100644 index 0000000..de04df8 --- /dev/null +++ b/templates/interfaces/serial/node.tag/qos-policy/in/node.def @@ -0,0 +1,5 @@ +type: txt +help: Set inbound QOS policy for specified serial interface +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy in +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/serial/node.tag/qos-policy/out/node.def b/templates/interfaces/serial/node.tag/qos-policy/out/node.def index 0251a27..f654046 100644 --- a/templates/interfaces/serial/node.tag/qos-policy/out/node.def +++ b/templates/interfaces/serial/node.tag/qos-policy/out/node.def @@ -1,5 +1,5 @@ type: txt help: Set outbound QOS policy for specified serial interface -allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy +allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface $VAR(../../@) $VAR(.) $VAR(@) delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface $VAR(../../@) $VAR(.) -- cgit v1.2.3