Updated Flow Capable Models & AD SAL Compatibility mapping
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / flow-statistics.yang
index 7e00a36c0d8a9ba27c21868321bc4440f2a30e6e..fb6f82d05bb1b74e3db340617104ba2afbb81ac7 100644 (file)
@@ -8,6 +8,7 @@ module opendaylight-flow-statistics {
     import sal-flow {prefix flow;}
     import opendaylight-statistics-types {prefix stat-types;}
 
+
     revision "2013-08-19" {
         description "Initial revision of flow service";
     }
@@ -15,7 +16,7 @@ module opendaylight-flow-statistics {
     rpc get-node-connector-statistics {
         input {
             leaf node {
-                ext:context-reference "node-context";
+                ext:context-reference "inv:node-context";
                 type inv:node-ref;
             }
             leaf node-connector {
@@ -27,14 +28,10 @@ module opendaylight-flow-statistics {
         }
     }
 
-    notification node-connector-statistics-updated {
-        uses stat-types:node-connector-statistics;
-    }
-
     rpc get-flow-statistics {
         input {
             leaf node {
-                ext:context-reference "node-context";
+                ext:context-reference "inv:node-context";
                 type inv:node-ref;
             }
             uses flow-types:flow;
@@ -44,6 +41,34 @@ module opendaylight-flow-statistics {
         }
     }
 
+    rpc get-all-flow-statistics {
+        input {
+            leaf node {
+                ext:context-reference "inv:node-context";
+                type inv:node-ref;
+            }
+        }
+        output {
+            list flow-statistics {
+                uses flow-types:flow-statistics;
+            }
+        }
+    }
+
+    rpc get-all-node-connector-statistics {
+        input {
+            leaf node {
+                ext:context-reference "inv:node-context";
+                type inv:node-ref;
+            }
+        }
+        output {
+            list node-connector-statistics {
+                uses stat-types:node-connector-statistics;
+            }
+        }
+    }
+
     notification flow-statistics-updated {
         uses flow-types:flow-statistics;
     }
@@ -51,7 +76,7 @@ module opendaylight-flow-statistics {
     rpc get-flow-table-statistics {
         input {
             leaf node {
-                ext:context-reference "node-context";
+                ext:context-reference "inv:node-context";
                 type inv:node-ref;
             }
         }
@@ -67,4 +92,9 @@ module opendaylight-flow-statistics {
         uses flow-types:flow-table-statistics;
     }
 
-}
\ No newline at end of file
+    notification node-connector-statistics-updated {
+        uses stat-types:node-connector-statistics;
+    }
+
+
+}