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 { | ||||
sonugupta-huawei | 7dd9858 | 2017-02-21 21:24:05 +0530 | [diff] [blame] | 32 | leaf leaf_c1 { |
sonugupta-huawei | ce7ff81 | 2017-02-13 19:37:20 +0530 | [diff] [blame] | 33 | type string; |
34 | } | ||||
35 | } | ||||
36 | } | ||||
sonugupta-huawei | 4bf7c8a | 2017-02-15 00:25:04 +0530 | [diff] [blame] | 37 | |
38 | leaf-list leaf1 { | ||||
39 | type string; | ||||
40 | } | ||||
sonugupta-huawei | ce7ff81 | 2017-02-13 19:37:20 +0530 | [diff] [blame] | 41 | } |