Fix networks in _PrepareNicModifications()
authorDimitris Aragiorgis <dimara@grnet.gr>
Tue, 26 Feb 2013 20:28:42 +0000 (22:28 +0200)
committerGuido Trotter <ultrotter@google.com>
Fri, 1 Mar 2013 16:54:49 +0000 (08:54 -0800)
commitac84befd57666426e5cec46bfd8ebf75ea90ebb2
tree70e66dc8f98862d484e4ae8d8497e1aac18a0b89
parentcd385f07194e8760b82b4c5b6c45ff6cb376f00b
Fix networks in _PrepareNicModifications()

Passing --net 0:add,ip=5.5.5.5 failed due to a reference
of a non initialized variable (new_net_obj). Reorder the checks
and add some comments to be readable.

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