Fix for Bug 586.
[mdsal.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / bug586 / foo.yang
diff --git a/code-generator/binding-java-api-generator/src/test/resources/compilation/bug586/foo.yang b/code-generator/binding-java-api-generator/src/test/resources/compilation/bug586/foo.yang
new file mode 100644 (file)
index 0000000..fcf4891
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+module foo {
+    yang-version 1;
+    namespace "urn:yang.foo";
+    prefix "foo";
+
+    revision "2014-03-28" {
+    }
+
+
+    container services {
+        list service {
+            key "permission";
+
+            leaf permission {
+                type enumeration {
+                    enum permit;
+                    enum deny;
+                }
+            }
+        }
+    }
+
+}