openflow_input: add bsn_egr_port_group_id extension
diff --git a/c_gen/c_match.py b/c_gen/c_match.py
index a45090a..fe6e56b 100644
--- a/c_gen/c_match.py
+++ b/c_gen/c_match.py
@@ -294,6 +294,7 @@
     OF_OXM_INDEX_BSN_L3_INTERFACE_CLASS_ID = 40,
     OF_OXM_INDEX_BSN_L3_SRC_CLASS_ID = 41,
     OF_OXM_INDEX_BSN_L3_DST_CLASS_ID = 42,
+    OF_OXM_INDEX_BSN_EGR_PORT_GROUP_ID = 43,
 };
 
 #define OF_OXM_BIT(index) (((uint64_t) 1) << (index))
diff --git a/c_gen/match.py b/c_gen/match.py
index 611a80d..2f12780 100644
--- a/c_gen/match.py
+++ b/c_gen/match.py
@@ -459,6 +459,15 @@
         takes_mask_in_spec=True,
         order=1005,
         ),
+
+    bsn_egr_port_group_id = dict(
+        name="bsn_egr_port_group_id",
+        m_type="uint32_t",
+        print_type="PRIu32",
+        conditions="",
+        takes_mask_in_spec=True,
+        order=1006,
+        ),
 )
 
 match_keys_sorted = of_match_members.keys()
diff --git a/c_gen/templates/loci_show.h b/c_gen/templates/loci_show.h
index e7cc2a8..5384837 100644
--- a/c_gen/templates/loci_show.h
+++ b/c_gen/templates/loci_show.h
@@ -385,5 +385,6 @@
 #define LOCI_SHOW_u32_entry_count(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
 #define LOCI_SHOW_u32_num_aux(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
 #define LOCI_SHOW_u64_checksum(writer, cookie, val) LOCI_SHOW_u64(writer, cookie, val)
+#define LOCI_SHOW_u32_bsn_egr_port_group_id(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
 
 #endif /* _LOCI_SHOW_H_ */
diff --git a/openflow_input/bsn_egr_port_group_id b/openflow_input/bsn_egr_port_group_id
new file mode 100644
index 0000000..a237b49
--- /dev/null
+++ b/openflow_input/bsn_egr_port_group_id
@@ -0,0 +1,48 @@
+// Copyright 2014, Big Switch Networks, Inc.
+//
+// LoxiGen is licensed under the Eclipse Public License,
+// version 1.0 (EPL), with the following special exception:
+//
+// LOXI Exception
+//
+// As a special exception to the terms of the EPL, you may
+// distribute libraries generated by LoxiGen (LoxiGen Libraries)
+// under the terms of your choice, provided that copyright and
+// licensing notices generated by LoxiGen are not altered or removed
+// from the LoxiGen Libraries and the notice provided below is (i)
+// included in the LoxiGen Libraries, if distributed in source code
+// form and (ii) included in any documentation for the LoxiGen
+// Libraries, if distributed in binary form.
+//
+// Notice: "Copyright 2013, Big Switch Networks, Inc.
+// This library was generated by the LoxiGen Compiler."
+//
+// You may not use this file except in compliance with the EPL or
+// LOXI Exception. You may obtain a copy of the EPL at:
+//
+// http://www.eclipse.org/legal/epl-v10.html
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an "AS
+// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+// express or implied. See the EPL for the specific language
+// governing permissions and limitations under the EPL.
+
+#version 3
+#version 4
+
+/*
+ * Egress port group ID for SwitchLight
+ */
+
+struct of_oxm_bsn_egr_port_group_id : of_oxm {
+    uint32_t type_len == 0x00030e04;
+    uint32_t value;
+};
+
+struct of_oxm_bsn_egr_port_group_id_masked : of_oxm {
+    uint32_t type_len == 0x00030f08;
+    uint32_t value;
+    uint32_t value_mask;
+};
+