summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-10 19:58:31 +0200
committerGitHub <noreply@github.com>2022-06-10 19:58:31 +0200
commitf4d4648472bb6b58627907e3e07d4b9ae0b669ac (patch)
tree75a96e3e66c9f51dc8d18f9d87c0e00ec6be3409
parent007953d36388f904e31b04ffdb854e8e5602cc0d (diff)
parent09d6d88c5ae4c1afc4e386f2d4b6482b66e7c44d (diff)
downloadvyos-1x-f4d4648472bb6b58627907e3e07d4b9ae0b669ac.tar.gz
vyos-1x-f4d4648472bb6b58627907e3e07d4b9ae0b669ac.zip
Merge pull request #1353 from nicolas-fort/T4460
Protocols: T4460: Add input checks for cisco-authentication in nhrp
-rw-r--r--interface-definitions/protocols-nhrp.xml.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/protocols-nhrp.xml.in b/interface-definitions/protocols-nhrp.xml.in
index 1e08c6873..32aef40e7 100644
--- a/interface-definitions/protocols-nhrp.xml.in
+++ b/interface-definitions/protocols-nhrp.xml.in
@@ -27,6 +27,10 @@
<format>txt</format>
<description>Pass phrase for cisco authentication</description>
</valueHelp>
+ <constraint>
+ <regex>[^[:space:]]{1,8}</regex>
+ </constraint>
+ <constraintErrorMessage>Password must be 8 characters or less and not null</constraintErrorMessage>
</properties>
</leafNode>
<tagNode name="dynamic-map">