Binding v2: Add modules for testing package name collisions 74/37874/3
authorVratko Polak <vrpolak@cisco.com>
Wed, 20 Apr 2016 13:35:14 +0000 (15:35 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 20 May 2016 20:39:44 +0000 (20:39 +0000)
In v1, the source generation passes,
but the dot model overwrites sources of the other models.

Change-Id: I8b2996f948996f7608d66f1f89a7db4cabb72e90
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-Bar.yang [new file with mode: 0644]
binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-bar.yang [new file with mode: 0644]
binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo.bar.yang [new file with mode: 0644]

diff --git a/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-Bar.yang b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-Bar.yang
new file mode 100644 (file)
index 0000000..c141c06
--- /dev/null
@@ -0,0 +1,14 @@
+module odl-test-foo-Bar {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:foo-Bar";
+    prefix "fmB";
+
+    description
+        "One of several modules for testing collisions due to too similar namespaces.";
+
+    revision "2016-04-20" {
+        description
+            "Initial revision, for ODL Boron.";
+    }
+
+}
diff --git a/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-bar.yang b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo-bar.yang
new file mode 100644 (file)
index 0000000..28768a8
--- /dev/null
@@ -0,0 +1,14 @@
+module odl-test-foo-bar {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:foo-bar";
+    prefix "fmb";
+
+    description
+        "One of several modules for testing collisions due to too similar namespaces.";
+
+    revision "2016-04-20" {
+        description
+            "Initial revision, for ODL Boron.";
+    }
+
+}
diff --git a/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo.bar.yang b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-foo.bar.yang
new file mode 100644 (file)
index 0000000..403f0ca
--- /dev/null
@@ -0,0 +1,14 @@
+module odl-test-foo.bar {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:foo.bar";
+    prefix "fdb";
+
+    description
+        "One of several modules for testing collisions due to too similar namespaces.";
+
+    revision "2016-04-20" {
+        description
+            "Initial revision, for ODL Boron.";
+    }
+
+}