Bug 6633 : NXM_OF_IN_PORT support in openflowplugin
[openflowplugin.git] / extension / openflowjava-extension-nicira / src / main / yang / nicira-match.yang
index 98bea96d979471aa4f03f75a03167d83d33a86a1..4ea7dd700709ec7a44cda15b0a0706d5f6d244ef 100644 (file)
@@ -63,6 +63,9 @@ module nicira-match {
     identity nxm-of-arp-tpa {
         base ofoxm:match-field;
     }
+    identity nxm-of-in-port {
+        base ofoxm:match-field;
+    }
     identity nxm-nx-tun-ipv4-dst {
         base ofoxm:match-field;
     }
@@ -192,6 +195,13 @@ module nicira-match {
             }
         }
     }
+    grouping ofj-nxm-of-in-port-type-grouping {
+        container nxm-of-in-port-values {
+            leaf value {
+                type uint16;
+            }
+        }
+    }
     grouping ofj-nxm-nx-match-tun-ipv4-dst-grouping {
         container tun-ipv4-dst-values {
             leaf value {
@@ -414,6 +424,9 @@ module nicira-match {
         case arp-tpa-case-value {
             uses ofj-nxm-of-match-arp-tpa-grouping;
         }
+        case of-in-port-case-value {
+            uses ofj-nxm-of-in-port-type-grouping;
+        }
         case tun-ipv4-dst-case-value {
             uses ofj-nxm-nx-match-tun-ipv4-dst-grouping;
         }