The nova.virt.libvirt.vif Module

VIF drivers for libvirt.

class LibvirtGenericVIFDriver

Bases: object

Generic VIF driver for libvirt networking.

get_base_config(instance, vif, image_meta, inst_type, virt_type)
get_br_name(iface_id)
get_bridge_name(vif)
get_config(instance, vif, image_meta, inst_type, virt_type, host)
get_config_802qbg(instance, vif, image_meta, inst_type, virt_type, host)
get_config_802qbh(instance, vif, image_meta, inst_type, virt_type, host)
get_config_bridge(instance, vif, image_meta, inst_type, virt_type, host)

Get VIF configurations for bridge type.

get_config_hw_veb(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ib_hostdev(instance, vif, image_meta, inst_type, virt_type, host)
get_config_iovisor(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ivs(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ivs_ethernet(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ivs_hybrid(instance, vif, image_meta, inst_type, virt_type, host)
get_config_macvtap(instance, vif, image_meta, inst_type, virt_type, host)
get_config_midonet(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ovs(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ovs_bridge(instance, vif, image_meta, inst_type, virt_type, host)
get_config_ovs_hybrid(instance, vif, image_meta, inst_type, virt_type, host)
get_config_tap(instance, vif, image_meta, inst_type, virt_type, host)
get_config_vhostuser(instance, vif, image_meta, inst_type, virt_type, host)
get_config_vrouter(instance, vif, image_meta, inst_type, virt_type, host)
get_firewall_required(vif)
get_ovs_interfaceid(vif)
get_veth_pair_names(iface_id)
get_vif_devname(vif)
get_vif_devname_with_prefix(vif, prefix)
plug(instance, vif)
plug_802qbg(instance, vif)
plug_802qbh(instance, vif)
plug_bridge(instance, vif)

Ensure that the bridge exists, and add VIF to it.

plug_hw_veb(instance, vif)
plug_ib_hostdev(instance, vif)
plug_iovisor(instance, vif)

Plug using PLUMgrid IO Visor Driver

Connect a network device to their respective Virtual Domain in PLUMgrid Platform.

plug_ivs(instance, vif)
plug_ivs_ethernet(instance, vif)
plug_ivs_hybrid(instance, vif)

Plug using hybrid strategy (same as OVS)

Create a per-VIF linux bridge, then link that bridge to the OVS integration bridge via a veth device, setting up the other end of the veth device just like a normal IVS port. Then boot the VIF on the linux bridge using standard libvirt mechanisms.

plug_macvtap(instance, vif)
plug_midonet(instance, vif)

Plug into MidoNet’s network port

Bind the vif to a MidoNet virtual port.

plug_ovs(instance, vif)
plug_ovs_bridge(instance, vif)

No manual plugging required.

plug_ovs_hybrid(instance, vif)

Plug using hybrid strategy

Create a per-VIF linux bridge, then link that bridge to the OVS integration bridge via a veth device, setting up the other end of the veth device just like a normal OVS port. Then boot the VIF on the linux bridge using standard libvirt mechanisms.

plug_tap(instance, vif)

Plug a VIF_TYPE_TAP virtual interface.

plug_vhostuser(instance, vif)
plug_vhostuser_fp(instance, vif)

Create a fp netdevice interface with a vhostuser socket

plug_vhostuser_ovs(instance, vif)

Plug a VIF_TYPE_VHOSTUSER into an ovs bridge

plug_vrouter(instance, vif)

Plug into Contrail’s network port

Bind the vif to a Contrail virtual port.

unplug(instance, vif)
unplug_802qbg(instance, vif)
unplug_802qbh(instance, vif)
unplug_bridge(instance, vif)

No manual unplugging required.

unplug_hw_veb(instance, vif)
unplug_ib_hostdev(instance, vif)
unplug_iovisor(instance, vif)

Unplug using PLUMgrid IO Visor Driver

Delete network device and to their respective connection to the Virtual Domain in PLUMgrid Platform.

unplug_ivs(instance, vif)
unplug_ivs_ethernet(instance, vif)

Unplug the VIF by deleting the port from the bridge.

unplug_ivs_hybrid(instance, vif)

UnPlug using hybrid strategy (same as OVS)

Unhook port from IVS, unhook port from bridge, delete bridge, and delete both veth devices.

unplug_macvtap(instance, vif)
unplug_midonet(instance, vif)

Unplug from MidoNet network port

Unbind the vif from a MidoNet virtual port.

unplug_ovs(instance, vif)
unplug_ovs_bridge(instance, vif)

No manual unplugging required.

unplug_ovs_hybrid(instance, vif)

UnPlug using hybrid strategy

Unhook port from OVS, unhook port from bridge, delete bridge, and delete both veth devices.

unplug_tap(instance, vif)

Unplug a VIF_TYPE_TAP virtual interface.

unplug_vhostuser(instance, vif)
unplug_vhostuser_fp(instance, vif)

Delete a fp netdevice interface with a vhostuser socket

unplug_vhostuser_ovs(instance, vif)

Unplug a VIF_TYPE_VHOSTUSER into an ovs bridge

unplug_vrouter(instance, vif)

Unplug Contrail’s network port

Unbind the vif from a Contrail virtual port.

is_vif_model_valid_for_virt(virt_type, vif_model)

Previous topic

The nova.virt.libvirt.utils Module

Next topic

The nova.virt.libvirt.volume.aoe Module

Project Source

This Page