BUG-421: Define multipart-transaction-aware
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / opendaylight-queue-statistics.yang
index 9c48cfdbe874ae7fb1c128cf703bd2a94e2fbad2..caf52aa9efddbb656784776f2995002ab75b85f2 100644 (file)
@@ -2,7 +2,7 @@ module opendaylight-queue-statistics {
     namespace "urn:opendaylight:queue:statistics";
     prefix queuestat;
 
-       import flow-capable-transaction {prefix tr;}
+    import flow-capable-transaction {prefix tr;}
     import yang-ext {prefix ext; revision-date "2013-07-09";}
     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
     import flow-node-inventory {prefix flow-node;revision-date "2013-08-19";}
@@ -18,35 +18,35 @@ module opendaylight-queue-statistics {
     }
     
     //Augment queue statistics data to the flow-capable-node-connector
-       augment "/inv:nodes/inv:node/inv:node-connector/flow-node:queue" {
+    augment "/inv:nodes/inv:node/inv:node-connector/flow-node:queue" {
         ext:augment-identifier "flow-capable-node-connector-queue-statistics-data";
         uses flow-capable-node-connector-queue-statistics;
     }
-       
-       grouping flow-capable-node-connector-queue-statistics {
+    
+    grouping flow-capable-node-connector-queue-statistics {
         container flow-capable-node-connector-queue-statistics {
             //config "false";
             uses stat-types:generic-queue-statistics;
         }
-       }    
-       
-       //RPC calls to fetch queue statistics
+    }    
+    
+    //RPC calls to fetch queue statistics
     grouping queue-id-and-statistics-map {
-       list queue-id-and-statistics-map {
-               key "queue-id node-connector-id";
-               leaf queue-id {
-                       type queue-types:queue-id;
-               }
-               leaf node-connector-id {
-                       type inv:node-connector-id;
-               }
-               
+        list queue-id-and-statistics-map {
+            key "queue-id node-connector-id";
+            leaf queue-id {
+                type queue-types:queue-id;
+            }
+            leaf node-connector-id {
+                type inv:node-connector-id;
+            }
+            
             uses stat-types:generic-queue-statistics;
-       }
+        }
     }
     
     rpc get-all-queues-statistics-from-all-ports {
-       description "Get statistics for all the queues attached to all the ports from the node";
+        description "Get statistics for all the queues attached to all the ports from the node";
         input {
             uses inv:node-context-ref;
         }
@@ -57,44 +57,41 @@ module opendaylight-queue-statistics {
     }
     
     rpc get-all-queues-statistics-from-given-port {
-       description "Get statistics for all queues for given port of the node";
-       input {
-               uses inv:node-context-ref;
-               leaf node-connector-id {
-                       type inv:node-connector-id;
-               }
-       }
-       output {
+        description "Get statistics for all queues for given port of the node";
+        input {
+            uses inv:node-context-ref;
+            leaf node-connector-id {
+                type inv:node-connector-id;
+            }
+        }
+        output {
             uses queue-id-and-statistics-map;
             uses tr:transaction-aware;
-       }
+        }
     }
     
     rpc get-queue-statistics-from-given-port {
-       description "Get statistics for given queues from given port of the node";
-       input {
-               uses inv:node-context-ref;
-               leaf node-connector-id {
-                       type inv:node-connector-id;
-               }
-               leaf queue-id {
-                       type queue-types:queue-id;
-               }
-       }
-       output {
+        description "Get statistics for given queues from given port of the node";
+        input {
+            uses inv:node-context-ref;
+            leaf node-connector-id {
+                type inv:node-connector-id;
+            }
+            leaf queue-id {
+                type queue-types:queue-id;
+            }
+        }
+        output {
             uses queue-id-and-statistics-map;
             uses tr:transaction-aware;
-       }
+        }
     }
 
     //Notification for port statistics update
 
-       notification queue-statistics-update {
-        leaf moreReplies {
-            type boolean;
-        }
+    notification queue-statistics-update {
         uses inv:node;
-               uses queue-id-and-statistics-map;
-        uses tr:transaction-aware;
+        uses queue-id-and-statistics-map;
+        uses tr:multipart-transaction-aware;
     }
 }