diff options
author | Christian Poessinger <christian@poessinger.com> | 2023-01-04 17:54:24 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2023-01-04 17:55:48 +0100 |
commit | ae8935ce62e55ad047b51bebef8a1d9124ed1826 (patch) | |
tree | 2c8b698630431c4790673d1e8ded2e45bea0f9c7 /interface-definitions | |
parent | f5af95be4f66380d213771b975c63361e27616ef (diff) | |
download | vyos-1x-ae8935ce62e55ad047b51bebef8a1d9124ed1826.tar.gz vyos-1x-ae8935ce62e55ad047b51bebef8a1d9124ed1826.zip |
qos: T4284: add bandwidth percentage value
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/qos/bandwidth-auto.xml.i | 6 | ||||
-rw-r--r-- | interface-definitions/include/qos/bandwidth.xml.i | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/include/qos/bandwidth-auto.xml.i b/interface-definitions/include/qos/bandwidth-auto.xml.i index 260bd4f7b..a86f28296 100644 --- a/interface-definitions/include/qos/bandwidth-auto.xml.i +++ b/interface-definitions/include/qos/bandwidth-auto.xml.i @@ -33,9 +33,13 @@ <format><number>tbit</format> <description>Terabits per second</description> </valueHelp> + <valueHelp> + <format><number>%%</format> + <description>Percentage of interface link speed</description> + </valueHelp> <constraint> <validator name="numeric" argument="--positive"/> - <regex>(auto|\d+(bit|kbit|mbit|gbit|tbit))</regex> + <regex>(auto|\d+(bit|kbit|mbit|gbit|tbit)|(100|\d(\d)?)%)</regex> </constraint> </properties> <defaultValue>auto</defaultValue> diff --git a/interface-definitions/include/qos/bandwidth.xml.i b/interface-definitions/include/qos/bandwidth.xml.i index 62ea93b67..f2848f066 100644 --- a/interface-definitions/include/qos/bandwidth.xml.i +++ b/interface-definitions/include/qos/bandwidth.xml.i @@ -26,9 +26,13 @@ <format><number>tbit</format> <description>Terabits per second</description> </valueHelp> + <valueHelp> + <format><number>%</format> + <description>Percentage of interface link speed</description> + </valueHelp> <constraint> <validator name="numeric" argument="--positive"/> - <regex>\d+(bit|kbit|mbit|gbit|tbit)</regex> + <regex>(\d+(bit|kbit|mbit|gbit|tbit)|(100|\d(\d)?)%)</regex> </constraint> </properties> </leafNode> |