summaryrefslogtreecommitdiff
path: root/interface-definitions/protocols-nhrp.xml.in
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2022-06-10 15:00:46 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2022-06-10 15:00:46 +0000
commit09d6d88c5ae4c1afc4e386f2d4b6482b66e7c44d (patch)
treec81356d47d67ad5f6c6fc9bc0d3bb880b9c3d1ae /interface-definitions/protocols-nhrp.xml.in
parent82c187df1a5380c5b8a4358e71a026859601be8f (diff)
downloadvyos-1x-09d6d88c5ae4c1afc4e386f2d4b6482b66e7c44d.tar.gz
vyos-1x-09d6d88c5ae4c1afc4e386f2d4b6482b66e7c44d.zip
Protocols: T4460: Add input checks for cisco-authentication parameter in nhrp protocol
Diffstat (limited to 'interface-definitions/protocols-nhrp.xml.in')
-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">