2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
12 namespace "urn:opendaylight:params:xml:ns:yang:nemo:user";
\r
15 import nemo-common {prefix nemo-common;}
\r
17 revision "2015-10-10" {
\r
19 "Initial revision.";
\r
22 container user-roles {
\r
25 "Defines the user role. Different users have different
\r
26 intention manifestations, which have different granularity
\r
27 or different level. It depends on users' role, knowledge
\r
28 and their purpose.";
\r
33 "A user-visible and unique name for a kind of role.";
\r
34 type nemo-common:user-role-name;
\r
38 leaf role-description {
\r
40 "Describes the characteristic,responsibility and purpose for a kind of role.";
\r
41 type nemo-common:user-role-description;
\r
48 grouping user-instance {
\r
50 "It represents an instance of the user.";
\r
54 "A unique ID for a user.";
\r
55 type nemo-common:user-id;
\r
61 "A user-visible and unique name for the user.";
\r
62 type nemo-common:user-name;
\r
66 leaf user-password {
\r
68 "The password of a user.";
\r
69 type nemo-common:user-password;
\r
75 "The role of a user.";
\r
76 type nemo-common:user-role-name;
\r