Revision 9a94cee3 lib/cmdlib/instance.py
b/lib/cmdlib/instance.py | ||
---|---|---|
436 | 436 |
if self.op.instance_communication: |
437 | 437 |
nic_name = "%s%s" % (constants.INSTANCE_COMMUNICATION_NIC_PREFIX, |
438 | 438 |
self.op.instance_name) |
439 |
communication_network = constants.INSTANCE_COMMUNICATION_NETWORK |
|
440 | 439 |
|
441 | 440 |
self.op.nics.append({constants.INIC_NAME: nic_name, |
442 | 441 |
constants.INIC_MAC: constants.VALUE_GENERATE, |
443 | 442 |
constants.INIC_IP: constants.NIC_IP_POOL, |
444 |
constants.INIC_NETWORK: communication_network}) |
|
443 |
constants.INIC_NETWORK: |
|
444 |
self.cfg.GetInstanceCommunicationNetwork()}) |
|
445 | 445 |
|
446 | 446 |
# check nics' parameter names |
447 | 447 |
for nic in self.op.nics: |
Also available in: Unified diff