Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / duplicates / config-test-runtime-bean-name-conflict2.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module config-test-runtime-bean-name-conflict2 {
3      yang-version 1;
4         namespace "urn:opendaylight:params:xml:ns:yang:controller:jmx:duplicate:runtime:bean";
5         prefix "th-java";
6
7         import config { prefix config; revision-date 2013-04-05; }
8         import ietf-inet-types { prefix inet; revision-date 2010-09-24;}
9
10
11         description
12             "This module contains the base YANG definitions for
13              thread services pure Java implementation.";
14
15         revision "2013-04-05" {
16             description
17                 "Initial";
18         }
19
20        identity async-eventbus {
21             base config:module-type;
22             config:java-name-prefix AsyncEventBus;
23         }
24
25         augment "/config:modules/config:module/config:configuration" {
26             case async-eventbus {
27                 when "/config:modules/config:module/config:type = 'async-eventbus'";
28                     leaf port {
29                         type string;
30                     }
31                 }
32             }
33
34         augment "/config:modules/config:module/config:state" {
35             case async-eventbus {
36                 when "/config:modules/config:module/config:type = 'async-eventbus'";
37
38                 list state-a {
39                    config:inner-state-bean;
40
41                    leaf port {
42                        type string;
43                    }
44                 }
45             }
46         }
47
48
49         identity async-eventbus-b {
50             base config:module-type;
51             config:java-name-prefix AsyncEventBusB;
52         }
53
54         augment "/config:modules/config:module/config:configuration" {
55             case async-eventbus-b {
56                 when "/config:modules/config:module/config:type = 'async-eventbus-b'";
57                     leaf port {
58                         type string;
59                     }
60                 }
61             }
62
63         augment "/config:modules/config:module/config:state" {
64             case async-eventbus-b {
65                 when "/config:modules/config:module/config:type = 'async-eventbus-b'";
66
67                 list state-a {
68                    config:inner-state-bean;
69
70                    leaf port {
71                        type string;
72                    }
73
74                 }
75             }
76         }
77 }