Add support for configuration attributes based on yang leaves with custom types ...
[controller.git] / opendaylight / config / yang-test / src / main / yang / types / test-types.yang
diff --git a/opendaylight/config/yang-test/src/main/yang/types/test-types.yang b/opendaylight/config/yang-test/src/main/yang/types/test-types.yang
new file mode 100644 (file)
index 0000000..84fbcb0
--- /dev/null
@@ -0,0 +1,26 @@
+module test-types {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:config:test:types";
+    prefix "tt";
+
+    description
+        "Types generated for testing";
+
+    revision "2013-11-27";
+
+    typedef extend-once {
+        type uint16;
+    }
+
+    typedef extend-twice {
+        type extend-once;
+    }
+
+    typedef extend-enum {
+        type enumeration {
+            enum "ONE";
+            enum "TWO";
+        }
+    }
+
+}