diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-26 11:53:43 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-26 11:53:43 -0700 |
commit | 19bb0be1ded86e946c2415d6f19619605a926da2 (patch) | |
tree | b40a4d312cfc120463ec0859e092090904d361bc | |
parent | e10951fcd6cf58048209eb3a97ba5cacab4e8cb1 (diff) | |
download | vyatta-cfg-quagga-19bb0be1ded86e946c2415d6f19619605a926da2.tar.gz vyatta-cfg-quagga-19bb0be1ded86e946c2415d6f19619605a926da2.zip |
Fix regex in password checks
Missing end of match
-rw-r--r-- | interface-templates/ip/rip/authentication/md5/node.tag/password/node.def | 2 | ||||
-rw-r--r-- | interface-templates/ip/rip/authentication/plaintext-password/node.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def index 1d675b0b..723bd94a 100644 --- a/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def +++ b/interface-templates/ip/rip/authentication/md5/node.tag/password/node.def @@ -1,6 +1,6 @@ type: txt help: Set authentication password -syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}" ; "MD5 key must be 16 characters or less" +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "MD5 key must be 16 characters or less" update:vyatta-vtysh \ -c "configure terminal" -c "interface $IFNAME" \ diff --git a/interface-templates/ip/rip/authentication/plaintext-password/node.def b/interface-templates/ip/rip/authentication/plaintext-password/node.def index f4fefb78..595ae910 100644 --- a/interface-templates/ip/rip/authentication/plaintext-password/node.def +++ b/interface-templates/ip/rip/authentication/plaintext-password/node.def @@ -1,6 +1,6 @@ type: txt help: Set plain text password -syntax:expression: pattern $VAR(@) "^[^[:space:]{1,16}$" ; "Password must be 16 characters or less" +syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$" ; "Password must be 16 characters or less" commit:expression: $VAR(../md5/) == "" ; "md5 password already set" update: vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" \ |