blob: e37bed6690b5363b09981fe9e34ec9612f86b773 [file] [log] [blame]
Vidyashree Rama76faccc2016-10-17 22:06:52 +05301module test {
2
3 yang-version 1;
4 namespace "ydt.test";
5 prefix "t6";
6 organization "ON-LAB";
7
8 revision "2016-05-24" {
9 description "Initial revision.";
10 }
11
12 container cont1 {
13 container cont2 {
14 container cont3 {
15 leaf leaf1 {
16 type string;
17 }
18 }
19 }
20 list list1 {
21 key leaf2;
22 leaf leaf2 {
23 type string;
24 }
25 leaf leaf3 {
26 type string;
27 }
28 }
29 leaf leaf4 {
30 type string;
31 }
32 }
33 list list2 {
34 key "leaf5 leaf6";
35 leaf leaf5 {
36 type string;
37 }
38 leaf leaf6 {
39 type string;
40 }
41 leaf leaf7 {
42 type string;
43 }
44 leaf-list leaflist8 {
45 type string;
46 }
47 container cont7 {
48 leaf leaf12 {
49 type string;
50 }
51 }
52 }
53 container cont4 {
54 container cont5 {
55 leaf leaf9 {
56 type string;
57 }
58 }
59 }
60 leaf leaf10 {
61 type string;
62 }
63
64 rpc rock-the-house {
65 input {
66 leaf zip-code {
67 type string;
68 }
69 }
70 output {
71 leaf hello {
72 type string;
73 }
74 }
75 }
76
77 rpc rock-the-house1 {
78 input {
79 leaf leaf13 {
80 type string;
81 }
82 }
83 }
84
85 rpc rock-the-house2 {
86 output {
87 leaf leaf14 {
88 type string;
89 }
90 }
91 }
92
93 rpc rock-the-house3 {
94 }
95
96 augment "/cont4" {
97 container cont6 {
98 leaf leaf11 {
99 type string;
100 }
101 }
102 }
103
104 augment "/cont4/cont6" {
105 container cont7 {
106 leaf leaf12 {
107 type string;
108 }
109 }
110 }
111}