summaryrefslogtreecommitdiff
path: root/interface-definitions/include/qos/bandwidth.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-16 21:20:39 +0200
committerChristian Poessinger <christian@poessinger.com>2023-01-01 08:14:31 +0100
commitf89a6806d90fd11e0e1e5e922ef95332ad8bfeb8 (patch)
tree3b99f40da30a23df0f9677974236127de38b44a5 /interface-definitions/include/qos/bandwidth.xml.i
parent38e9bcfd496c4203ab6b2551af1f9627a4119191 (diff)
downloadvyos-1x-f89a6806d90fd11e0e1e5e922ef95332ad8bfeb8.tar.gz
vyos-1x-f89a6806d90fd11e0e1e5e922ef95332ad8bfeb8.zip
qos: T4284: first implementation introducing a new vyos.qos module
Diffstat (limited to 'interface-definitions/include/qos/bandwidth.xml.i')
-rw-r--r--interface-definitions/include/qos/bandwidth.xml.i28
1 files changed, 24 insertions, 4 deletions
diff --git a/interface-definitions/include/qos/bandwidth.xml.i b/interface-definitions/include/qos/bandwidth.xml.i
index 82af22f42..62ea93b67 100644
--- a/interface-definitions/include/qos/bandwidth.xml.i
+++ b/interface-definitions/include/qos/bandwidth.xml.i
@@ -1,15 +1,35 @@
<!-- include start from qos/bandwidth.xml.i -->
<leafNode name="bandwidth">
<properties>
- <help>Traffic-limit used for this class</help>
+ <help>Available bandwidth for this policy</help>
<valueHelp>
<format>&lt;number&gt;</format>
- <description>Rate in kbit (kilobit per second)</description>
+ <description>Bits per second</description>
</valueHelp>
<valueHelp>
- <format>&lt;number&gt;&lt;suffix&gt;</format>
- <description>Rate with scaling suffix (mbit, mbps, ...)</description>
+ <format>&lt;number&gt;bit</format>
+ <description>Bits per second</description>
</valueHelp>
+ <valueHelp>
+ <format>&lt;number&gt;kbit</format>
+ <description>Kilobits per second</description>
+ </valueHelp>
+ <valueHelp>
+ <format>&lt;number&gt;mbit</format>
+ <description>Megabits per second</description>
+ </valueHelp>
+ <valueHelp>
+ <format>&lt;number&gt;gbit</format>
+ <description>Gigabits per second</description>
+ </valueHelp>
+ <valueHelp>
+ <format>&lt;number&gt;tbit</format>
+ <description>Terabits per second</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--positive"/>
+ <regex>\d+(bit|kbit|mbit|gbit|tbit)</regex>
+ </constraint>
</properties>
</leafNode>
<!-- include end -->