sonugupta-huawei | ce7ff81 | 2017-02-13 19:37:20 +0530 | [diff] [blame^] | 1 | module list { |
2 | |||||
3 | yang-version 1; | ||||
4 | |||||
5 | namespace "yrt:list"; | ||||
6 | |||||
7 | prefix "l"; | ||||
8 | |||||
9 | organization "ON-LAB"; | ||||
10 | |||||
11 | description "This module defines for list."; | ||||
12 | |||||
13 | revision "2016-06-24" { | ||||
14 | description "Initial revision."; | ||||
15 | } | ||||
16 | |||||
17 | list l1 { | ||||
18 | key "k1 k2 k3"; | ||||
19 | leaf k1 { | ||||
20 | type string; | ||||
21 | } | ||||
22 | |||||
23 | leaf k2 { | ||||
24 | type string; | ||||
25 | } | ||||
26 | |||||
27 | leaf k3 { | ||||
28 | type string; | ||||
29 | } | ||||
30 | |||||
31 | container c1 { | ||||
32 | leaf l1 { | ||||
33 | type string; | ||||
34 | } | ||||
35 | } | ||||
36 | } | ||||
37 | } |