Do not pretty-print body class
[yangtools.git] / yang / yang-data-impl / src / test / resources / org / opendaylight / yangtools / yang / data / impl / schema / augment_choice_hell.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module test {
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:test";
5     prefix "test";
6
7     organization "Cisco Systems, Inc.";
8
9     revision "2014-03-13" {
10         description
11             "Initial revision";
12     }
13
14
15     container container {
16         choice ch2{}
17         choice ch3{
18             case c3 {
19                 leaf c3Leaf {
20                     type string;
21                 }
22             }
23         }
24     }
25
26     augment "/container/" {
27         leaf augLeaf {
28             type string;
29         }
30     }
31
32     augment "/container/" {
33         choice ch{}
34     }
35
36     augment "/container/ch/" {
37         case c1 {
38             leaf c1Leaf {
39                 type string;
40             }
41         }
42
43         leaf c12 {
44             type string;
45         }
46     }
47     augment "/container/ch/c1/" {
48         leaf c1Leaf_AnotherAugment {
49             type string;
50         }
51
52         choice deepChoice{}
53     }
54
55     augment "/container/ch3/" {
56         case c32 {
57             leaf c32Leaf {
58                 type string;
59             }
60         }
61
62         leaf c34LeafS {
63             type string;
64         }
65     }
66
67
68     augment "/container/ch/c1/deepChoice/" {
69         case deepCase1 {
70             leaf deepLeafc1 {
71                 type string;
72             }
73         }
74         case deepCase2 {
75             leaf deepLeafc2 {
76                 type string;
77             }
78         }
79     }
80
81     augment "/container/ch2/" {
82         case c2 {
83             leaf c2Leaf {
84                 type string;
85             }
86
87             choice c2DeepChoice {
88                 case c2DeepChoiceCase1 {
89                     leaf c2DeepChoiceCase1Leaf1 {
90                         type string;
91                     }
92                 }
93                 case c2DeepChoiceCase2 {
94                     leaf c2DeepChoiceCase1Leaf2 {
95                         type string;
96                     }
97                 }
98             }
99         }
100     }
101
102     augment "/container/ch2/" {
103         leaf c22Leaf {
104             type string;
105         }
106     }
107
108     augment "/container" {
109         /*ext:augment-identifier top-choice-augment1;*/
110         choice augment-choice1 {
111             case case1 {
112                 container case1-container {
113                     leaf case1-leaf {
114                         type string;
115                     }
116                 }
117             }
118
119             case case2 {
120                 container case2-container {
121                     leaf case2-leaf {
122                         type string;
123                     }
124                 }
125             }
126         }
127     }
128
129     augment "/container/augment-choice1/case1" {
130         /*ext:augment-identifier top-choice-augment2;*/
131         choice augment-choice2 {
132             case case11 {
133                 container case11-choice-case-container {
134                     leaf case11-choice-case-leaf {
135                         type string;
136                     }
137                 }
138             }
139         }
140     }
141
142
143 }