Bug 6102: Upgrade ietf-{inet,yang}-types to 2013-07-15
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / duplicates / config-test-generated-attributes-name-conflict.yang
1 // vi: set smarttab et sw=4 tabstop=4:
2 module config-test-generated-attributes-name-conflict {
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 2013-07-15;}
9
10         description
11             "This module contains the base YANG definitions for NS-OS
12              thread services pure Java implementation.";
13
14         revision "2013-04-05" {
15             description
16                 "Updated to work with new anchors.";
17         }
18
19         revision "2013-04-03" {
20             description
21                 "Initial revision";
22         }
23
24        identity async-eventbus {
25             base config:module-type;
26             config:java-name-prefix AsyncEventBus;
27         }
28
29         augment "/config:modules/config:module/config:configuration" {
30             case async-eventbus {
31                 when "/config:modules/config:module/config:type = 'async-eventbus'";
32                     leaf port {
33                         type string;
34                     }
35
36                     list state-b {
37                       leaf port {
38                           type string;
39                       }
40                     }
41
42                     container stateB {
43                       leaf port {
44                           type string;
45                       }
46                     }
47                 }
48             }
49
50         augment "/config:modules/config:module/config:state" {
51             case async-eventbus {
52                 when "/config:modules/config:module/config:type = 'async-eventbus'";
53
54                 list state-a {
55                    config:inner-state-bean;
56
57                    leaf port {
58                        type string;
59                    }
60
61                    list state-b {
62                       leaf port {
63                           type string;
64                       }
65                    }
66                 }
67             }
68         }
69 }