Hello Michal,
I am using the following code -
virDomainSetInterfaceParameters(dom, "vnet0", networkParainfoPtr, nparams,0);
before calling this i am assigning the following Inbound values
inbound.average = 10 (10 kbps)
inbound .peak = 10
inbound.burst = 10
Outbound values are zero (default)
after calling the API it return success and i am able to see the assigned values in dumpxml of the VM ( so it is cross verified that the values are set )
Now for testing inbound throttling i am using scp command -> i am copying 400MB file from host machine to VM.
But what i am onserving is it taking the bandwidth more than 10 kbps ( even it reaches to Mbps sometime)
Regards,
Vikrant