vif.py (nova-22.0.0) | : | vif.py (nova-22.0.1) | ||
---|---|---|---|---|
skipping to change at line 459 | skipping to change at line 459 | |||
def _set_config_VIFVHostUser(self, instance, vif, conf): | def _set_config_VIFVHostUser(self, instance, vif, conf): | |||
# TODO(sahid): We should never configure a driver backend for | # TODO(sahid): We should never configure a driver backend for | |||
# vhostuser interface. Specifically override driver to use | # vhostuser interface. Specifically override driver to use | |||
# None. This can be removed when get_base_config will be fixed | # None. This can be removed when get_base_config will be fixed | |||
# and rewrite to set the correct backend. | # and rewrite to set the correct backend. | |||
conf.driver_name = None | conf.driver_name = None | |||
designer.set_vif_host_backend_vhostuser_config( | designer.set_vif_host_backend_vhostuser_config( | |||
conf, vif.mode, vif.path, CONF.libvirt.rx_queue_size, | conf, vif.mode, vif.path, CONF.libvirt.rx_queue_size, | |||
CONF.libvirt.tx_queue_size) | CONF.libvirt.tx_queue_size, vif.vif_name) | |||
def _set_config_VIFHostDevice(self, instance, vif, conf): | def _set_config_VIFHostDevice(self, instance, vif, conf): | |||
if vif.dev_type == osv_fields.VIFHostDeviceDevType.ETHERNET: | if vif.dev_type == osv_fields.VIFHostDeviceDevType.ETHERNET: | |||
# This sets the required fields for an <interface type='hostdev'> | # This sets the required fields for an <interface type='hostdev'> | |||
# section in a libvirt domain (by using a subset of hw_veb's | # section in a libvirt domain (by using a subset of hw_veb's | |||
# options). | # options). | |||
designer.set_vif_host_backend_hw_veb( | designer.set_vif_host_backend_hw_veb( | |||
conf, 'hostdev', vif.dev_address, None) | conf, 'hostdev', vif.dev_address, None) | |||
else: | else: | |||
# TODO(jangutter): dev_type == VIFHostDeviceDevType.GENERIC | # TODO(jangutter): dev_type == VIFHostDeviceDevType.GENERIC | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |