blob: 93e147675359712366c3aee64244b98de90726be [file] [log] [blame]
Bharat saraswalb41904b2016-10-20 19:22:36 +05301module test {
2 namespace "test:test";
3 prefix test;
4
5 container cont1 {
6 leaf leaf1 {
7 type int32;
8 }
9 leaf-list leaf-list1 {
10 type int32;
11 }
12 list list1 {
13 key "name";
14 leaf name {
15 type string;
16 }
17 }
18 container cont2 {
19 leaf leaf2 {
20 type int32;
21 }
22 }
23 }
24 leaf leaf2 {
25 type int32;
26 }
27 leaf-list leaf-list2 {
28 type int32;
29 }
30 list list2 {
31 key "name";
32 leaf name {
33 type string;
34 }
35 }
36 choice choice1 {
37 case case1 {
38 leaf leaf3 {
39 type int32;
40 }
41 leaf-list leaf-list3 {
42 type int32;
43 }
44 list list3 {
45 key "name";
46 leaf name {
47 type string;
48 }
49 }
50 }
51 }
52 grouping group1 {
53 container cont1 {
54 leaf leaf1 {
55 type int32;
56 }
57 leaf-list leaf-list1 {
58 type int32;
59 }
60 list list1 {
61 key "name";
62 leaf name {
63 type string;
64 }
65 }
66 container cont2 {
67 leaf leaf2 {
68 type int32;
69 }
70 }
71 }
72 }
73 rpc rpc1 {
74 input {
75 uses group1;
76 }
77 }
78 augment /cont1/list1 {
79 leaf leaf2 {
80 type int64;
81 }
82 }
83}