summaryrefslogtreecommitdiff
path: root/templates/qos-policy/network-emulator
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-07 10:46:43 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-07 15:56:10 -0700
commit31a8ab66f49ad26b376d552ec468b21e15835daf (patch)
tree50a0d0eb271f1bb830668ce018c3b1d7027570b5 /templates/qos-policy/network-emulator
parenta6fc0cd96c30422732fd4006dfed22fedc4c624d (diff)
downloadvyatta-cfg-qos-31a8ab66f49ad26b376d552ec468b21e15835daf.tar.gz
vyatta-cfg-qos-31a8ab66f49ad26b376d552ec468b21e15835daf.zip
Rearrange Qos commands for Larkspur
Current (Kenwood and earlier): set qos-policy traffic-shaper TS { ...classes } set qos-policy traffic-limiter TL { ...classes } seq qos-policy network-emulator NE ... set qos-policy random-detect RD ... set qos-policy rate-limiter RC ... set qos-policy round-robin RR ... set interfaces ethernet eth0 qos-policy out TS set interfaces ethernet eth0 qos-policy in TL New (Larkspur and later): set traffic-policy shaper TS { ...classes } set traffic-policy limiter TL { ...classes } seq traffic-policy network-emulator NE ... set traffic-policy random-detect RD ... set traffic-policy rate-control RC ... set traffic-policy round-robin RR ... set interfaces ethernet eth0 traffic-policy out TS set interfaces ethernet eth0 traffic-policy in TL set interfaces ethernet eth0 redirect ifb0 set interfaces ethernet eth0 mirror eth2 Note: 1. Only one of the following is allowed: "redirect", or "mirror" 2. Traffic-policy limiter is allowed with redirection/mirror and takes place before mirror/redirect action (NEW) 3. Limiter policy may applied on output (NEW) 4. Only limiter policies can be applied on input (same as previous releases) This does add some new functionality (#2, and #3) which are possible because of how filter classes are implemented.
Diffstat (limited to 'templates/qos-policy/network-emulator')
-rw-r--r--templates/qos-policy/network-emulator/node.def8
-rw-r--r--templates/qos-policy/network-emulator/node.tag/bandwidth/node.def9
-rw-r--r--templates/qos-policy/network-emulator/node.tag/burst/node.def7
-rw-r--r--templates/qos-policy/network-emulator/node.tag/description/node.def2
-rw-r--r--templates/qos-policy/network-emulator/node.tag/network-delay/node.def6
-rw-r--r--templates/qos-policy/network-emulator/node.tag/packet-corruption/node.def6
-rw-r--r--templates/qos-policy/network-emulator/node.tag/packet-loss/node.def6
-rw-r--r--templates/qos-policy/network-emulator/node.tag/packet-reordering/node.def8
-rw-r--r--templates/qos-policy/network-emulator/node.tag/queue-limit/node.def2
9 files changed, 0 insertions, 54 deletions
diff --git a/templates/qos-policy/network-emulator/node.def b/templates/qos-policy/network-emulator/node.def
deleted file mode 100644
index 9a89c53..0000000
--- a/templates/qos-policy/network-emulator/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-tag:
-type: txt
-help: Setup network emulator policy
-syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$"
- ; "only alpha-numeric policy name allowed"
-create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy $VAR(.) $VAR(@)
-delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy $VAR(@)
-end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy $VAR(@)
diff --git a/templates/qos-policy/network-emulator/node.tag/bandwidth/node.def b/templates/qos-policy/network-emulator/node.tag/bandwidth/node.def
deleted file mode 100644
index db8ca65..0000000
--- a/templates/qos-policy/network-emulator/node.tag/bandwidth/node.def
+++ /dev/null
@@ -1,9 +0,0 @@
-type: txt
-help: Set the bandwidth limit
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)"
-comp_help: Allowed values:
- <number> Bandwidth in Kbps per second
- <number><suffix> Value with scaling suffix
- bits per sec (kbit, mbit, gbit)
- bytes per sec (kbps, mbps, gbps)
-
diff --git a/templates/qos-policy/network-emulator/node.tag/burst/node.def b/templates/qos-policy/network-emulator/node.tag/burst/node.def
deleted file mode 100644
index 4df45de..0000000
--- a/templates/qos-policy/network-emulator/node.tag/burst/node.def
+++ /dev/null
@@ -1,7 +0,0 @@
-type: txt
-help: Set the burst size
-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)
diff --git a/templates/qos-policy/network-emulator/node.tag/description/node.def b/templates/qos-policy/network-emulator/node.tag/description/node.def
deleted file mode 100644
index 1e8e64f..0000000
--- a/templates/qos-policy/network-emulator/node.tag/description/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-type: txt
-help: Set description for this queuing policy
diff --git a/templates/qos-policy/network-emulator/node.tag/network-delay/node.def b/templates/qos-policy/network-emulator/node.tag/network-delay/node.def
deleted file mode 100644
index 40b8437..0000000
--- a/templates/qos-policy/network-emulator/node.tag/network-delay/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --time $VAR(@)"
-help: Setup network delay
-comp_help: Additional network delay in milliseconds
- <number> Latency in milliseconds
- <number><suffix> Time with suffx (secs, ms, us)
diff --git a/templates/qos-policy/network-emulator/node.tag/packet-corruption/node.def b/templates/qos-policy/network-emulator/node.tag/packet-corruption/node.def
deleted file mode 100644
index fb0e975..0000000
--- a/templates/qos-policy/network-emulator/node.tag/packet-corruption/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-help: Set emulated packet data corruption rate
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
-
diff --git a/templates/qos-policy/network-emulator/node.tag/packet-loss/node.def b/templates/qos-policy/network-emulator/node.tag/packet-loss/node.def
deleted file mode 100644
index 6501d7a..0000000
--- a/templates/qos-policy/network-emulator/node.tag/packet-loss/node.def
+++ /dev/null
@@ -1,6 +0,0 @@
-type: txt
-help: Set emulated packet loss rate
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
-
diff --git a/templates/qos-policy/network-emulator/node.tag/packet-reordering/node.def b/templates/qos-policy/network-emulator/node.tag/packet-reordering/node.def
deleted file mode 100644
index ee5c64a..0000000
--- a/templates/qos-policy/network-emulator/node.tag/packet-reordering/node.def
+++ /dev/null
@@ -1,8 +0,0 @@
-type: txt
-help: Set emulated packet reordering percentage
-syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
-commit:expression: $VAR(../network-delay) != "" ; \
- "Must specify network-delay for packet reordering"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
-
diff --git a/templates/qos-policy/network-emulator/node.tag/queue-limit/node.def b/templates/qos-policy/network-emulator/node.tag/queue-limit/node.def
deleted file mode 100644
index 49c47b4..0000000
--- a/templates/qos-policy/network-emulator/node.tag/queue-limit/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-type: u32
-help: Set maximum queue size (packets)