Added support for parsing submodules & added dependency utility parser
[yangtools.git] / yang / yang-parser-impl / src / test / resources / submodule-test / subfoo.yang
1 submodule subfoo {
2     yang-version 1;
3
4     belongs-to foo {
5         prefix f;
6     } 
7
8     import bar {
9         prefix "br";
10         revision-date 2013-07-03;
11     }
12
13     import baz {
14         prefix "bz";
15         revision-date 2013-02-27;
16     }
17
18     revision "2013-02-27" {
19     }
20
21     leaf id {
22         type br:int32-ext2 {
23             range "12..max";
24         }
25     }
26
27     container sub-ext {
28         bz:c-define "MY_INTERFACES";
29     }
30
31
32     container sub-transfer {
33         choice how {
34             default interval;
35             container input {
36             }
37             list output {
38                 leaf id {
39                     type string;
40                 }
41             }
42             case manual {
43                 leaf manual {
44                     type empty;
45                 }
46             }
47         }
48     }
49
50     anyxml sub-datas {
51         status obsolete;
52     }
53
54     augment "/br:interfaces/br:ifEntry/bz:augment-holder" {
55         when "if:ifType='ds0'";
56         leaf subleaf {
57             type string;
58         }
59     }
60
61     extension sub-mountpoint {
62         argument "name" {
63             yin-element "true";
64         }
65     }
66
67 }