Revision 958d01f8
b/lib/cmdlib.py | ||
---|---|---|
2870 | 2870 |
# if we're moving instances to routed, check that they have an ip |
2871 | 2871 |
target_mode = params_filled[constants.NIC_MODE] |
2872 | 2872 |
if target_mode == constants.NIC_MODE_ROUTED and not nic.ip: |
2873 |
nic_errors.append("Instance %s, nic/%d: routed nick with no ip" %
|
|
2874 |
(instance.name, nic_idx)) |
|
2873 |
nic_errors.append("Instance %s, nic/%d: routed NIC with no ip"
|
|
2874 |
" address" % (instance.name, nic_idx))
|
|
2875 | 2875 |
if nic_errors: |
2876 | 2876 |
raise errors.OpPrereqError("Cannot apply the change, errors:\n%s" % |
2877 | 2877 |
"\n".join(nic_errors)) |
Also available in: Unified diff