janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 1 | module Test { |
2 | yang-version 1; | ||||
3 | namespace http://huawei.com; | ||||
4 | prefix Ant; | ||||
5 | list valid { | ||||
6 | key "define"; | ||||
7 | leaf define { | ||||
8 | type string; | ||||
9 | } | ||||
10 | container standard { | ||||
11 | container present { | ||||
12 | leaf-list name { | ||||
13 | type leafref { | ||||
14 | path "/invalid-interval"; | ||||
15 | } | ||||
16 | } | ||||
17 | } | ||||
18 | } | ||||
19 | } | ||||
20 | leaf-list invalid-interval { | ||||
21 | type enumeration { | ||||
22 | enum 10m; | ||||
23 | enum 100m; | ||||
24 | enum auto; | ||||
25 | } | ||||
26 | } | ||||
27 | } |