Revision a0c9f010 scripts/gnt-cluster

b/scripts/gnt-cluster
28 28
from ganeti import constants
29 29
from ganeti import errors
30 30
from ganeti import utils
31
from ganeti import bootstrap
31 32

  
32 33

  
33 34
def InitCluster(opts, args):
......
46 47
  if opts.lvm_storage and not opts.vg_name:
47 48
    vg_name = constants.DEFAULT_VG
48 49

  
49
  op = opcodes.OpInitCluster(cluster_name=args[0],
50
                             secondary_ip=opts.secondary_ip,
51
                             hypervisor_type=opts.hypervisor_type,
52
                             vg_name=vg_name,
53
                             mac_prefix=opts.mac_prefix,
54
                             def_bridge=opts.def_bridge,
55
                             master_netdev=opts.master_netdev,
56
                             file_storage_dir=opts.file_storage_dir)
57
  SubmitOpCode(op)
50
  bootstrap.InitCluster(cluster_name=args[0],
51
                        secondary_ip=opts.secondary_ip,
52
                        hypervisor_type=opts.hypervisor_type,
53
                        vg_name=vg_name,
54
                        mac_prefix=opts.mac_prefix,
55
                        def_bridge=opts.def_bridge,
56
                        master_netdev=opts.master_netdev,
57
                        file_storage_dir=opts.file_storage_dir)
58 58
  return 0
59 59

  
60 60

  

Also available in: Unified diff