Updated models, modeling existing SAL and its functionality
[controller.git] / opendaylight / sal / yang-prototype / sal / model / model-flow-statistics / src / main / yang / statistics-types.yang
similarity index 54%
rename from opendaylight/sal/yang-prototype/sal/model/model-flow-statistics/src/main/yang/opendaylight-flow-statistics.yang
rename to opendaylight/sal/yang-prototype/sal/model/model-flow-statistics/src/main/yang/statistics-types.yang
index 3c1bb70e6886a5b27d16e915f45288abf5267099..47c4c9369e2ded77a471de29928e58e1fbef82df 100644 (file)
@@ -1,44 +1,18 @@
-module opendaylight-flow-statistics {
-    namespace "urn:opendaylight:flow:statistics";
-    prefix flowstat;
+module opendaylight-statistics-types {
+    namespace "urn:opendaylight:model:statistics:types";
+    prefix stat-types;
 
-    import yang-ext {prefix ext;}
-    import ietf-inet-types {prefix inet;}
-    import ietf-yang-types {prefix yang;}
-    import opendaylight-flow-base {prefix flow;}
     import opendaylight-inventory {prefix inv;}
 
+    
     revision "2013-08-19" {
         description "Initial revision of flow service";
     }
 
-    /*
-    augment "/flow:flows/flow:flow" {
-        ext:augment-identifier "flow-statistics";
+    
 
-        leaf packet-count {
-            type uint64;
-        } 
-
-        leaf byte-count {
-            type uint64;
-        }
-
-        container duration {
-            leaf second {
-                type uint64;
-            }
-            leaf nanosecond {
-                type uint64;
-            }
-        }
-    }
-    */
-
-    augment "/inv:nodes/inv:node/inv:node-connector" {
-        ext:augment-identifier "node-connector-statistics";
-
-        container packets {
+    grouping node-connector-statistics {
+       container packets {
             leaf received {
                 type uint64;
             }
@@ -78,7 +52,5 @@ module opendaylight-flow-statistics {
         leaf collision-count {
             type uint64;
         }
-
     }
-
 }
\ No newline at end of file