The nova.tests.test_libvirt_vif Module

class LibvirtVifTestCase(*args, **kwargs)

Bases: nova.test.TestCase

bandwidth = {'quota:vif_inbound_peak': '102400', 'quota:vif_inbound_burst': '102400', 'quota:vif_outbound_average': '102400', 'quota:vif_outbound_peak': '102400', 'quota:vif_inbound_average': '102400'}
instance = {'name': 'instance-name', 'uuid': 'instance-uuid'}
mapping_8021qbg = {'vif_devname': 'tap-xxx-yyy-zzz', 'mac': 'ca:fe:de:ad:be:ef', 'vif_uuid': 'vif-xxx-yyy-zzz', 'vif_type': '802.1qbg', 'qbg_params': VIF8021QbgParams({'typeidversion': '1', 'typeid': 'aaa-bbb-ccc', 'instanceid': 'ddd-eee-fff', 'managerid': 'xxx-yyy-zzz'})}
mapping_8021qbh = {'vif_devname': 'tap-xxx-yyy-zzz', 'mac': 'ca:fe:de:ad:be:ef', 'vif_uuid': 'vif-xxx-yyy-zzz', 'vif_type': '802.1qbh', 'qbh_params': VIF8021QbhParams({'profileid': 'xxx-yyy-zzz'})}
mapping_bridge = {'vif_type': 'bridge', 'vif_devname': 'tap-xxx-yyy-zzz', 'vif_uuid': 'vif-xxx-yyy-zzz', 'ips': [{'ip': '101.168.1.9'}], 'mac': 'ca:fe:de:ad:be:ef', 'gateway_v6': '101:1db9::1', 'dhcp_server': '191.168.1.1'}
mapping_bridge_quantum = {'vif_devname': 'tap-xxx-yyy-zzz', 'vif_uuid': 'vif-xxx-yyy-zzz', 'ips': [{'ip': '101.168.1.9'}], 'mac': 'ca:fe:de:ad:be:ef', 'gateway_v6': '101:1db9::1', 'dhcp_server': '191.168.1.1'}
mapping_none = {'vif_devname': 'tap-xxx-yyy-zzz', 'vif_uuid': 'vif-xxx-yyy-zzz', 'ips': [{'ip': '101.168.1.9'}], 'mac': 'ca:fe:de:ad:be:ef', 'gateway_v6': '101:1db9::1', 'dhcp_server': '191.168.1.1'}
mapping_ovs = {'vif_type': 'ovs', 'ips': [{'ip': '101.168.1.9'}], 'mac': 'ca:fe:de:ad:be:ef', 'gateway_v6': '101:1db9::1', 'vif_devname': 'tap-xxx-yyy-zzz', 'dhcp_server': '191.168.1.1', 'ovs_interfaceid': 'aaa-bbb-ccc', 'vif_uuid': 'vif-xxx-yyy-zzz'}
mapping_ovs_legacy = {'ips': [{'ip': '101.168.1.9'}], 'mac': 'ca:fe:de:ad:be:ef', 'gateway_v6': '101:1db9::1', 'dhcp_server': '191.168.1.1', 'vif_uuid': 'vif-xxx-yyy-zzz'}
net_8021 = {'vlan': 99, 'broadcast': '101.168.1.255', 'netmask': '255.255.255.0', 'interface': 'eth0', 'cidr': '101.168.1.0/24', 'id': 'network-id-xxx-yyy-zzz', 'cidr_v6': '101:1db9::/64', 'dns1': '8.8.8.8', 'gateway': '101.168.1.1', 'gateway_v6': '101:1db9::1', 'netmask_v6': '64'}
net_bridge = {'bridge': 'br0', 'bridge_interface': 'eth0', 'vlan': 99, 'broadcast': '101.168.1.255', 'netmask': '255.255.255.0', 'id': 'network-id-xxx-yyy-zzz', 'cidr': '101.168.1.0/24', 'cidr_v6': '101:1db9::/64', 'dns1': '8.8.8.8', 'gateway': '101.168.1.1', 'gateway_v6': '101:1db9::1', 'netmask_v6': '64'}
net_bridge_quantum = {'bridge_interface': 'eth0', 'vlan': 99, 'broadcast': '101.168.1.255', 'netmask': '255.255.255.0', 'cidr': '101.168.1.0/24', 'id': 'network-id-xxx-yyy-zzz', 'cidr_v6': '101:1db9::/64', 'dns1': '8.8.8.8', 'gateway': '101.168.1.1', 'gateway_v6': '101:1db9::1', 'netmask_v6': '64'}
net_ovs = {'bridge': 'br0', 'vlan': 99, 'broadcast': '101.168.1.255', 'netmask': '255.255.255.0', 'cidr': '101.168.1.0/24', 'id': 'network-id-xxx-yyy-zzz', 'cidr_v6': '101:1db9::/64', 'dns1': '8.8.8.8', 'gateway': '101.168.1.1', 'gateway_v6': '101:1db9::1', 'netmask_v6': '64'}
setUp()
test_bridge_driver()
test_generic_8021qbg_driver()
test_generic_8021qbh_driver()
test_generic_driver_bridge()
test_generic_driver_none()
test_generic_hybrid_driver()
test_generic_ovs_virtualport_driver()
test_model_kvm()
test_model_kvm_bogus()
test_model_kvm_custom()
test_model_novirtio()
test_model_qemu()
test_model_xen()
test_multiple_nics()
test_ovs_ethernet_driver()
test_ovs_ethernet_driver_legacy()
test_ovs_virtualport_driver()
test_quantum_bridge_driver()
test_quantum_hybrid_driver()

Previous topic

The nova.tests.test_libvirt_utils Module

Next topic

The nova.tests.test_libvirt_volume Module

This Page