Add 'devname' to nova.network.model.VIF class
Add a 'devname' field to nova.network.model.VIF to allow network drivers to specify a desired TAP device name. Update the Quantum driver to set a device name, and update the libvirt VIF drivers to honour it. Blueprint: libvirt-vif-driver Change-Id: Ia8dd546af36e7f6c22efd7c696fb58b37aac0061 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -47,7 +47,8 @@ class LibvirtVifTestCase(test.TestCase):
|
|||||||
'gateway_v6': net['gateway_v6'],
|
'gateway_v6': net['gateway_v6'],
|
||||||
'ips': [{'ip': '101.168.1.9'}],
|
'ips': [{'ip': '101.168.1.9'}],
|
||||||
'dhcp_server': '191.168.1.1',
|
'dhcp_server': '191.168.1.1',
|
||||||
'vif_uuid': 'vif-xxx-yyy-zzz'
|
'vif_uuid': 'vif-xxx-yyy-zzz',
|
||||||
|
'vif_devname': 'tap-xxx-yyy-zzz'
|
||||||
}
|
}
|
||||||
|
|
||||||
instance = {
|
instance = {
|
||||||
|
|||||||
Reference in New Issue
Block a user