Bug 8910 - Binding v2 generator exception: Failed to find leafref target
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / resources / leafref / test-leafref.yang
1 module test-leafref {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:test:leafref";
5     prefix "test";
6
7     revision "2017-02-24" {
8         description "Initial revision of test model.";
9     }
10
11     container test-container {
12         list test-list {
13             leaf test-leaf {
14                 type enumeration {
15                     enum enum1 {
16                         value 1;
17                     }
18                     enum enum2 {
19                         value 2;
20                     }
21                 }
22             }
23         }
24     }
25
26     container test-leafref-container {
27         leaf test-leafref {
28             type leafref {
29                 path "/test:test-container/test:test-list/test:test-leaf";
30             }
31         }
32     }
33
34 }