openflow_input: add ofp_nicira_controller_role enum
diff --git a/loxi_front_end/translation.py b/loxi_front_end/translation.py
index 6c39a3a..9ffc210 100644
--- a/loxi_front_end/translation.py
+++ b/loxi_front_end/translation.py
@@ -116,6 +116,7 @@
         dict(OFPMP_ = "OF_MULTIPART_"),
         dict(OFPMPF_ = "OF_MULTIPART_FLAG_"),
         dict(OFPTFPT_ = "OF_TABLE_FEATURE_"),
+        dict(NX_ROLE_ = "OF_NICIRA_CONTROLLER_ROLE_"),
         ]
 
     for entry in rules:
diff --git a/openflow_input/nicira_role b/openflow_input/nicira_role
index 06d7c7f..caa2c1a 100644
--- a/openflow_input/nicira_role
+++ b/openflow_input/nicira_role
@@ -27,6 +27,12 @@
 
 #version 1
 
+enum ofp_nicira_controller_role {
+   NX_ROLE_OTHER = 0,
+   NX_ROLE_MASTER = 1,
+   NX_ROLE_SLAVE = 2,
+};
+
 struct ofp_nicira_controller_role_request {
     uint8_t version;
     uint8_t type;