diff options
Diffstat (limited to 'interface-definitions/include/ospf-authentication.xml.i')
-rw-r--r-- | interface-definitions/include/ospf-authentication.xml.i | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf-authentication.xml.i b/interface-definitions/include/ospf-authentication.xml.i index 0963e5cc0..efb29c1f0 100644 --- a/interface-definitions/include/ospf-authentication.xml.i +++ b/interface-definitions/include/ospf-authentication.xml.i @@ -16,6 +16,9 @@ <format>u32:1-255</format> <description>MD5 key id</description> </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-255"/> + </constraint> </properties> <children> <leafNode name="md5-key"> @@ -25,6 +28,10 @@ <format>txt</format> <description>MD5 Key (16 characters or less)</description> </valueHelp> + <constraint> + <regex>^[^[:space:]]{1,16}$</regex> + </constraint> + <constraintErrorMessage>Password must be 16 characters or less</constraintErrorMessage> </properties> </leafNode> </children> @@ -38,6 +45,10 @@ <format>txt</format> <description>Plain text password (8 characters or less)</description> </valueHelp> + <constraint> + <regex>^[^[:space:]]{1,8}$</regex> + </constraint> + <constraintErrorMessage>Password must be 8 characters or less</constraintErrorMessage> </properties> </leafNode> </children> |