Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / test-config-files1.yang
1 module test-config-files1 {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:test:files1";
4     prefix "it-duplicate";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import ietf-inet-types { prefix inet; revision-date 2010-09-24;}
8
9
10     description
11         "Testing IMPL";
12
13     revision "2013-04-03" {
14         description
15             "Initial revision";
16     }
17
18     identity implementation1 {
19         base config:module-type;
20         config:java-name-prefix TestFiles1Impl;
21     }
22
23     identity netconf1 {
24         base config:module-type;
25         config:java-name-prefix NetconfTestFiles1Impl;
26     }
27
28     augment "/config:modules/config:module/config:configuration" {
29         case implementation1 {
30             when "/config:modules/config:module/config:type = 'implementation1'";
31
32            container dto-a {
33                 leaf simple-arg {
34                     type uint32;
35                 }
36
37                 leaf port {
38                     type inet:port-number;
39                 }
40
41             }
42         }
43     }
44
45     augment "/config:modules/config:module/config:state" {
46         case implementation1 {
47             when "/config:modules/config:module/config:type = 'implementation1'";
48             // root runtime bean
49             leaf created-sessions {
50                 type uint32;
51             }
52         }
53     }
54
55     augment "/config:modules/config:module/config:configuration" {
56         case netconf1 {
57             when "/config:modules/config:module/config:type = 'netconf1'";
58         }
59     }
60
61     augment "/config:modules/config:module/config:state" {
62         case netconf1 {
63             when "/config:modules/config:module/config:type = 'netconf1'";
64             // root runtime bean
65             leaf created-sessions {
66                 type uint32;
67             }
68
69         }
70     }
71 }