summaryrefslogtreecommitdiff
path: root/interface-templates
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates')
-rw-r--r--interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def7
1 files changed, 2 insertions, 5 deletions
diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
index 5efd3ef7..5e7a121e 100644
--- a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
+++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
@@ -1,9 +1,6 @@
type: txt
help: Set md5 key
-syntax:expression: exec " \
- if [ `echo -n '$VAR(@)' | wc -c` -gt 16 ]; then \
- echo MD5 key must be 16 characters or less ; \
- exit 1 ; \
- fi ; "
+syntax:expression: pattern "^[^[:space:]]{1,16}" ; \
+ "MD5 key must be 16 characters or less"
comp_help: possible completions:
<text> MD5 Key (16 characters or less)