aboutsummaryrefslogtreecommitdiffstats
path: root/restconf-client/provider/src/test/resources/yang/test_name_of_the_module.yang
blob: 973475ee703e4ed5eded20414b205b286ca118ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
module test_name_of_the_module {
    yang-version 1;
    namespace "urn:opendaylight:params:xml:ns:yang:test:name";
    prefix "name";

    revision "2015-01-05" {
        description "Initial revision of hello model";
    }

    container name_of_the_cont1 {
        container name_of_the_cont2 {
            container name_of_the_cont3 {
                leaf name_of_the_leaf10 {
                    type string;
                }
            }
            list name_of_the_list1 {
                key "name_of_the_leaf1 name_of_the_leaf2";
                leaf name_of_the_leaf1 {
                    type empty;
                }
                leaf name_of_the_leaf2 {
                    type string;
                }
                leaf name_of_the_leaf3 {
                    type string;
                }
                leaf-list name_of_the_ll1 {
                    type string;
                }
                leaf-list name_of_the_ll2 {
                    type string;
                }
                container name_of_the_cont4 {
                    leaf name_of_the_leaf11 {
                        type string;
                    }
                }
                list name_of_the_list4 {
                    leaf name_of_the_leaf8 {
                        type string;
                    }
                }
                list name_of_the_list5 {
                    leaf name_of_the_leaf9 {
                        type string;
                    }
                }
            }
            list name_of_the_list2 {
                leaf name_of_the_leaf4 {
                    type string;
                }
            }
            leaf name_of_the_leaf5 {
                type string;
            }
            leaf name_of_the_leaf6 {
                type string;
            }
            leaf-list name_of_the_ll3 {
                type string;
            }
            leaf-list name_of_the_ll4 {
                type string;
            }
        }
    }

    augment "/name_of_the_cont1/name_of_the_cont2" {
        container name_of_the_cont4 {
            leaf name_of_the_leaf10 {
               type string;
            }
        }
        list name_of_the_list6 {
           leaf name_of_the_leaf11 {
              type string;
           }
        }
        leaf name_of_the_leaf12 {
            type string;
        }
        leaf-list name_of_the_ll5 {
            type string;
        }
    }

    choice name_of_the_ch1 {
        case name_of_the_c1 {
            container name_of_the_cont8 {
                container name_of_the_cont6 {
                    leaf name_of_the_leaf16 {
                        type string;
                    }
                }
                list name_of_the_list8 {
                    leaf name_of_the_leaf18 {
                        type string;
                    }
                }
                leaf name_of_the_leaf19 {
                    type string;
                }
                leaf-list name_of_the_ll7 {
                    type string;
                }
            }
        }
        case name_of_the_c2 {
            container name_of_the_cont9 {
                leaf name_of_the_leaf20 {
                    type string;
                }
                leaf-list name_of_the_ll8 {
                    type string;
                }
                container name_of_the_cont11 {
                    choice name_of_the_ch3 {
                        case name_of_the_c1 {
                            leaf name_of_the_leaf25 {
                                type string;
                            }
                            uses name_of_the_g1;
                        }
                    }
                }
            }
        }
    }

    grouping name_of_the_g1 {
        container name_of_the_cont13 {
            container name_of_the_cont12 {
                leaf name_of_the_leaf26 {
                    type string;
                }
            }
            list name_of_the_list9 {
                leaf name_of_the_leaf27 {
                    type string;
                }
            }
            leaf name_of_the_leaf28 {
                type string;
            }
            leaf-list name_of_the_ll9 {
                type string;
            }
        }
    }

    uses name_of_the_g1;

    rpc name_of_the_create-sfc {
        input {
            container name_of_the_cont14 {
                leaf name_of_the_leaf28 {
                    type string;
                }
            }
            list name_of_the_list10 {
                leaf name_of_the_leaf29 {
                    type string;
                }
            }
            leaf name_of_the_leaf30 {
                type string;
            }
            leaf-list name_of_the_ll10 {
                type string;
            }
            choice name_of_the_ch3 {
                case name_of_the_c1 {
                    container name_of_the_cont15 {
                        leaf name_of_the_leaf31 {
                            type string;
                        }
                    }
                }
            }
            uses name_of_the_g1;
        }
        output {
            container name_of_the_cont16 {
                leaf name_of_the_leaf32 {
                    type string;
                }
            }
            list name_of_the_list11 {
                leaf name_of_the_leaf33 {
                    type string;
                }
            }
            leaf name_of_the_leaf34 {
                type string;
            }
            leaf-list name_of_the_ll11 {
                type string;
            }
            choice name_of_the_ch4 {
                case name_of_the_c1 {
                    container name_of_the_cont17 {
                        leaf name_of_the_leaf35 {
                            type string;
                        }
                    }
                }
            }
            uses name_of_the_g1;
        }
    }

    container name_of_the_cont18 {
        container name_of_the_cont18 {
            list name_of_the_list12 {
                list name_of_the_list12 {
                    leaf name_of_the_leaf36 {
                        type string;
                    }
                }
                leaf name_of_the_leaf36 {
                    type string;
                }
            }
        }
        leaf name_of_the_leaf40 {
            type string;
        }
    }
}