...
1module server-system {
2 yang-version 1.1;
3 namespace "http://autlan.dt/gribok/yang/example";
4 prefix ex;
5
6 import ietf-yang-types {
7 prefix yang;
8 reference
9 "RFC 6991: Common YANG Data Types.";
10 }
11
12 organization "Gribok";
13 contact "gribok@example.org";
14 description
15 "An example module";
16
17 revision 2020-04-03 {
18 description "Example yang";
19 }
20
21 /*
22 * Comment for container system
23 */
24
25 container system {
26 leaf host-name {
27 type string;
28 description "Hostname for this system";
29 }
30
31 leaf-list domain-search {
32 type string;
33 description "List of domain names to search";
34 }
35
36 container login {
37 leaf message {
38 type string;
39 description
40 "Message given at start of login session";
41 }
42
43 list user {
44 key "name";
45 leaf name {
46 type string;
47 }
48 leaf uuid {
49 type yang:uuid;
50 }
51 leaf full-name {
52 type string;
53 mandatory true;
54 description
55 "The full name of user See also 'name'. This could
56 be, for example, a reference to the user name";
57 }
58 leaf class {
59 type string;
60 }
61 }
62 }
63 }
64}
View as plain text