Merge "Add support for enums as configuration attributes in config and netconf subsys...
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / yang-to-json-conversion / choice / choice.yang
1 module choice-case-test {
2         namespace "choice:case:test";  
3         
4         prefix "chcatst";
5         revision 2013-11-27 {    
6         }
7         
8         container cont {
9                 leaf lf1 {
10                         type string;
11                 }               
12                 
13                 choice choi1 {
14                         case a1 {
15                                 leaf lf1a {
16                                         type uint16;    
17                                 }
18                                 choice choi1a {
19                                         case aa1 {
20                                                 leaf lf1aa {
21                                                         type string;
22                                                 }
23                                                 choice choi1aa {
24                                                         case aaa1 {
25                                                                 leaf lf1aaa {
26                                                                         type string;
27                                                                 }
28                                                         }
29                                                         case aab1 {
30                                                                 leaf lf1aab {
31                                                                         type string;
32                                                                 }
33                                                         }
34                                                 }
35                                         }
36                                         case ab1 {
37                                                 leaf lf1ab {
38                                                         type string;
39                                                 }
40                                         }
41                                 }
42                         }                       
43                         case b1 {
44                                 list lst1b {
45                                         leaf lf11b {
46                                                 type string;
47                                         }
48                                 }
49                         }
50                         case c1 {
51                                 container cont1c {
52                                         leaf lf11c {
53                                                 type string;
54                                         }
55                                 }
56                         }
57                         case d1 {
58                                 leaf-list lflst1d {
59                                         type string;
60                                 }
61                         }
62                 }
63                 
64                 choice choi2 {
65                         case a2 {
66                                 leaf lf2a {
67                                         type string;
68                                 }
69                         }
70                         case b2 {
71                                 leaf lf2b {
72                                         type string;
73                                 }
74                         }
75                 }
76                 
77 /*               equal identifiers in various cases are illegal 7.9.2 rfc6020 */
78 /*              
79                 choice choi3 {
80                         case 3a {
81                                 leaf lf3a {
82                                         type string;
83                                 }
84                         }
85                         case 3b {
86                                 leaf lf3b {
87                                         type string;
88                                 }
89                         }
90                 }
91 */
92                                 
93         }
94   
95         
96
97 }