mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
network: add debug when bandwidth settings are not applied
To aid in troubleshooting add some debug messages wrt bandwidth settings and networks. Reviewed-by: Laine Stump <laine@laine.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
0a85aad582
commit
d6b144b1fe
@ -5192,9 +5192,14 @@ networkCheckBandwidth(virNetworkObjPtr obj,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!netBand || !netBand->in) {
|
||||
VIR_DEBUG("No network bandwidth controls present");
|
||||
/* no QoS required, claim success */
|
||||
return 1;
|
||||
}
|
||||
if (((!ifaceBand || !ifaceBand->in || !ifaceBand->in->floor) &&
|
||||
(!oldBandwidth || !oldBandwidth->in || !oldBandwidth->in->floor)) ||
|
||||
!netBand || !netBand->in) {
|
||||
(!oldBandwidth || !oldBandwidth->in || !oldBandwidth->in->floor))) {
|
||||
VIR_DEBUG("No old/new interface bandwidth floor");
|
||||
/* no QoS required, claim success */
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user