Bharat saraswal | 4912077 | 2017-03-10 17:06:10 +0530 | [diff] [blame] | 1 | module YtbDerivedTypeWithBitsAndBinary { |
2 | yang-version 1; | ||||
3 | namespace "yms:test:ytb:derived:type:with:bits:and:binary"; | ||||
4 | prefix "sch"; | ||||
5 | revision "2016-08-26"; | ||||
6 | |||||
7 | typedef derivedbinarya { | ||||
8 | type derivedbinaryb; | ||||
9 | } | ||||
10 | |||||
11 | typedef derivedbinaryb { | ||||
12 | type binary; | ||||
13 | } | ||||
14 | |||||
15 | typedef derivedbitsa { | ||||
16 | type derivedbitsb; | ||||
17 | } | ||||
18 | |||||
19 | typedef derivedbitsb { | ||||
20 | type bits { | ||||
21 | bit index { | ||||
22 | position 1; | ||||
23 | } | ||||
24 | bit name { | ||||
25 | position 10; | ||||
26 | } | ||||
27 | bit signature { | ||||
28 | position 100; | ||||
29 | } | ||||
30 | } | ||||
31 | } | ||||
32 | |||||
33 | leaf forbinary { | ||||
34 | type derivedbinarya; | ||||
35 | } | ||||
36 | |||||
37 | leaf forbits { | ||||
38 | type derivedbitsa; | ||||
39 | } | ||||
40 | |||||
41 | leaf-list forbinarylist { | ||||
42 | type derivedbinarya; | ||||
43 | } | ||||
44 | |||||
45 | leaf-list forbitslist { | ||||
46 | type derivedbitsa; | ||||
47 | } | ||||
48 | |||||
49 | leaf forunion { | ||||
50 | type union { | ||||
51 | type binary; | ||||
52 | type int8; | ||||
53 | } | ||||
54 | } | ||||
55 | } | ||||
56 |