Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virt: remove bandwidth limit on nic update
This patch fixes some logic error in the update_bandwidth_xml function. If you have a running VM with a NIC that has a QoS, it will contain a bandwidth setting in the XML. Now if you change the NIC to a vNIC Profile without QoS, it will not contain the 'inbound' and 'outbound' specParams, and the old QoS will never get removed (only after stop/start). So we take the removal of the bandwidth out of the if so the limit gets cleared correctly. Also adds test for this case. Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
- Loading branch information