diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-27 15:48:45 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-27 15:48:45 -0700 |
commit | 2c48c6ff54fb4b0d29dd37a70e7cfa861f39bedb (patch) | |
tree | a38ec013cf2ec3876605882bae6321d671a887c6 /interface-templates/ip/ospf | |
parent | 453bbafd1ef8569ead7f342ed604c834772fd6e2 (diff) | |
download | vyatta-cfg-quagga-2c48c6ff54fb4b0d29dd37a70e7cfa861f39bedb.tar.gz vyatta-cfg-quagga-2c48c6ff54fb4b0d29dd37a70e7cfa861f39bedb.zip |
Use CLI regex to check length of key
Less overhead.
Diffstat (limited to 'interface-templates/ip/ospf')
-rw-r--r-- | interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def | 7 |
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) |