1 module org-openroadm-user-mgmt {
2 namespace "http://org/openroadm/user-mgmt";
3 prefix org-openroadm-user-mgmt;
10 "YANG definitions of user managements.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 All other rights reserved.
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE";
63 typedef username-type {
66 pattern '[a-z][a-z0-9]{2,31}' {
68 "A username must begin with a lowercase letter, The remainder
69 of the string may contain lowercase letters, or numbers 0 through 9.";
73 "The user name string identifying this entry.";
76 typedef password-type {
79 pattern '[a-zA-Z0-9!$%\^()\[\]_\-~{}.+]*' {
80 error-message "Password content does not meet the requirements";
84 "The password for this entry. This shouldn't be in clear text
85 The Password must contain at least 2 characters from
86 each of the following groups:
87 a) Lower case alphabetic (a-z)
88 b) Upper case alphabetic (A-Z)
90 d) Special characters Allowed !$%^()[]_-~{}.+
91 Password must not contain Username.";
94 grouping user-profile {
98 "The list of local users configured on this device.";
102 "The user name string identifying this entry.";
107 "The password for this entry.";
114 "The group to which the user is associated to.";
121 leaf currentPassword {
125 "provide the current password";
131 "provide a new password";
133 leaf newPasswordConfirm {
137 "re-enter the new password ";
152 "Successful or Failed";
154 leaf status-message {
157 "Gives a more detailed reason for success / failure";