added notification to group and meter
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / packet-processing.yang
index 260de5fd0cbf021d3730d8c1d91259c797cba57f..f93b7b4c0c82a73ff04ee19ed8ed9d3a9e3894a0 100644 (file)
@@ -2,6 +2,7 @@ module packet-processing {
     namespace "urn:opendaylight:packet:service";
     prefix flow;
 
+    import yang-ext {prefix ext;}
     import opendaylight-inventory {prefix inv;}
     import ietf-inet-types {prefix inet;}
     import ietf-yang-types {prefix yang;} 
@@ -11,11 +12,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 +37,21 @@ 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 node {
+                ext:context-reference "inv:node-context";
+                type inv:node-ref;
+            }
                leaf egress {
                        type inv:node-connector-ref;
                }