Am Wed, 19 May 2021 10:44:17 +0200
schrieb Olaf Hering <olaf(a)aepfle.de>:
for (i = 0; i < nnics; i++) {
if (virDomainNetGetActualType(l_nics[i]) == VIR_DOMAIN_NET_TYPE_HOSTDEV)
- continue;
+ nvnics++;
+ }
This part inverts the logic, should look like that instead:
for (i = 0; i < nnics; i++) {
if (virDomainNetGetActualType(l_nics[i]) == VIR_DOMAIN_NET_TYPE_HOSTDEV)
continue;
+ nvnics++;
+ }
Olaf