Merge "Bug 1386: Avoid commit deadlock"
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / src / test / resources / augment_choice.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-3-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
109 }