Otherwise an attempt to set an invalid value:
virsh domiftune rhel8.2 vnet0 --outbound
4294968
on an interface with no bandwidth set crashes.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: f02e21cb3379a41cd42f2d8116f2d10dabace83b
https://bugzilla.redhat.com/show_bug.cgi?id=
1800505
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
net->bandwidth,
false,
!virDomainNetTypeSharesHostView(net)));
- ignore_value(virDomainNetBandwidthUpdate(net,
- net->bandwidth));
+ if (net->bandwidth) {
+ ignore_value(virDomainNetBandwidthUpdate(net,
+ net->bandwidth));
+ }
goto endjob;
}