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 AT&T Intellectual Property. 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";
55 typedef username-type {
58 pattern "[a-z][a-z0-9]{2,31}" {
60 "A username must begin with a lowercase letter, The remainder
61 of the string may contain lowercase letters, or numbers 0 through 9.";
65 "The user name string identifying this entry.";
68 typedef password-type {
71 pattern "[a-zA-Z0-9!$%\\^()\\[\\]_\\-~{}.+]*" {
72 error-message "Password content does not meet the requirements";
76 "The password for this entry. This shouldn't be in clear text
77 The Password must contain at least 2 characters from
78 each of the following groups:
79 a) Lower case alphabetic (a-z)
80 b) Upper case alphabetic (A-Z)
82 d) Special characters Allowed !$%^()[]_-~{}.+
83 Password must not contain Username.";
86 grouping user-profile {
90 "The list of local users configured on this device.";
94 "The user name string identifying this entry.";
99 "The password for this entry.";
106 "The group to which the user is associated to.";
113 leaf currentPassword {
117 "provide the current password";
123 "provide a new password";
125 leaf newPasswordConfirm {
129 "re-enter the new password ";
144 "Successful or Failed";
146 leaf status-message {
149 "Gives a more detailed reason for success / failure";