Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / simple-leaf-list-demo.yang
diff --git a/binding/mdsal-binding-java-api-generator/src/test/resources/simple-leaf-list-demo.yang b/binding/mdsal-binding-java-api-generator/src/test/resources/simple-leaf-list-demo.yang
new file mode 100644 (file)
index 0000000..f5d8345
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * 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 simple-leaf-list-demo {
+    yang-version 1;
+    namespace "urn:simple.leaf-list.demo";
+    prefix "scd";
+
+    organization "OPEN DAYLIGHT";
+    contact "http://www.opendaylight.org/";
+
+    description "
+        This module contains the definitions of elements that creates network 
+        topology i.e. definition of network nodes and links. This module is
+        not designed to be used solely for network representation. This module
+        SHOULD be used as base module in defining the network topology.
+    ";
+
+    revision "2012-02-08" {
+        reference " WILL BE DEFINED LATER";
+    }
+
+    revision "2010-02-08" {
+        reference " WILL BE DEFINED LATER";
+    }
+
+    container simple-container {
+
+        leaf-list foo {
+            type int32;
+        }
+
+        leaf bar {
+            type string;
+            config true;
+        }
+
+        container nested-container {
+            leaf foo {
+                type uint8;
+            }
+
+            leaf-list bar {
+                type string;
+                config true;
+            }
+        }
+    }
+}