Initial code drop of yang model driven configuration system
[controller.git] / opendaylight / config / yang-jmx-generator / src / test / resources / duplicates / config-test-runtime-bean-list-name-conflict.yang
diff --git a/opendaylight/config/yang-jmx-generator/src/test/resources/duplicates/config-test-runtime-bean-list-name-conflict.yang b/opendaylight/config/yang-jmx-generator/src/test/resources/duplicates/config-test-runtime-bean-list-name-conflict.yang
new file mode 100644 (file)
index 0000000..c39692d
--- /dev/null
@@ -0,0 +1,57 @@
+// vi: set smarttab et sw=4 tabstop=4:
+module config-test-runtime-bean-list-name-conflict {
+     yang-version 1;
+        namespace "urn:opendaylight:params:xml:ns:yang:controller:jmx:duplicate:runtime:bean";
+        prefix "th-java";
+
+        import config { prefix config; revision-date 2013-04-05; }
+        import ietf-inet-types { prefix inet; revision-date 2010-09-24;}
+
+        description
+            "This module contains the base YANG definitions for NS-OS
+             thread services pure Java implementation.";
+
+        revision "2013-04-05" {
+            description
+                "Updated to work with new anchors.";
+        }
+
+        revision "2013-04-03" {
+            description
+                "Initial revision";
+        }
+
+       identity async-eventbus {
+            base config:module-type;
+            config:java-name-prefix AsyncEventBus;
+        }
+
+        augment "/config:modules/config:module/config:configuration" {
+            case async-eventbus {
+                when "/config:modules/config:module/config:type = 'async-eventbus'";
+                    leaf port {
+                        type string;
+                    }
+                }
+            }
+
+        augment "/config:modules/config:module/config:state" {
+            case async-eventbus {
+                when "/config:modules/config:module/config:type = 'async-eventbus'";
+
+                list state-a-runtime-mX-bean {
+                   leaf port {
+                       type string;
+                   }
+                }
+
+                list state-a {
+                   config:inner-state-bean;
+
+                   leaf port {
+                       type string;
+                   }
+                }
+            }
+        }
+}