SetInstanceParams: export nic changes to hooks
authorGuido Trotter <ultrotter@google.com>
Fri, 13 Feb 2009 13:49:06 +0000 (13:49 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 13 Feb 2009 13:49:06 +0000 (13:49 +0000)
commitd8dcf3c9425272dae2f9344bdd9015ab5d13c4b8
tree8e0c191b785a3cdbdc88ee182509e33139e97ff8
parentea5a5b744b177eb433d2915524f258e6615b95bd
SetInstanceParams: export nic changes to hooks

Currently we export the old instance "as is" and any nic changes get
lost, so hooks won't know of a different ip, bridge, or mac address.
This patch fixes it by putting the nics in the override dict, if any
changes are done.

Reviewed-by: iustinp
lib/cmdlib.py