Port and statistics models updated.
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / statistics-types.yang
index 47c4c9369e2ded77a471de29928e58e1fbef82df..f5c07edb878ec9951ced93b9147574a8d0bb8388 100644 (file)
@@ -2,14 +2,13 @@ module opendaylight-statistics-types {
     namespace "urn:opendaylight:model:statistics:types";
     prefix stat-types;
 
+    import ietf-yang-types {prefix yang;}
     import opendaylight-inventory {prefix inv;}
-
+    import opendaylight-port-inventory {prefix port-inv;}
     
-    revision "2013-08-19" {
+    revision "2013-09-25" {
         description "Initial revision of flow service";
-    }
-
-    
+    }    
 
     grouping node-connector-statistics {
        container packets {
@@ -52,5 +51,18 @@ module opendaylight-statistics-types {
         leaf collision-count {
             type uint64;
         }
+        
+        container duration {
+            leaf second {
+                type yang:counter32;
+            }
+            leaf nanosecond {
+                type yang:counter32;
+            }
+        }
+    }
+    
+    grouping ofp-port-description {
+        uses port-inv:ofp-port;
     }
 }
\ No newline at end of file