moved YANG schema files from root folder into ./schema directory, introduced package.json to prepare for adding code bindings, fix minor issues with YANG schema validation
diff --git a/schema/cord-device.yang b/schema/cord-device.yang
new file mode 100644
index 0000000..df77138
--- /dev/null
+++ b/schema/cord-device.yang
@@ -0,0 +1,49 @@
+module cord-device {
+ namespace "urn:onlab:cord:device";
+ prefix cord-dev;
+ yang-version 1.1;
+
+ organization
+ "Open Networking Lab (CORD) / Corenova Technologies";
+
+ contact
+ "Larry Peterson <llp@onlab.us>
+ Peter K. Lee <peter@corenova.com>";
+
+ import ietf-yang-types { prefix yang; }
+
+ revision 2016-07-14 {
+ description "Initial revision.";
+ }
+
+ typedef bandwidth {
+ type uint32 {
+ range 1000000..max; // should be at least 1 Mbps?
+ }
+ units 'bps';
+ }
+
+ grouping device {
+ leaf mac { type yang:mac-address; mandatory true; }
+ leaf identity { type string; }
+
+ leaf subscriber {
+ type instance-identifier;
+ config false;
+ }
+
+ container features {
+ // how are the uplink/downlink speeds defined here related to 'subscriber'?
+ leaf uplink-speed {
+ type bandwidth;
+ default 1000000000;
+ }
+ leaf downlink-speed {
+ type bandwidth;
+ default 1000000000;
+ }
+ action update;
+ }
+ action save;
+ }
+}