External api proposal
[openflowplugin.git] / model / model-flow-statistics / src / main / yang / opendaylight-statistics-types.yang
index 19d6eafa789204b252caa2e8da233808dbce150e..3ca453082b87e6a631dd0404aa3a283aad469b7b 100644 (file)
@@ -3,12 +3,16 @@ module opendaylight-statistics-types {
     prefix stat-types;
 
     import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
-    
+
+    description "Openflowplugin statistics common types.";
+
     revision "2013-09-25" {
         description "Initial revision of flow service";
     }
-    
+
     grouping duration {
+        description "Duration, contains seconds and nanoseconds.";
+
         container duration {
             leaf second {
                 type yang:counter32;
@@ -20,7 +24,9 @@ module opendaylight-statistics-types {
     }
 
     grouping node-connector-statistics {
-       container packets {
+        description "Openflow node connector (port) statistics structure.";
+
+        container packets {
             leaf received {
                 type uint64;
             }
@@ -62,9 +68,10 @@ module opendaylight-statistics-types {
         }
         uses duration;
     }
-    
+
     grouping generic-statistics {
-       description "Generic grouping for statistics";
+        description "Generic grouping for statistics";
+
         leaf packet-count {
             type yang:counter64;
         }
@@ -72,24 +79,26 @@ module opendaylight-statistics-types {
         leaf byte-count {
             type yang:counter64;
         }
-       uses duration;
-       }
-    
+        uses duration;
+    }
+
     grouping generic-table-statistics {
-       description "Generic grouping holding generic statistics related to switch table";
-       leaf active-flows {
+        description "Generic grouping holding generic statistics related to switch table";
+
+        leaf active-flows {
             type yang:counter32;
-       }
-       leaf packets-looked-up {
-               type yang:counter64;
-       }
-       leaf packets-matched {
-               type yang:counter64;
-       }
+        }
+        leaf packets-looked-up {
+            type yang:counter64;
+        }
+        leaf packets-matched {
+            type yang:counter64;
+        }
     }
-    
+
     grouping aggregate-flow-statistics {
-       description "Aggregate flow statistics";
+        description "Aggregate flow statistics";
+
         leaf packet-count {
             type yang:counter64;
         }
@@ -101,21 +110,21 @@ module opendaylight-statistics-types {
             type yang:counter32;
         }
     }
-    
+
     grouping generic-queue-statistics {
-       description "Generic statistics of switch port attached queues.";
-       leaf transmitted-bytes {
-                       type yang:counter64;
-       }
-       
-       leaf transmitted-packets {
-                       type yang:counter64;
-       }
-       
-       leaf transmission-errors {
-                       type yang:counter64;
-       }
-               uses duration;          
+        description "Generic statistics of switch port attached queues.";
+
+        leaf transmitted-bytes {
+            type yang:counter64;
+        }
+
+        leaf transmitted-packets {
+            type yang:counter64;
+        }
+
+        leaf transmission-errors {
+            type yang:counter64;
+        }
+        uses duration;
     }
-    
 }