Enable gnt-cluster modify to hv/beparams
authorIustin Pop <iustin@google.com>
Thu, 16 Oct 2008 20:39:38 +0000 (20:39 +0000)
committerIustin Pop <iustin@google.com>
Thu, 16 Oct 2008 20:39:38 +0000 (20:39 +0000)
commit779c15bbb35b09d7a95c10c17c7921e8fe928a13
treefb5ab446e9eaaa439b9f84670baa3c7ecc6398bc
parent16a8967dccf46faa0987a0a023e6c72f496bfbc5
Enable gnt-cluster modify to hv/beparams

This patch enables the cluster modify to change:
  - enabled hypervisor list
  - hvparams (per hypervisor)
  - beparams (only the default group)

Syntax:
  gnt-cluster modify -B vcpus=3 -H xen-pvm:no_initrd_path

Validation for parameters is somewhat missing - the individual
hypervisors will be checked for syntax and validation, but beparams
doesn't have validation yes (nowhere), it should be added here once we
have a global method (will come soon).

Reviewed-by: imsnah
lib/cmdlib.py
lib/opcodes.py
scripts/gnt-cluster