ArpHandler to ignore ip packet sent to default GW
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / packet-processing.yang
index 260de5fd0cbf021d3730d8c1d91259c797cba57f..bfdf5049c3d8b585be5a94c949c4718945440c8d 100644 (file)
@@ -2,20 +2,24 @@ module packet-processing {
     namespace "urn:opendaylight:packet:service";
     prefix flow;
 
-    import opendaylight-inventory {prefix inv;}
-    import ietf-inet-types {prefix inet;}
-    import ietf-yang-types {prefix yang;} 
-    import opendaylight-l2-types {prefix types;}
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+    import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
+    import ietf-yang-types {prefix yang;revision-date "2010-09-24";
+    import opendaylight-l2-types {prefix types;revision-date "2013-08-27";}
     
     revision "2013-07-09" {
         description "";
     }
 
+    typedef cookie {
+        type uint32;
+    }
+
     grouping raw-packet {
        leaf ingress {
                type inv:node-connector-ref;
        }
-       leaf payload {
+        leaf payload {
                type binary;
        }
     }
@@ -32,11 +36,20 @@ module packet-processing {
 
 
     notification packet-received {
-       uses raw-packet;
+       leaf cookie {
+                type cookie;
+        }
+        uses raw-packet;
     }
 
     rpc transmit-packet {
        input {
+            uses inv:node-context-ref;
+
+            leaf cookie {
+                type cookie;
+            }
+            
                leaf egress {
                        type inv:node-connector-ref;
                }