Revision ad5cc6bd lib/cli.py

b/lib/cli.py
847 847
                                 type="float", default=None,
848 848
                                 help="The maximum allowed vcpu-to-cpu ratio")
849 849

  
850
IPOLICY_SPINDLE_RATIO = cli_option("--ipolicy-spindle-ratio",
851
                                   dest="ipolicy_spindle_ratio",
852
                                   type="float", default=None,
853
                                   help=("The maximum allowed instances to"
854
                                         " spindle ratio"))
855

  
850 856
HYPERVISOR_OPT = cli_option("-H", "--hypervisor-parameters", dest="hypervisor",
851 857
                            help="Hypervisor and hypervisor options, in the"
852 858
                            " format hypervisor:option=value,option=value,...",
......
1444 1450
  SPECS_NIC_COUNT_OPT,
1445 1451
  IPOLICY_DISK_TEMPLATES,
1446 1452
  IPOLICY_VCPU_RATIO,
1453
  IPOLICY_SPINDLE_RATIO,
1447 1454
  ]
1448 1455

  
1449 1456

  
......
3423 3430
                          ispecs_nic_count=None,
3424 3431
                          ipolicy_disk_templates=None,
3425 3432
                          ipolicy_vcpu_ratio=None,
3433
                          ipolicy_spindle_ratio=None,
3426 3434
                          group_ipolicy=False,
3427 3435
                          allowed_values=None,
3428 3436
                          fill_all=False):
......
3478 3486
    if ipolicy_vcpu_ratio is None:
3479 3487
      ipolicy_vcpu_ratio = \
3480 3488
        constants.IPOLICY_DEFAULTS[constants.IPOLICY_VCPU_RATIO]
3489
    if ipolicy_spindle_ratio is None:
3490
      ipolicy_spindle_ratio = \
3491
        constants.IPOLICY_DEFAULTS[constants.IPOLICY_SPINDLE_RATIO]
3481 3492
  if ipolicy_disk_templates is not None:
3482 3493
    ipolicy_out[constants.IPOLICY_DTS] = list(ipolicy_disk_templates)
3483 3494
  if ipolicy_vcpu_ratio is not None:
3484 3495
    ipolicy_out[constants.IPOLICY_VCPU_RATIO] = ipolicy_vcpu_ratio
3496
  if ipolicy_spindle_ratio is not None:
3497
    ipolicy_out[constants.IPOLICY_SPINDLE_RATIO] = ipolicy_spindle_ratio
3485 3498

  
3486 3499
  assert not (frozenset(ipolicy_out.keys()) - constants.IPOLICY_ALL_KEYS)
3487 3500

  

Also available in: Unified diff