opcodes: Add opcode parameter definitions
authorMichael Hanselmann <hansmi@google.com>
Thu, 30 Dec 2010 15:50:17 +0000 (16:50 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 5 Jan 2011 10:40:41 +0000 (11:40 +0100)
commit65e183afa0058b265dd048957980f46460ec3981
tree11882271191b352550d5004ddd00b1aa3e58755e
parenta6070ef7f87f48fce5b5038fc48c1731a7e9b340
opcodes: Add opcode parameter definitions

This is the first step for migrating them from cmdlib. A metaclass is
used to define “__slots__” upon class creation time (not instantiation).

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/opcodes.py
test/ganeti.cmdlib_unittest.py
test/ganeti.opcodes_unittest.py