External api proposal
[openflowplugin.git] / model / model-flow-service / src / main / yang / flow-capable-transaction.yang
index 160291cf21a3f494daa221bb961290a35687127a..fa62de826ca646bf0ba845eaa4d9eece0589e139 100644 (file)
@@ -6,27 +6,33 @@ module flow-capable-transaction {
     import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
     import yang-ext {prefix ext; revision-date "2013-07-09";}
 
-    revision "2013-11-03" {
-        description "Initial revision";
+    revision "2015-03-04" {
+        description "Transaction support for openflow, contains:
+         - barrier rpc
+         - tentative transaction support structures";
     }
 
     typedef transaction-id {
         type uint64;
     }
-    // This refers to MD-SAL transaction reference.
     grouping transaction-metadata {
+      description "Refers to MD-SAL transaction reference.";
         leaf transaction-uri {
             type inet:uri;
         }
     }
 
     grouping transaction-aware {
+        status deprecated;
+
         leaf transaction-id {
             type transaction-id;
         }
     }
 
     grouping multipart-transaction-aware {
+        status deprecated;
+
         uses transaction-aware;
 
         leaf moreReplies {
@@ -35,28 +41,13 @@ module flow-capable-transaction {
         }
     }
 
-    rpc get-next-transaction-id {
-        input {
-            leaf node {
-                ext:context-reference "inv:node-context";
-                type inv:node-ref;
-            }
-        }
-        output {
-            uses transaction-aware;
-        }
-    }
-
-    // Barier request?
-    rpc finish-transaction {
+    rpc send-barrier {
+        description "barrier request";
         input {
             leaf node {
                 ext:context-reference "inv:node-context";
                 type inv:node-ref;
             }
-            leaf transaction-id {
-                type transaction-id;
-            }
         }
     }
 }