diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-30 00:39:12 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-01-30 22:25:06 +0100 |
commit | fafd25143d46220c537de8ef514d5954129528eb (patch) | |
tree | 7593e3edb3d590e8d0e2b0b274d404ed6b8379f2 /interface-definitions/policy-route.xml.in | |
parent | 8532f2c391e895d7cd4c10b6d83d1e26973202a3 (diff) | |
download | vyos-1x-fafd25143d46220c537de8ef514d5954129528eb.tar.gz vyos-1x-fafd25143d46220c537de8ef514d5954129528eb.zip |
firewall: T2199: Add constraint for tagnode names
Diffstat (limited to 'interface-definitions/policy-route.xml.in')
-rw-r--r-- | interface-definitions/policy-route.xml.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interface-definitions/policy-route.xml.in b/interface-definitions/policy-route.xml.in index 4ce953b52..a1c3b50de 100644 --- a/interface-definitions/policy-route.xml.in +++ b/interface-definitions/policy-route.xml.in @@ -5,6 +5,9 @@ <tagNode name="route6" owner="${vyos_conf_scripts_dir}/policy-route.py"> <properties> <help>Policy route rule set name for IPv6</help> + <constraint> + <regex>^[a-zA-Z0-9][\w\-\.]*$</regex> + </constraint> <priority>201</priority> </properties> <children> @@ -51,6 +54,9 @@ <tagNode name="route" owner="${vyos_conf_scripts_dir}/policy-route.py"> <properties> <help>Policy route rule set name for IPv4</help> + <constraint> + <regex>^[a-zA-Z0-9][\w\-\.]*$</regex> + </constraint> <priority>201</priority> </properties> <children> |