diff options
Diffstat (limited to 'templates')
33 files changed, 142 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/qos-policy/node.def b/templates/interfaces/ethernet/node.tag/qos-policy/node.def new file mode 100644 index 0000000..b4ab8d8 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/qos-policy/node.def @@ -0,0 +1 @@ +help: "Configure qos-policy" diff --git a/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def b/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def new file mode 100644 index 0000000..bb9ea38 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/qos-policy/out/node.def @@ -0,0 +1,4 @@ +type: txt +help: "Set outbound QOS policy" +update: "sudo /opt/vyatta/sbin/vyatta-qos.pl --update $(../../@) out $(@)" +delete: "sudo /opt/vyatta/sbin/vyatta-qos.pl --delete $(../../@) out" diff --git a/templates/qos-policy/fair-queue/node.def b/templates/qos-policy/fair-queue/node.def new file mode 100644 index 0000000..36f3a35 --- /dev/null +++ b/templates/qos-policy/fair-queue/node.def @@ -0,0 +1,4 @@ +tag: +type: txt +syntax: pattern $(@) "^[^-]" ; "Qos queue name cannot start with \"-\"" +help: "Configure fair queueing based policy" diff --git a/templates/qos-policy/fair-queue/node.tag/description/node.def b/templates/qos-policy/fair-queue/node.tag/description/node.def new file mode 100644 index 0000000..335eb7e --- /dev/null +++ b/templates/qos-policy/fair-queue/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Description for this queuing policy" diff --git a/templates/qos-policy/fair-queue/node.tag/hash-interval/node.def b/templates/qos-policy/fair-queue/node.tag/hash-interval/node.def new file mode 100644 index 0000000..de3d6a0 --- /dev/null +++ b/templates/qos-policy/fair-queue/node.tag/hash-interval/node.def @@ -0,0 +1,3 @@ +type: u32 +default: 0 +help: "Rehash interval (seconds)" diff --git a/templates/qos-policy/fair-queue/node.tag/queue-limit/node.def b/templates/qos-policy/fair-queue/node.tag/queue-limit/node.def new file mode 100644 index 0000000..e6456f8 --- /dev/null +++ b/templates/qos-policy/fair-queue/node.tag/queue-limit/node.def @@ -0,0 +1,2 @@ +type: u32 +help: "Maximum queue size (packets)" diff --git a/templates/qos-policy/node.def b/templates/qos-policy/node.def new file mode 100644 index 0000000..9e04559 --- /dev/null +++ b/templates/qos-policy/node.def @@ -0,0 +1 @@ +help: "Qos policy type" diff --git a/templates/qos-policy/traffic-shaper/node.def b/templates/qos-policy/traffic-shaper/node.def new file mode 100644 index 0000000..3d623b7 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.def @@ -0,0 +1,4 @@ +tag: +type: txt +syntax: pattern $(@) "^[^-]" ; "Qos queue name cannot start with \"-\"" +help: "Configure traffic shaping based policy" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.def new file mode 100644 index 0000000..a9944bd --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.def @@ -0,0 +1,4 @@ +tag: +type: u32 +help: "Configure class handle" +syntax: ($(@) > 1 && $(@) < 65536) ; "$(@) handle must be between 2 and 65535" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/burst/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/burst/node.def new file mode 100644 index 0000000..d32af54 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/burst/node.def @@ -0,0 +1,3 @@ +type: txt +help: "Set the burst size for this class" +syntax: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --burst \"$(@)\"" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def new file mode 100644 index 0000000..ad78fa2 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def @@ -0,0 +1,4 @@ +type: txt +help: "Set the limit for this class" +syntax: exec "[[ \"$(@)\" =~ \"[0-9]+(\.[0-9]*)?%\" ]] || \ + /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$(@)\"" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/description/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/description/node.def new file mode 100644 index 0000000..f632aa0 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Description for this traffic class" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.def new file mode 100644 index 0000000..6b77136 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.def @@ -0,0 +1,4 @@ +tag: +type: txt +syntax: pattern $(@) "^[^-]" ; "Match queue name cannot start with \"-\"" +help: "Configure class matching rule name" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/description/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/description/node.def new file mode 100644 index 0000000..e62ed79 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Description for this match" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/interface/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/interface/node.def new file mode 100644 index 0000000..fa8f1cb --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/interface/node.def @@ -0,0 +1,11 @@ +tag: +type: txt +help: "Ethernet interface name" +syntax: exec " \ + if [ -z \"`ip link | egrep -v 'eth[0-9]+[.]' | grep $(@)`\" ]; then \ + echo Invalid ethernet interface [$(@)]; \ + exit 1 ; \ + fi ; " +#allowed: local -a array ; +# array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ; +# echo -n ${array[@]##*/} diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/address/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/address/node.def new file mode 100644 index 0000000..95087be --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/address/node.def @@ -0,0 +1,2 @@ +type: ipv4net +help: "Match IP destination address" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/port/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/port/node.def new file mode 100644 index 0000000..a082a37 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/destination/port/node.def @@ -0,0 +1,3 @@ +type: u32 +help: "Match IP destination port" +syntax: ($(@) > 0 && $(@) < 65536) ; "port must be between 1 and 65535" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dsfield/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dsfield/node.def new file mode 100644 index 0000000..4a9e22e --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/dsfield/node.def @@ -0,0 +1,3 @@ +type: txt +help: "Match dsfield/TOS: either hexadecimal number (0x10) or identifier" +syntax: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --dsfield \"$(@)\"" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def new file mode 100644 index 0000000..5681770 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/protocol/node.def @@ -0,0 +1,3 @@ +type: txt +help: "Match IP protocol name or number" +syntax: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --protocol \"$(@)\"" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/address/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/address/node.def new file mode 100644 index 0000000..e20679d --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/address/node.def @@ -0,0 +1,2 @@ +type: ipv4net +help: "Match IP source address" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/port/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/port/node.def new file mode 100644 index 0000000..c0af33f --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/ip/source/port/node.def @@ -0,0 +1,3 @@ +type: u32 +help: "Match IP source port" +syntax: ($(@) > 0 && $(@) < 65536) ; "port must be between 1 and 65535" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/vif/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/vif/node.def new file mode 100644 index 0000000..3de7d2f --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/match/node.tag/vif/node.def @@ -0,0 +1,6 @@ +tag: +type: u32 +help: "VLAN ID" +syntax: $(@) >= 0 && $(@) <= 4095; "VLAN ID must be between 0 and 4095" +#comp_help: possible completions: +# <0-4095> Set VLAN ID diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/priority/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/priority/node.def new file mode 100644 index 0000000..72b36e2 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/priority/node.def @@ -0,0 +1,4 @@ +type: u32 +default: 1 +help: "Priority for usage of extra bandwidth" +syntax: ($(@) > 0 && $(@) < 10) ; "priority must be between 1 and 10" diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/queue/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/queue/node.def new file mode 100644 index 0000000..a18ecc1 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/queue/node.def @@ -0,0 +1,8 @@ +type: txt +default: "SFQ" +syntax: $(@) in "SFQ", "FIFO", "RED"; "Queue must be SFQ, FIFO, or RED" +help: "Set the queue type for this class" +#comp_help:Possible completions: +# FIFO Use FIFO queue +# RED Random Exponential Drop - TCP friendly behaviour +# SFQ Use Stochastic Fair Queue - fairness by flow (default) diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/rate/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/rate/node.def new file mode 100644 index 0000000..9f9721a --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/rate/node.def @@ -0,0 +1,11 @@ +type: txt +default: "100%" +help: "Set the base rate for this class" +syntax: exec "[[ \"$(@)\" =~ \"[0-9]+(\.[0-9]*)?%\" ]] || \ + /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$(@)\"" +#comp_help: Allowed values: +# <number>% Percentage of overall rate (default 100%) +# <number><suffix> Bitrate with scaling suffix +# bits per sec (kbit, mbit, gbit) +# bytes per sec (kbps, mbps, gbps) + diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/burst/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/burst/node.def new file mode 100644 index 0000000..8360670 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/burst/node.def @@ -0,0 +1,4 @@ +type: txt +help: "Set the burst size for default traffic" +default: "15k" +syntax: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --burst \"$(@)\"" diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def new file mode 100644 index 0000000..7c501b3 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def @@ -0,0 +1,6 @@ +type: txt +help: "Set the limit for default traffic" +default: "100%" +syntax: exec "[[ \"$(@)\" =~ \"[0-9]+(\.[0-9]*)?%\" ]] || \ + /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$(@)\"" + diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/node.def new file mode 100644 index 0000000..f5adce3 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/node.def @@ -0,0 +1 @@ +help: "Configure default policy" diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/priority/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/priority/node.def new file mode 100644 index 0000000..ad6b9aa --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/priority/node.def @@ -0,0 +1,4 @@ +type: u32 +default: 8 +help: "Priority for usage of extra bandwidth" +syntax: ($(@) > 0 && $(@) < 10) ; "priority must be between 1 and 10" diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/queue/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/queue/node.def new file mode 100644 index 0000000..a18ecc1 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/queue/node.def @@ -0,0 +1,8 @@ +type: txt +default: "SFQ" +syntax: $(@) in "SFQ", "FIFO", "RED"; "Queue must be SFQ, FIFO, or RED" +help: "Set the queue type for this class" +#comp_help:Possible completions: +# FIFO Use FIFO queue +# RED Random Exponential Drop - TCP friendly behaviour +# SFQ Use Stochastic Fair Queue - fairness by flow (default) diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/rate/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/rate/node.def new file mode 100644 index 0000000..b12c6b6 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/default/rate/node.def @@ -0,0 +1,11 @@ +type: txt +default: "50%" +help: "Set the rate for default traffic" +syntax: exec "[[ \"$(@)\" =~ \"[0-9]+(\.[0-9]*)?%\" ]] || \ + /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$(@)\"" +#comp_help: Allowed values: +# <number>% Percentage of overall rate (default 50%) +# <number><suffix> Bitrate with scaling suffix +# bits per sec (kbit, mbit, gbit) +# bytes per sec (kbps, mbps, gbps) + diff --git a/templates/qos-policy/traffic-shaper/node.tag/description/node.def b/templates/qos-policy/traffic-shaper/node.tag/description/node.def new file mode 100644 index 0000000..335eb7e --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/description/node.def @@ -0,0 +1,2 @@ +type: txt +help: "Description for this queuing policy" diff --git a/templates/qos-policy/traffic-shaper/node.tag/rate/node.def b/templates/qos-policy/traffic-shaper/node.tag/rate/node.def new file mode 100644 index 0000000..22d54b5 --- /dev/null +++ b/templates/qos-policy/traffic-shaper/node.tag/rate/node.def @@ -0,0 +1,10 @@ +type: txt +help: "Set the base rate for this policy" +default: "auto" +syntax: exec "[[ \"$(@)\" == \"auto\" ]] || \ + /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$(@)\"" +#comp_help: Allowed values: +# auto Set rate based on interface speed (default) +# <number><suffix> Bitrate with scaling suffix +# bits per sec (kbit, mbit, gbit) +# bytes per sec (kbps, mbps, gbps) |