summaryrefslogtreecommitdiffstats
path: root/nova/testing
diff options
context:
space:
mode:
authorDan Wendlandt <dan@nicira.com>2012-03-12 11:43:23 -0700
committerDan Wendlandt <dan@nicira.com>2012-03-12 11:44:17 -0700
commit1265104b873d4cd791cecc62134ef874b4656003 (patch)
treec443d0ac83a7455757bfe264e93900df56524142 /nova/testing
parent5810e2062d0df0485ba0774a927ae6dfd5da2d4e (diff)
downloadnova-1265104b873d4cd791cecc62134ef874b4656003.tar.gz
nova-1265104b873d4cd791cecc62134ef874b4656003.tar.xz
nova-1265104b873d4cd791cecc62134ef874b4656003.zip
Fix linux_net.py interface-driver loading.
bug 950381 linux_net.py previously set the value of interface_driver based on a flag when the module was loaded. This breaks when nova-manage is used to invoke anything using the interface_driver, as nova-manage loads the nova.network.linux_net module before flags are properly set. This patch moves the initialization of the interface_driver variable to within a function that will only be called once flags are properly loaded. Note: this patch also fixes the unplug() action for the OVS vif-plugging code to actually remove the device created to act as the gateway device. Also tweaks the plug() to use the get_dev() method, reducing duplicate code. Change-Id: I97a17c010d4d6a67e2340a81315da00775c67eea
Diffstat (limited to 'nova/testing')
0 files changed, 0 insertions, 0 deletions