Revision 5c947f38 lib/opcodes.py

b/lib/opcodes.py
239 239
  """Export an instance."""
240 240
  OP_ID = "OP_BACKUP_EXPORT"
241 241
  __slots__ = ["instance_name", "target_node", "shutdown"]
242

  
243

  
244
# Tags opcodes
245
class OpGetTags(OpCode):
246
  """Returns the tags of the given object."""
247
  OP_ID = "OP_TAGS_GET"
248
  __slots__ = ["kind", "name"]
249

  
250

  
251
class OpSetTag(OpCode):
252
  """Sets the value of a tag on a given object."""
253
  OP_ID = "OP_TAGS_SET"
254
  __slots__ = ["kind", "name", "tag"]
255

  
256

  
257
class OpDelTag(OpCode):
258
  """Remove a tag from a given object."""
259
  OP_ID = "OP_TAGS_DEL"
260
  __slots__ = ["kind", "name", "tag"]

Also available in: Unified diff