diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-09-16 09:15:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-09-16 09:16:17 +0200 |
commit | 28573ffe4fd939a266006840f999c99babe89dce (patch) | |
tree | afd5f75f8ab82707e7a1b477edb1b671c84b57e3 /interface-definitions | |
parent | 7a2ad35ec8ecd84d162a3e5dc41b50f31d18dc10 (diff) | |
download | vyos-1x-28573ffe4fd939a266006840f999c99babe89dce.tar.gz vyos-1x-28573ffe4fd939a266006840f999c99babe89dce.zip |
xml: T4698: drop validator name="range" and replace it with numeric
After T4669 added support for range validation to the OCaml validator there is
no need to keep the slow Python validator in place.
Raplace all occurances of <validator name="range" argument="--min=1 --max=65535"/>
with <validator name="numeric" argument="--range 1-65535"/>.
Diffstat (limited to 'interface-definitions')
4 files changed, 1 insertions, 6 deletions
diff --git a/interface-definitions/include/firewall/dscp.xml.i b/interface-definitions/include/firewall/dscp.xml.i index 642212d7e..796bab548 100644 --- a/interface-definitions/include/firewall/dscp.xml.i +++ b/interface-definitions/include/firewall/dscp.xml.i @@ -12,7 +12,6 @@ </valueHelp> <constraint> <validator name="numeric" argument="--range 0-63"/> - <validator name="range" argument="--min=0 --max=63"/> </constraint> <multi/> </properties> @@ -30,7 +29,6 @@ </valueHelp> <constraint> <validator name="numeric" argument="--range 0-63"/> - <validator name="range" argument="--min=0 --max=63"/> </constraint> <multi/> </properties> diff --git a/interface-definitions/include/firewall/packet-length.xml.i b/interface-definitions/include/firewall/packet-length.xml.i index 043f56d16..91f08314a 100644 --- a/interface-definitions/include/firewall/packet-length.xml.i +++ b/interface-definitions/include/firewall/packet-length.xml.i @@ -12,7 +12,6 @@ </valueHelp> <constraint> <validator name="numeric" argument="--range 1-65535"/> - <validator name="range" argument="--min=1 --max=65535"/> </constraint> <multi/> </properties> @@ -30,7 +29,6 @@ </valueHelp> <constraint> <validator name="numeric" argument="--range 1-65535"/> - <validator name="range" argument="--min=1 --max=65535"/> </constraint> <multi/> </properties> diff --git a/interface-definitions/include/firewall/tcp-flags.xml.i b/interface-definitions/include/firewall/tcp-flags.xml.i index 5a7b5a8d3..fc0da3135 100644 --- a/interface-definitions/include/firewall/tcp-flags.xml.i +++ b/interface-definitions/include/firewall/tcp-flags.xml.i @@ -127,7 +127,6 @@ </valueHelp> <constraint> <validator name="numeric" argument="--range 1-16384"/> - <validator name="range" argument="--min=1 --max=16384"/> </constraint> </properties> </leafNode> diff --git a/interface-definitions/service-pppoe-server.xml.in b/interface-definitions/service-pppoe-server.xml.in index 50f42849b..c88f9e950 100644 --- a/interface-definitions/service-pppoe-server.xml.in +++ b/interface-definitions/service-pppoe-server.xml.in @@ -90,7 +90,7 @@ <description>VLAN monitor range for the automatic creation of vlans (e.g. 1-4094)</description> </valueHelp> <constraint> - <validator name="range" argument="--min=1 --max=4094"/> + <validator name="numeric" argument="--range 1-4094"/> </constraint> <multi/> </properties> |