Merge "OPNFLWPLUG-1006: ODL cannot control switch with pre-existing meters"
[openflowplugin.git] / model / model-flow-base / src / main / yang / opendaylight-match-types.yang
index 3c6d79ab2ccb0f269ffa7ad679bc8651c29fd728..86a5d13df46c058e50fb543931ca759e258fdaef 100644 (file)
@@ -33,6 +33,16 @@ module opendaylight-match-types {
         }
     }
 
+    grouping packet-type-fields {
+        leaf packet-type {
+            description
+              "Outermost header type of a packet. It's a 4 byte
+                value, the 2 most significant bytes are the
+                namespace and the next 2 bytes are the type.";
+            type uint32;
+        }
+    }
+
      /** Match Groupings **/
     grouping "ethernet-match-fields" {
         container ethernet-source {
@@ -302,6 +312,10 @@ module opendaylight-match-types {
             type inv:node-connector-id;
         }
 
+        container packet-type-match {
+            uses packet-type-fields;
+        }
+
         container "metadata" {
             uses of-metadata;
         }