The nova.virt.libvirt.designer Module

Policy based configuration of libvirt objects

This module provides helper APIs for populating the config.py classes based on common operational needs / policies

set_vif_bandwidth_config(conf, inst_type)

Config vif inbound/outbound bandwidth limit. parameters are set in instance_type_extra_specs table, key is in the format quota:vif_inbound_average.

set_vif_guest_frontend_config(conf, mac, model, driver, queues=None)

Populate a LibvirtConfigGuestInterface instance with guest frontend details.

set_vif_host_backend_802qbg_config(conf, devname, managerid, typeid, typeidversion, instanceid, tapname=None)

Populate a LibvirtConfigGuestInterface instance with host backend details for an 802.1qbg device.

set_vif_host_backend_802qbh_config(conf, net_type, devname, profileid, tapname=None)

Populate a LibvirtConfigGuestInterface instance with host backend details for an 802.1qbh device.

set_vif_host_backend_bridge_config(conf, brname, tapname=None)

Populate a LibvirtConfigGuestInterface instance with host backend details for a software bridge.

set_vif_host_backend_direct_config(conf, devname, mode='passthrough')

Populate a LibvirtConfigGuestInterface instance with direct Interface.

set_vif_host_backend_ethernet_config(conf, tapname)

Populate a LibvirtConfigGuestInterface instance with host backend details for an externally configured host device.

NB use of this configuration is discouraged by libvirt project and will mark domains as ‘tainted’.

set_vif_host_backend_hw_veb(conf, net_type, devname, vlan, tapname=None)

Populate a LibvirtConfigGuestInterface instance with host backend details for an device that supports hardware virtual ethernet bridge.

set_vif_host_backend_ib_hostdev_config(conf, pci_slot)

Populate a LibvirtConfigGuestInterface instance with hostdev Interface.

set_vif_host_backend_ovs_config(conf, brname, interfaceid, tapname=None)

Populate a LibvirtConfigGuestInterface instance with host backend details for an OpenVSwitch bridge.

set_vif_host_backend_vhostuser_config(conf, mode, path)

Populate a LibvirtConfigGuestInterface instance with host backend details for vhostuser socket.

Previous topic

The nova.virt.libvirt.config Module

Next topic

The nova.virt.libvirt.driver Module

Project Source

This Page