Bug 3670 (part 4/5 - mdsal): Use of new statement parser in yang-maven-plugin
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / test-type-provider-b.yang
1 module test-type-provider-b {
2     yang-version 1;
3     namespace "urn:opendaylight:org:test:type:provider:b:model";
4     prefix "tp";
5
6     import test-type-provider { prefix prov; }
7
8     organization "OPEN DAYLIGHT";
9     contact "http://www.opendaylight.org/";
10
11     description "This module contains model for providing test data for Type Provider Test implementation.";
12
13     revision "2014-09-15" {
14         reference "Initial Revision.";
15     }
16
17     leaf id {
18         type leafref {
19             path "/prov:foo/prov:bars/prov:bar-item/prov:id";
20         }
21     }
22
23     leaf enum {
24         type leafref {
25             path "/prov:foo/prov:resolve-direct-use-of-enum";
26         }
27     }
28
29     leaf-list enums {
30         type leafref {
31             path "/prov:foo/prov:list-of-enums";
32         }
33     }
34
35     leaf conditional-leafref {
36         type leafref {
37             path "/prov:foo/prov:bars/prov:bar-item[prov:id=10]";
38         }
39     }
40
41     leaf unreslovable-leafref {
42         type leafref {
43             path "/somewhere/i/bellong";
44         }
45     }
46 }