Revision 7c0d6283

b/lib/cmdlib.py
43 43
from ganeti import opcodes
44 44
from ganeti import ssconf
45 45

  
46

  
46 47
class LogicalUnit(object):
47 48
  """Logical Unit base class.
48 49

  
......
2739 2740
                          iv_name=iv_name)
2740 2741
  return drbd_dev
2741 2742

  
2743

  
2742 2744
def _GenerateDiskTemplate(cfg, template_name,
2743 2745
                          instance_name, primary_node,
2744 2746
                          secondary_nodes, disk_sz, swap_sz):
b/lib/mcpu.py
38 38
from ganeti import ssconf
39 39
from ganeti import logger
40 40

  
41

  
41 42
class Processor(object):
42 43
  """Object which runs OpCodes"""
43 44
  DISPATCH_TABLE = {
b/lib/objects.py
648 648

  
649 649
  __bool__ = __nonzero__
650 650

  
651

  
651 652
class Node(TaggableObject):
652 653
  """Config object representing a node."""
653 654
  __slots__ = TaggableObject.__slots__ + [
b/lib/opcodes.py
275 275
  OP_ID = "OP_OS_DIAGNOSE"
276 276
  __slots__ = []
277 277

  
278

  
278 279
# Exports opcodes
279 280
class OpQueryExports(OpCode):
280 281
  """Compute the list of exported images."""
281 282
  OP_ID = "OP_BACKUP_QUERY"
282 283
  __slots__ = ["nodes"]
283 284

  
285

  
284 286
class OpExportInstance(OpCode):
285 287
  """Export an instance."""
286 288
  OP_ID = "OP_BACKUP_EXPORT"
b/lib/rpc.py
38 38
from ganeti import objects
39 39
from ganeti import ssconf
40 40

  
41

  
41 42
class NodeController:
42 43
  """Node-handling class.
43 44

  
b/lib/utils.py
51 51

  
52 52
debug = False
53 53

  
54

  
54 55
class RunResult(object):
55 56
  """Simple class for holding the result of running external programs.
56 57

  
b/scripts/gnt-backup
27 27
from ganeti import opcodes
28 28
from ganeti import constants
29 29

  
30

  
30 31
def PrintExportList(opts, args):
31 32
  """Prints a list of all the exported system images.
32 33

  
b/scripts/gnt-instance
39 39
_SHUTDOWN_NODES_SEC = "nodes-sec"
40 40
_SHUTDOWN_INSTANCES = "instances"
41 41

  
42

  
42 43
def _ExpandMultiNames(mode, names):
43 44
  """Expand the given names using the passed mode.
44 45

  
......
382 383
    SubmitOpCode(op)
383 384
  return 0
384 385

  
386

  
385 387
def RebootInstance(opts, args):
386 388
  """Reboot an instance
387 389

  
......
407 409
    SubmitOpCode(op)
408 410
  return 0
409 411

  
412

  
410 413
def ShutdownInstance(opts, args):
411 414
  """Shutdown an instance.
412 415

  
b/tools/lvmstrap
110 110
  """
111 111
  pass
112 112

  
113

  
113 114
def Usage():
114 115
  """Shows program usage information and exits the program."""
115 116

  

Also available in: Unified diff