Return OFPNiciraControllerRole enum in OFNiciraControllerRoleXXX messages
diff --git a/openflow_input/nicira_role b/openflow_input/nicira_role
index 1ed0b3d..f451d42 100644
--- a/openflow_input/nicira_role
+++ b/openflow_input/nicira_role
@@ -40,7 +40,7 @@
uint32_t xid;
uint32_t experimenter == 0x2320;
uint32_t subtype == 10;
- uint32_t role; // 0 other, 1 master, 2 slave
+ enum ofp_nicira_controller_role role; // 0 other, 1 master, 2 slave
};
struct of_nicira_controller_role_reply : of_nicira_header {
@@ -50,5 +50,5 @@
uint32_t xid;
uint32_t experimenter == 0x2320;
uint32_t subtype == 11;
- uint32_t role; // 0 other, 1 master, 2 slave
+ enum ofp_nicira_controller_role role; // 0 other, 1 master, 2 slave
};