Skip to content

Instantly share code, notes, and snippets.

@celebdor
Created June 20, 2013 10:10
Show Gist options
  • Save celebdor/5821656 to your computer and use it in GitHub Desktop.
Save celebdor/5821656 to your computer and use it in GitHub Desktop.
create a vdsm network with QoS.. As you can see there is some problem passing the data to libvirt that makes the outbound average be used for inbound and the outbound to be ignored.
from vdsm import vdscli
connection = vdscli.connect()
connection.addNetwork('toni', '', '', ['p1p3'], {'qosInbound':{'average': '1024'}, 'qosOutbound':{'average': '2400'}})
<network>
<name>vdsm-toni</name>
<uuid>f3caf14b-8e84-dc5b-efd2-be62ab0e367e</uuid>
<forward mode='bridge'/>
<bridge name='toni' />
<bandwidth>
<inbound average='2400'/>
</bandwidth>
</network>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment