Add binding v2 model for testing characters in identifier names 98/36998/4
authorVratko Polak <vrpolak@cisco.com>
Fri, 1 Apr 2016 10:15:22 +0000 (12:15 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 20 May 2016 20:39:25 +0000 (20:39 +0000)
Just a Yang file, no actual unit test.

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

diff --git a/binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang b/binding/mdsal-binding-spec-2/src/test/resources/odl-test-identifiers.yang
new file mode 100644 (file)
index 0000000..1a2ccb3
--- /dev/null
@@ -0,0 +1,52 @@
+module odl-test-identifiers {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:mdsal:binding2:test:identifiers";
+    prefix "oti";
+
+    description
+        "Testing allowed identifier names.
+        see http://tools.ietf.org/html/rfc6020#section-6.2";
+
+    revision "2016-03-31" {
+        description
+            "Initial revision, for ODL Boron.";
+    }
+
+    container items {
+        list item {
+            description
+                "Each identifier starts with an uppercase or lowercase ASCII
+                letter or an underscore character, followed by zero or more ASCII
+                letters, digits, underscore characters, hyphens, and dots.";
+            key "foo Foo FOO fOO foo0 foo_ foo- foo. _foo"
+            leaf foo {
+                type string;
+            }
+            leaf Foo {
+                type string;
+            }
+            leaf FOO {
+                type string;
+            }
+            leaf fOO {
+                type string;
+            }
+            leaf foo0 {
+                type string;
+            }
+            leaf foo_ {
+                type string;
+            }
+            leaf foo- {
+                type string;
+            }
+            leaf foo. {
+                type string;
+            }
+            leaf _foo {
+                type string;
+            }
+        }
+    }
+
+}