RFC Errata
RFC 7317, "A YANG Data Model for System Management", August 2014
Source of RFC: netmod (ops)
Errata ID: 4795
Status: Rejected
Type: Editorial
Publication Format(s) : TEXT
Reported By: Kaja Mohideen
Date Reported: 2016-09-05
Rejected by: Benoit Claise
Date Rejected: 2016-09-05
Section 5 says:
typedef crypt-hash { type string { pattern '$0$.*' + '|$1$[a-zA-Z0-9./]{1,8}$[a-zA-Z0-9./]{22}' + '|$5$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}' + '|$6$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{86}'; }
It should say:
typedef crypt-hash { type string { pattern '\$0\$.*' + '|\$1\$[a-zA-Z0-9./]{1,8}\$[a-zA-Z0-9./]{22}' + '|\$5\$(rounds=\d+\$)?[a-zA-Z0-9./]{1,16}\$[a-zA-Z0-9./]{43}' + '|\$6\$(rounds=\d+\$)?[a-zA-Z0-9./]{1,16}\$[a-zA-Z0-9./]{86}'; }
Notes:
Character $ has special meaning in regular expression.
--VERIFIER NOTES--
No, "$" is not special in the regular expression dialect used in YANG
(XML Schema).