Revert "Do not emit empty lists to NormalizedNodes"
[mdsal.git] / binding / mdsal-binding-test-model / src / main / yang / bug8449.yang
1 module bug8449 {
2     yang-version 1;
3     namespace "bug8449";
4     prefix "tst";
5
6     revision "2017-05-16" {
7     }
8
9     typedef name1-ref {
10         type leafref {
11             path "/tst:top/tst:name1";
12         }
13     }
14
15     typedef name2-ref {
16         type leafref {
17             path "/tst:top/tst:name2";
18         }
19     }
20
21     typedef int32-ref {
22         type leafref {
23             path "/tst:top-int/tst:leaf-int32";
24         }
25     }
26
27     container top-int {
28         leaf leaf-int32 {
29             type uint32;
30         }
31     }
32
33     container top {
34         leaf name1 {
35             type string;
36         }
37         leaf name2 {
38             type string;
39         }
40     }
41
42     container cont-int32 {
43         leaf ref-union-int32 {
44             type union {
45                 type int32-ref;
46             }
47         }
48     }
49
50     container cont {
51         leaf ref {
52             type union {
53                 type name1-ref;
54                 type name2-ref;
55             }
56             mandatory true;
57         }
58     }
59 }
60