Fix networks in LUInstanceSetParams()
authorDimitris Aragiorgis <dimara@grnet.gr>
Tue, 26 Feb 2013 01:39:25 +0000 (03:39 +0200)
committerGuido Trotter <ultrotter@google.com>
Tue, 26 Feb 2013 01:49:46 +0000 (17:49 -0800)
commit076a29382a46a44bb860894ed232a6e4fee4fd31
treec35f8e89777538a7b4a917fbc8e3fa62c251ccde
parent2412bdea8e3ff2e29d93cfe42e6f1d853699fbed
Fix networks in LUInstanceSetParams()

Params passed in _CreateNewNic() are not yet evaluated and include
the value passed by user for the network. A lookup must be done first
in order to find the corresponding network UUID which should be stored
in the newly created NIC object.

Params passed in _ApplyNicMods() include the value passed by user
for the network. Thus a lookup must be done first in order to find
the corresponding network UUID. Then compare it with the existing
value and act accordingly.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py