+# Node group opcodes
+
+class OpAddGroup(OpCode):
+ """Add a node group to the cluster."""
+ OP_ID = "OP_GROUP_ADD"
+ OP_DSC_FIELD = "group_name"
+ __slots__ = ["group_name"]
+
+
+class OpQueryGroups(OpCode):
+ """Compute the list of node groups."""
+ OP_ID = "OP_GROUP_QUERY"
+ __slots__ = ["output_fields", "names"]
+
+
+class OpRemoveGroup(OpCode):
+ """Remove a node group from the cluster."""
+ OP_ID = "OP_GROUP_REMOVE"
+ OP_DSC_FIELD = "group_name"
+ __slots__ = ["group_name"]
+
+
+class OpRenameGroup(OpCode):
+ """Rename a node group in the cluster."""
+ OP_ID = "OP_GROUP_RENAME"
+ OP_DSC_FIELD = "old_name"
+ __slots__ = ["old_name", "new_name"]
+
+