[ONOS-7042] Value validation as per defined datatype restriction and pattern
Change-Id: I479e515e74bf59178bc56a8c94de25d14af17933
diff --git a/runtime/src/test/resources/enumListKeyTest.yang b/runtime/src/test/resources/enumListKeyTest.yang
new file mode 100644
index 0000000..e03964a
--- /dev/null
+++ b/runtime/src/test/resources/enumListKeyTest.yang
@@ -0,0 +1,34 @@
+module enumListKeyTest {
+
+ yang-version 1;
+
+ namespace "ydt.enumListKeyTest";
+
+ prefix "enumListKeyTest";
+
+ organization "ON-LAB";
+
+ description "This module defines for enumListKeyTest classifier.";
+
+ revision "2016-05-24" {
+ description "Initial revision.";
+ }
+
+ list enumList {
+ key enumleaf;
+ leaf enumleaf {
+ type enumeration {
+ enum ten { value "10";}
+ enum hundred { value "100";}
+ enum thousand { value "1000"; }
+ }
+ }
+ leaf enumleaf1 {
+ type enumeration {
+ enum ten { value "10";}
+ enum hundred { value "100";}
+ enum thousand { value "1000"; }
+ }
+ }
+ }
+}
\ No newline at end of file