blob: 906890f5699f817dcac7ed999ad2a70d0c7bc66f [file] [log] [blame]
janani b4e53f9b2016-04-26 18:49:20 +05301module Test {
2 yang-version 1;
3 namespace http://huawei.com;
4 prefix Ant;
5 container valid {
6 grouping endpoint {
7 leaf zip-code {
8 type string;
9 }
10 uses first;
11 container design {
12 uses second;
13 container correct {
14 leaf newone {
15 type string;
16 }
17 uses third;
18 }
19 }
20 uses fourth;
21 uses fifth;
22 }
23 uses endpoint;
24 grouping first {
25 list valid {
26 key invalid-interval;
27 reference "RFC 6020";
28 leaf invalid-interval {
29 type "uint16";
30 units "seconds";
31 status current;
32 reference "RFC 6020";
33 }
34 }
35 }
36 grouping second {
37 leaf ink {
38 type int32;
39 }
40 }
41 grouping third {
42 container value {
43 leaf zip-code {
44 type string;
45 }
46 }
47 }
48 grouping fourth {
49 typedef my-type {
50 status deprecated;
51 type int32;
52 }
53 leaf correct {
54 type my-type;
55 }
56 }
57 grouping fifth {
58 leaf abc {
59 type string;
60 }
61 }
62 }
63}