Added cookie to data packet model 56/2056/2
authorTony Tkacik <ttkacik@cisco.com>
Mon, 21 Oct 2013 17:07:50 +0000 (19:07 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 21 Oct 2013 17:39:50 +0000 (17:39 +0000)
Change-Id: If4a160536a7e7058741efd7ba795f82f545fccbf
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/model/model-flow-service/src/main/yang/packet-processing.yang

index 260de5fd0cbf021d3730d8c1d91259c797cba57f..24fc6429af688bedb0b426c6f21e98eb40f53c56 100644 (file)
@@ -11,11 +11,15 @@ module packet-processing {
         description "";
     }
 
+    typedef cookie {
+        type uint32;
+    }
+
     grouping raw-packet {
        leaf ingress {
                type inv:node-connector-ref;
        }
-       leaf payload {
+        leaf payload {
                type binary;
        }
     }
@@ -32,11 +36,17 @@ module packet-processing {
 
 
     notification packet-received {
-       uses raw-packet;
+       leaf cookie {
+                type cookie;
+        }
+        uses raw-packet;
     }
 
     rpc transmit-packet {
        input {
+            leaf cookie {
+                type cookie;
+            }
                leaf egress {
                        type inv:node-connector-ref;
                }