Added openflow-codec and openflowj_netty from openflowplugin
[openflowjava.git] / third-party / openflow-codec / src / main / java / org / openflow / codec / protocol / OFPPortNo.java
diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPPortNo.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPPortNo.java
new file mode 100644 (file)
index 0000000..6bfdca3
--- /dev/null
@@ -0,0 +1,26 @@
+package org.openflow.codec.protocol;
+
+/**
+ * Represents enum ofp_port_no
+ *
+ * @author AnilGujele
+ *
+ */
+public enum OFPPortNo {
+    OFPP_MAX((int) 0xffffff00), OFPP_IN_PORT((int) 0xfffffff8), OFPP_TABLE((int) 0xfffffff9), OFPP_NORMAL(
+            (int) 0xfffffffa), OFPP_FLOOD((int) 0xfffffffb), OFPP_ALL((int) 0xfffffffc), OFPP_CONTROLLER(
+            (int) 0xfffffffd), OFPP_LOCAL((int) 0xfffffffe), OFPP_ANY((int) 0xffffffff);
+
+    protected int value;
+
+    private OFPPortNo(int value) {
+        this.value = value;
+    }
+
+    /**
+     * @return the value
+     */
+    public int getValue() {
+        return value;
+    }
+}