summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.tag/qos-policy/out/node.def4
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def4
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/qos-policy/out/node.def6
-rw-r--r--templates/interfaces/serial/node.tag/cisco-hdlc/vif/node.tag/qos-policy/out/node.def5
-rw-r--r--templates/interfaces/serial/node.tag/frame-relay/vif/node.tag/qos-policy/out/node.def5
-rw-r--r--templates/interfaces/serial/node.tag/ppp/vif/node.tag/qos-policy/out/node.def5
-rw-r--r--templates/interfaces/tunnel/node.tag/qos-policy/out/node.def5
-rw-r--r--templates/qos-policy/traffic-limiter/node.tag/class/node.tag/burst/node.def7
8 files changed, 26 insertions, 15 deletions
diff --git a/templates/interfaces/bonding/node.tag/qos-policy/out/node.def b/templates/interfaces/bonding/node.tag/qos-policy/out/node.def
index ec96f0f..c7d6ad2 100644
--- a/templates/interfaces/bonding/node.tag/qos-policy/out/node.def
+++ b/templates/interfaces/bonding/node.tag/qos-policy/out/node.def
@@ -1,6 +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(@)
+update: sudo ip link set dev $VAR(../../../@).$VAR(../../@) txqueuelen 100
+ /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/out/node.def b/templates/interfaces/bonding/node.tag/vif/node.tag/qos-policy/out/node.def
index df0ea43..729fa7c 100644
--- 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
@@ -1,8 +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: 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(.)
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 df0ea43..548cc8c 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,9 +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(@)
+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/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
diff --git a/templates/interfaces/tunnel/node.tag/qos-policy/out/node.def b/templates/interfaces/tunnel/node.tag/qos-policy/out/node.def
index 063fe58..13c78af 100644
--- a/templates/interfaces/tunnel/node.tag/qos-policy/out/node.def
+++ b/templates/interfaces/tunnel/node.tag/qos-policy/out/node.def
@@ -1,6 +1,7 @@
type: txt
help: Set the tunnel 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(@)
+update: sudo ip link set dev $VAR(../../../@).$VAR(../../@) txqueuelen 100
+ /opt/vyatta/sbin/vyatta-qos.pl --update-interface $VAR(../../@) $VAR(.) $VAR(@)
delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-interface $VAR(../../@) $VAR(.)
+ sudo ip link set dev $VAR(../../../@).$VAR(../../@) txqueuelen 0
diff --git a/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/burst/node.def b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/burst/node.def
new file mode 100644
index 0000000..54ae4f3
--- /dev/null
+++ b/templates/qos-policy/traffic-limiter/node.tag/class/node.tag/burst/node.def
@@ -0,0 +1,7 @@
+type: txt
+help: Set the burst size for this class (default: 15kb)
+default: "15k"
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --burst \"$VAR(@)\""
+comp_help: Allowed values:
+ <number> Burst size in bytes
+ <number><suffix> Size with scaling suffix (kb, mb, gb)