mirror of https://gitee.com/openkylin/libvirt.git
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;
|
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) &&
|
if (((!ifaceBand || !ifaceBand->in || !ifaceBand->in->floor) &&
|
||||||
(!oldBandwidth || !oldBandwidth->in || !oldBandwidth->in->floor)) ||
|
(!oldBandwidth || !oldBandwidth->in || !oldBandwidth->in->floor))) {
|
||||||
!netBand || !netBand->in) {
|
VIR_DEBUG("No old/new interface bandwidth floor");
|
||||||
/* no QoS required, claim success */
|
/* no QoS required, claim success */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue