Add a identify-defaults options for import
authorIustin Pop <iustin@google.com>
Mon, 12 Apr 2010 11:30:12 +0000 (13:30 +0200)
committerIustin Pop <iustin@google.com>
Mon, 12 Apr 2010 13:57:09 +0000 (15:57 +0200)
commite588764dc9d0affab8f459bb0b8983e249e9d2a9
treeafa7fe56ee722c4f8b3c70be6d90a0006a5e50df
parentb6cd72b228e8e103eedad5eb223087991e35a3e6
Add a identify-defaults options for import

When importing an instance, all the saved valued will be used as
explicitly specified values, overriding the cluster defaults. This means
export+import will change the status (from default to explicitly
specified) of parameters.

This patch adds a new option that changes the behaviour to identify
parameter values which are equal to the current cluster defaults and
mark them as such. It does this for hv, be and nic parameters.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/cli.py
lib/cmdlib.py
lib/opcodes.py
scripts/gnt-backup