diff options
author | Jian Wen <jian.wen@canonical.com> | 2012-12-12 22:14:18 +0800 |
---|---|---|
committer | Jian Wen <jian.wen@canonical.com> | 2012-12-19 10:56:47 +0800 |
commit | 51546e79f366d14f25bb5a933a3ab0ad033e7a3d (patch) | |
tree | 47c6ff99660837a6c7b1664de572d1a66cce68d0 /nova/utils.py | |
parent | 1d864329c6c5320bde0cd30e3b39f2f93bbe9196 (diff) | |
download | nova-51546e79f366d14f25bb5a933a3ab0ad033e7a3d.tar.gz nova-51546e79f366d14f25bb5a933a3ab0ad033e7a3d.tar.xz nova-51546e79f366d14f25bb5a933a3ab0ad033e7a3d.zip |
libvirt: Make vif_driver.plug() returns None
The return value of vif_driver.plug() was used only when nova wrote the
libvirt.xml file on initial boot of the instance. Make it returns None,
and add get_config() to get the configurations if needed.
If LibvirtBridgeDriver is used when the nova-comptue inits, we call
vif_driver.plug() without get the VIF configurations. By doing this
plug doesn't raise if the instance has not yet got a fixed-ip. Fixes
bug 1076309.
Change-Id: I0fafb3d98e3139bce0ef2cee04cab428a0621696
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions