Pass VLAN parameter correctly in moves
authorThomas Thrainer <thomasth@google.com>
Wed, 6 Nov 2013 09:09:07 +0000 (10:09 +0100)
committerThomas Thrainer <thomasth@google.com>
Thu, 14 Nov 2013 14:30:46 +0000 (15:30 +0100)
Fix the assignment of a wrong value to the VLAN and name parameters of
NICs during instance moves.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>

tools/move-instance

index 30208ac..621495a 100755 (executable)
@@ -518,7 +518,7 @@ class MoveDestExecutor(object):
       constants.INIC_MAC: mac,
       constants.INIC_MODE: mode,
       constants.INIC_LINK: link,
-      constants.INIC_NAME: vlan,
+      constants.INIC_VLAN: vlan,
       constants.INIC_NETWORK: network,
       constants.INIC_NAME: nic_name
       } for nic_name, _, ip, mac, mode, link, vlan, network, _